Posted by Serge on Fri 10 Dec 2004 at 10:05
I was wondering what needs to be backed-up on a Debian system, without backing up too much, considering packages can be re-downloaded. Until now, I've been using this various pieces (amongst others) in my backup script, on a server that performs typical LAMP, DNS en email services.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
This article can be found online at the Debian Administration website at the following bookmarkable URL:
This article is copyright 2004 Serge - please ask for permission to republish or translate.