[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dd or cp over network: should I use scp?



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!
>
> --
> Dotan Cohen
>
> http://gibberish.co.il
> http://what-is-what.com
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] AANLkTinXBXVhoP-rBPWc0hYH_YQ9WTkVvHAWS72Cyhge@mail.gmail.com">http://lists.debian.org/[🔎] AANLkTinXBXVhoP-rBPWc0hYH_YQ9WTkVvHAWS72Cyhge@mail.gmail.com
>
>


Reply to: