On Wed, 2002-06-12 at 06:04, Ross Kendall wrote: > > I'm hoping someone can help me with the construction of a shell command > to mirror disks across the network using ssh and dd. I'm confident it > can be done, but I'm not that good at predicting the behaviour of pipes > etc, and I wasn't sure of appropriate block sizes. > > Maybe something like this? > ssh sourcehost 'dd if=/dev/sda3 obs=20k' | /dev/sda3
ssh sourcehost 'dd if=/dev/sda3 obs=20k' > /dev/sda3 should work if /dev/sda3 are the same size on both machines. You might want to just use rsync, which will save you a LOT of time and bandwidth. rsync -av --delete -e ssh sourcehost:/mnt/sda3/ /mnt/sda3/ _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list