You can use dd via ssh if you wish. I think the command would be:
dd if=/dev/sda1 | ssh user@host "dd of=/path/to/sda1.img"
You might also want to enable SSH compression, or pipe it via gzip+gunzip.
Which is better (dd+ssh/scp) depends on your setup. dd copies the
entire disk bit for bit, even unused space. On the plus side you get
all data, permissions, layout. On the downside you're copying far more
than you need to.
Personally, I'd use scp unless I need an exact copy of the disk.
-Steve
On 24 February 2011 12:32, Dotan Cohen<dotancohen@gmail.com> wrote:
I need to dd or cp my laptop's harddrive over the LAN. For a reason
that I'd rather not get into I cannot remove the drive from the
laptop.
Should I just use scp to copy over the LAN? Something like this?
scp -r / root@178.63.65.136:/
Can I actually use dd over the network, maybe by piping to scp
somehow? What is the canonical way of doing this?
Thanks!