Anyway if your install is broken after a dist-upgrade (or any upgrade) it's always nice to have a backup at hand. In search of the ideal, most flexible, backup tool out there I found mondo. So, people, stop asking for a backup tool for Linux on forums, this one will suite your needs.
Unlike some other tools, mondo creates a backup of a live system. It is also capable of creating a set of CD's or DVD's which are bootable and will help you to easily restore your data.
mondo comes with an ncurses based UI to help you easily create backups. I still like the command line version though, so here's my script:
#!/bin/sh
BACKUP_HOME=/home/bu_operator/bkp
BACKUP_TEMP=/home/bu_operator/tmp
BACKUP_PATH=$BACKUP_HOME/`date +%Y%m%d`_myHost
BACKUP_EXCLUDE='/mnt /dev /proc /tmp /home/bu_operator'
mkdir -p $BACKUP_PATH
mondoarchive -Oi -9 -s 4200m -d $BACKUP_PATH -E "$BACKUP_EXCLUDE" -T $BACKUP_TEMP -S $BACKUP_TEMP
The above script will create a live backup (compressed) of the whole system on DVD ISO images. The BACKUP_EXCLUDE variable contains some volatile folders we don't want to be included in the backup.
Restoring the backup is easy. Burn the ISO images on a CD/DVD (or set of CD's/DVD's), boot from the first CD/DVD, select RESTORE and go grab a cup of coffee while mondo is doing the hard work.


1 comments:
酒店打工
酒店兼職
台北酒店
打工兼差
酒店工作
酒店經紀
禮服酒店
酒店兼差
酒店上班
酒店PT
酒店
酒店喝酒
酒店消費
喝花酒
粉味
喝酒
Post a Comment