Migrating to Natty (or any other future versions of ubuntu)
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,
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)
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?
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?
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?
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?
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?
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.
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. ;)
Thanks a bunch for this mini-guide, Nik and sebikul. I love that these answers are grouped as such, as they are all heavily related! I would like to add a few things: config files can be located in other places besides hidden folders within ~. Do a google search for specific programs, if you want to save their config files but can't find them, and you can usually find their locations within documentation files or forum posts. Here are the config files I saved when I did my clean install:
LibreOffice: ~/.libreoffice
mplayer: /etc/mplayer/mplayer.conf
appearance: ~/.themes/*
cellwriter: ~/.cellwriter/profile
gedit: /usr/share/gtksourceview-2.0/styles/*.xml
/usr/share/gtksourceview-2.0/language-specs/*.lang
xournal: ~/.xournal
mplayer and gedit have some unique settings filepaths, to note. Thanks again!
I just want to give a suggestion: to migrate all configuration file, bookmarks, add ons, extensions for Thunderbird or Firefox, the absolute easiest way is just enter .mozilla or .thunderbird in your home folder (Ubuntu) and you will see something like this: j74hfhj.default. Open this folder and copy the entire contents into something to store it, then when ready to migrate simply paste into the same folder in your new version of either program. When asked, just replace or merge with whatever is already there. After installing each Mozilla app you have to open the program once to create this folder. In Ubuntu: home/name/.firefox/firefox/uf7sdkjr.default. I don't remember where this is located in windows, but it works just the same.