On 10/05/2010 12:01 PM, Tapas Mishra wrote: > On Tue, Oct 5, 2010 at 7:31 PM, Serge E. Hallyn > <[email protected]> wrote: >> >> There might be a nifty way of copying it as though it were a file, but >> I think I would do something like >> >> dd if=/dev/mapper/myvolume of=- | ssh $remotehost dd of=newfile > This is a nice trick I had not thought of this.I will try it. >
You can transfer the volume over the network and end up with another volume if you create one on $remotehost beforehand of the same size. Then have netcat listen on some port, say 9000, and pipe it to that new volume: $ nc -l 9000 | sudo dd of=/dev/vg/backup Then on the source: $ sudo dd if=/dev/mapper/myvolume | nc $remotehost 9000 -- Peter Matulis -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
