[mdlug] Network backup options
Carl T. Miller
millerc at cantonpl.org
Sun Feb 4 04:48:19 EST 2007
R. Kannan wrote:
>>Or if you want to copy the entire partition gzipped:
>>
>>gzip /dev/hda1 | ssh user at laptop "cat > ~/desktop.hda1.gz"
>>
> Thanks. Exactly what I was looking for. But one question on the second
> command. 'man gzip' did not have a whole lot of details on using gzip on a
> device. How do I write back the contents on a partition like...
If you are restoring to identical hardware, you can do
the reverse:
ssh user at laptop "cat ~/desktop.hda1.gz" | gunzip > /dev/hda1
Otherwise you can unzip the file, mount it like a real partition,
then copy the files:
gunzip ~user/desktop.hda1.gz
mount -t auto -o ro ~user/desktop.hda1 /mnt/hda1
c
More information about the mdlug
mailing list