For the purpose of backups, I'd like to transfer (several) whole disk partitions over an ssh link. The source is a block special device and the target should be a regular file. Common tools seem ill-suited for this, though:
not a regular file
tarwill try to recreate device inodes on the target side
skipping non-regular file
My best bet currently is
nc over a port forwarding, or one
cat invocation on the remote side per partition, which means one password entry per partition unless one sets up public keys. Is there a more elegant solution?
Environment would be any reasonable Linux live system. Currently I happen to have a Debian wheezy lying around, but it should not be too specific to that.