Question: Making efficient backups on Debian?
Posted by Serge on Fri 10 Dec 2004 at 10:05
dpkg --get-selections > /var/backups/apt-backup-selectionsAfter this I make remote stored backups of
mysqldump -u root --password=$MYSQLROOTPW --all-databases --opt > "/var/backups/mysql-$DATE.sql"
tar --absolute-names --create -j --file $MOUNTDIR/$BACKUPDIR/backup-$DATE.tbz --exclude-from=$EXCLUDE $INCLUDE
/etc /root /var/cache/bind /var/lib/dpkg /var/backups /var/www /usr/local
I somehow am in doubt whether this is enough, at least to the extent of the base system and the configurations. More specially, a good backup of the apt system seems important to be able to easily recover the host.
I should actually take the time to test a disaster recovery with this setup, but as I don't have a second Bytemark host handy, I'm keeping using this as a (bad) excuse :)
So what are other people here doing about their Debian host backups?