Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Linux (Ubuntu 10.04) for more than a year and I feel often that I need to reinstall it to newest version.

I'd like to take most of my configurations and important settings to the new system. I already have in mind some files and directories that I certainly want to backup, but I'm afraid I will forget something.

Is there some checklist or guideline (or even software) I can use to help me with backuping the important things? I don't want to backup whole partition (it's not so critical)

How do you cleanly update to newer version?

thank you

share|improve this question
Why reinstall? Just upgrade! – laebshade Nov 19 '11 at 19:32
I'd like to clean the system a little and the upgrade is not directly possible to newest version 11.10. – xralf Nov 19 '11 at 19:59
Clean up your system a little but try not to think of it as necessary for linux desktops. – laebshade Nov 20 '11 at 5:34
up vote 2 down vote accepted

As psusi correctly points out, you shouldn't need to reinstall a Debian derivative. Just upgrade.

Regardless, the obvious answer to the backup question is to use version control to back up your home directory and config settings. For the config files in /etc on a Unix-like system, Joey Hess's etckeeper is popular. I'd recommend using a distributed version control system like Mercurial or Git, which can be used to periodically push the repository contents off your hard drive, and thus acts as an automatic backup. With Mercurial you can set up a post-commit hook which will push after you commit, so your backups always stay completely up to date.

Note that this is not a general backup solution in this case, but works well for important config files and so forth, since they are general small text files, and therefore ideal for source control. And in this situation distributed version control is super-efficient, comparable in performance to rsync but better because of the atomicity of version control. Mercurial, at least, will roll back rather than push a partial changeset, and I imagine Git does the same. Also, version controlling your config files has obvious additional benefits.

share|improve this answer

You don't need to backup anything. Just install the new version and choose the option to upgrade the existing install. All of your files and settings will be preserved.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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