[CentOS] scp partition "not a regular file"

Mon Sep 29 16:27:45 UTC 2008
nate <centos at linuxpowered.net>

henry ritzlmayr wrote:
> Hi list,
>
> should it be possible to scp a partition with this command:
>
> scp /dev/sda7 backupserver:/backup/sda7.img

/dev/sda7 is just a file, if you copy it it doesn't mean you'll
copy the contents of the partition you'll just copy the block
file itself, equivalent to running the mknod command on the
other end.

You need to stream the contents of the file to get the data from
it, like your dd example.

nate