Ghosting with Linux
Brian Kelsay
bkelsay at comcast.net
Wed Aug 20 18:37:44 CDT 2003
Jason Clinton wrote:
> 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.
>
So now are you going to script this to a file like "backup_hda1_now"?
How about putting the restore script on in a file on a bootable Linux
floppy or CD? There is your restore solution.
--
A Computer without Microsoft is like a chocolate cake without mustard.
-as seen on IRC
More information about the Kclug
mailing list