Ghosting with Linux

Jason Clinton me at jasonclinton.com
Wed Aug 20 17:44:16 CDT 2003


   Jason Clinton wrote:

# dd bs=1024 if=/dev/hda1 > ssh -2C -l [user] [ip of a linux box
with 10GB free] "tar -cj /var/server-backup.tar.bz2"

   Some corrections to my own musing that I've discovered thus far:
# dd bs=1024 if=/dev/hda1 | bzip2 --best | ssh -2 -l [user]
[ipaddress] "cat - > /var/server-backup.bz2"

   tar is unnecessary because there are no directories. It would be best
   to compress it before it goes over the network. cat is taking stdin to
   stdout and bash is dumping stdout to a file. Is this any closer?




More information about the Kclug mailing list