Tuesday, 13 July 2010

Backing up Ubuntu

Ubuntu can be easily backed up using a programme called deja-dup. I recommend configuring deja-dup to backup the /home, /etc and /opt files. /etc should not be restored but it holds a bank of configuration files that may be useful if you need to refer back to them in a fresh setup.

Also create a cron script running daily to backup a list of installed packages using this command


dpkg --get-selections > ~/package.selections


When restoring a backup simply do

sudo dpkg --set-selections ~/package.selections && apt-get dselect-upgrade

after you have readded sources from your sources.list and restored the /home folder

No comments:

Post a Comment