Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Comparison of backup tools

I'm sure there's a lot of questions on here similar to this, and I've been reading them, but I still feel this warrants a new question.

I want nightly, incremental backups (full disk images would waste a lot of space - unless compressed somehow.) Preferably rotating or deleting old backups when running out of space or after a fixed number of backups. I want to be able to quickly and painlessly restore my system from these backups. This is my first time running ubuntu as my main development machine and I know from my experience with it as a server and in virtual machines that I regularly manage to make it unbootable or damage it to the point of being unable to rescue it. So how would you recommend I do this? There are so many options out there I really don't know where to start.

There seems to be a vocal school of thought that it's sufficient to backup your home directory and the list of installed packages from the package manager. I've already installed lots of things from source, or outside of the package manager (development tools, ides, compilers, graphics drivers, etc.) So at the very least, if I do not back up the operating system itself I need to grab all config files, all program binaries, all created but required files, etc. I'd rather backup too much than too little - an ubuntu install is tiny anyway. Also this drastically reduces the restore time, which would cost me more in my time than the extra storage space.

I tried using Deja Dup to backup the root partition, excluding some things like /mnt /media /dev /proc etc. Although many websites assured me you can backup a running linux system this way - that seems to be false as it complained that it could not backup the following files:

/etc/NetworkManager/system-connections/LAN Connection
share|improve this question
See also help.ubuntu.com/community/BackupYourSystem –  bodhi.zazen Apr 9 '12 at 0:21
You can't backup those files because you don't have access to them. You need to run the backup program with root permissions ( sudo ). –  psusi Apr 9 '12 at 14:48
@psusi thanks, that fixed my problem. I incorrectly assumed ubuntu was running deja-dup as root. The question could be rephrased and an answer given, but for me the problem is resolved and google should still pick this up for those who have the same problem anyway. –  Eloff Apr 9 '12 at 21:13
add comment

marked as duplicate by Ringtail, bodhi.zazen, psusi, jrg Apr 9 '12 at 19:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

If you want it to be automatic: make a script that calls rsync and add a cron job that runs the script nightly when your computer will be on.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.