Ghosting with Linux
Jason Clinton
me at jasonclinton.com
Wed Aug 20 18:07:09 CDT 2003
Jason Clinton wrote:
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?
Hehe. I figured it out. I compressed and sent my 100 MB /boot
partition down to 4.1 MB successfully. Here is what I did. Thanks for
listening to me talk to myself. :)
# dd bs=900K if=/dev/hda1 | bzip2 --best | ssh -2 -l root 134.193.43.211
"dd of=/var/server-backup.bz2"
To restore the backup:
# ssh -2 -l root 134.193.43.211 "bunzip2 /var/server-backup.bz2" |
dd bs=900K of=/dev/hda1
I'll let everyone know how the 10 GB NTFS partition with 7 GB of data
on it compresses down to and how long it took to make a backup accross
a 100 Mbit connection.
More information about the Kclug
mailing list