=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 3488 - August 28, 2015
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
SECURE BACKUPS OVER NET
Securely backup a partition
across a network using dd,
gzip and SSH:
1. The partition to be backed
up must be unmounted.
2. The following does the trick:
dd if=/dev/partition_to_be_backed_up | gzip | ssh user_name@backup.server dd of=name_of_backup_file.gz
As an example, the following
backs up an image of a floppy disk:
dd if=/dev/fd0 | gzip | ssh user_name@backup.server dd of=floppy.img.gz
3. To restore a backed-up
partition across a network:
(From the backup server)
dd if=name_of_backup_file.gz | gzip -d | ssh user_name@target.server dd of=/dev/target_partition
To complete our floppy disk example:
dd if=floppy.img.gz | gzip -d | ssh user_name@target.server dd of=/dev/fd0
This tip generously supported by: steve-g@bigfoot.com
--------------------------------------------------------------------------
To Subscribe: http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe: http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today
==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU ADVISES THAT
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.
Unix Guru Universe - www.ugu.com - tips@ugu.com - Copyright 1994-2001
==========================================================================
Jumat, 28 Agustus 2015
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar