2

Presently running Ubuntu 12.04 LTS 64 bit with lots of other software. List of other software are listed below which I use most.

  1. Oracle JDK
  2. Apache HTTP server
  3. Tomcat
  4. MySql
  5. PostgreSQL
  6. Few Cron jobs using crontab
  7. Darktable
  8. Gimp

Few of them installed using apt-get and others are installed from source inside /opt directory.

Now my questions are, if I upgrade my system to 14.04 LTS using update manager prompt, what data will be lost? Do I have to install those software all over again? AFAIK /home will be preserved. Need to confirm.

Update: Done online upgrade from 12.04 to 14.04 and everything is in place. No data is lost, All the mentioned softwares including database are working fine. Every customisation is in place.

  • You do understand the concept of a backup? – Rinzwind Sep 3 '14 at 10:37
  • @Rinzwind, Yes I do understand and I definitely will. But simple .tar backup will not work for installations as per my knowledge. – Sourav Biswas Sep 3 '14 at 16:11
  • Ofcourse! backup for mysql you do with mysqlbackup. apache config are all in /etc/apache2/ and other software will have it in their respective place (so no it is not easy). But it should be a 1 time effort to get the backup sorted out and you can re-use it for every upgrade ;) – Rinzwind Sep 3 '14 at 16:30
2

Best option is to make an image of the current disk. Test it to make sure it works.

  • Your homefolder won't be changed, or: should not be changed.
  • Gimp: settings are in your home folder.
  • Apache, PHP, MySQL, Postgres, Tomcat: upgrades may break what you run on your machine. I can't tell it from here, it's a matter of testing. Something may depend on a function that is not available anymore, and it will break.
  • Backup folders and files in /etc where config files for Apache etc are located. You can backup the entire /etc folder as it's probably not too big. You need to be root to do this. Do this with tar, and be sure to preserve rights and ownership.
  • Cron jobs should stay the same, back them up if you're not sure.

The upgrade program may ask you what to do with the Apache config file(s): overwrite, keep? You should keep them. Same for other config files: keep them.

  • 1
    /etc can by HUGH if it is a serious MySQL database ;) – Rinzwind Sep 3 '14 at 10:39
  • Yep you're correct. I just tested on my local machine and that was 21MB, but nothing serious going on here! ;-) – SPRBRN Sep 3 '14 at 10:47
  • @SPRBRN: Size of my /etc is 16MB so it will not be a problem. Used 'sudo du -h -s /etc/'. – Sourav Biswas Sep 3 '14 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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