Ubuntu – Migrating to Natty (or any other future versions of ubuntu)

10.1011.04installation

I am hoping that this question would help other ubuntu users when migrating to a newer version of ubuntu. This should have all the info that they need. So please when you answer try to phrase them into points for easy understanding. I understand that some questions that I ask might have been asked before by other users. In that case just provide the links to those questions.

I am running ubuntu 10.10 Maverick Meerkat in case that is important. I can say for sure that a clean install is definitely better than an upgrade since it gives you an opportunity to clean your system and get a fresh start. However some of us like to retain certain software configuration or files etc.

The questions are as follows,

  1. How do you save the configuration files of certain application like for instance Thunderbird, firefox, etc…so that you can basically paste in the new version of ubuntu? (Thunderbird for instance has all my mail, so I definitely would like to backup its configuration and then use it the new installation that I do)

  2. I have some applications like MATLAB and Maple (Based on JAVA) installed. When I migrate, can I just copy the entire installation folder to the new version of ubuntu? Would it still work as now if I do that?

  3. When doing a backup which folders should be backed up? Obviously your personal files would be backup. But other than that, is it necessary to back up stuff in the home folder, /usr/bin etc?

  4. I have BURG installed. I am guessing that would be erased when I do a clean install along with the program's configuration and everything. How can I do a backup of it?

  5. I am dual booting my ubuntu alongside with Windows 7. When I perform the clean install of ubuntu, would GRUB (bootloader) be removed and in anyway jeopardize my windows installation?

  6. Over time I have added a lot of PPA which are of course compatible with my current ubuntu version. How do I make a backup of all my PPA and would they be compatible to the newer version of ubuntu when I restore them?

  7. Is there a way to get the entire list of user installed application and if possible automate the installation of those applications in the new system? For instance I have application like VLC,ubuntu tweak etc. installed, and rather than have to install everything from scratch it would be nice to have a program do it.

I hope this covers all the questions or doubts that a user might face when thinking about performing a clean install of his system. If I missed anything please mention it as a comment and I will add it to my question.

Best Answer

How do you save the configuration files of certain application like
for instance Thunderbird, Firefox?

To backup your apps data, you need to look in your Personal Folder for the .(hidden, press CONTROL + H to see them) folders. For example, Firefox (and other Mozilla apps) saves your personal data in a folder named .mozilla. Thunderbird does it using a folder named .thunderbird.
Others, Google Chrome/Chromium for example, use the .config folder, having a sub-folder there. (ex, .config/google-chrome)

To backup this settings, just copy the desired folders, just remember where they were before pasting them back.

When you copy an app folder, you copy ALL its preferences, history, databases, etc, so your bookmarks, extensions and other personal data are saved.


I have some applications like MATLAB and Maple (Based on JAVA) installed.
When I migrate, can I just copy the entire installation folder to the
new version of Ubuntu?

Yes, you can do that, but only with applications that were fully installed in that directory. Some apps install the main app in your home directory, but some libraries, or multimedia files (such as icons) in other folders. Be careful with this, the best is to reinstall, but you can use them.

*you should also check the compatibility, but they should work file


When doing a backup which folders should be backed up?

The most important folder is /etc, mostly because you may have modified a few files, like the Samba configuration, the SSH server configuration, the hosts file, and some other configuration that you may also have changed without knowing and would be better to keep rather than go back to the defaults ones (like the updates preferences, etc)

Other folders depends on what you have installed and/or modified (eg, XAMPP is installed on the /opt directory, and the configuration files reside in its own folder)


I have BURG installed. How can I do a backup of it?

I'm not exactly sure, i guess you can just backup the installed themes (if any). Reinstall in the new Ubuntu installation and restore. But again, it depends on what you have modified.


When I perform the clean install of ubuntu, would GRUB (bootloader)
be removed and in anyway jeopardize my windows installation?

No, GRUB is never removed, it may be upgraded, but this wont affect at all you Windows installation. Besides, remember you have BURG, which modifies GRUB's behavior


How do I make a backup of all my PPA and would they be compatible to the newer
version of ubuntu when I restore them?

The only way I know to do this is to manually backup all your .list located at /etc/apt

You should copy the sources.list and all the files located at /etc/apt/sources.list.d/


I hope to have answered all your questions. ;)

Related Question