I've recently Upgrade my UBUNTU(18.10) to 19.04(For some reasons I had to install the OS from the first and not just using upgrade tool in OS) and before I migrated to 19.04,I backed up some directories as mentioned here , but when I restored my back up my UBUNTU exploded so I had to reinstall the UBUNTU and gave up about the backup
My question is , if I want to migrate to new version of UBUNTU in future , what directories should I backup so I don't have to install all of packages and all their configurations and all services that I installed before and most importantly ,no compatibility issues appear ?? Which directories do you suggest to backup if someone wants to upgrade his OS and doesn't want to do all of things from the beginning of installing an OS again ??