9

i have a teamspeak voice server and sinus bot running on my vps with ubuntu 20.04 TLS installed and i would like to upgrade to the latest version 22.04 or even 22.10.

Since i already configured both servers and invested quite some time i would like to upgrade without loosing any data and configuration on my server and of course the voice server and sinusbot should work after the upgrade. I guess a full backup of my machine would be a good idea but i have no idea how to do that.

Can you guys help me through the process to make a backup and how i can properly upgrade to the latest version without loosing files or corrupting my server ? Thank you :)

Kind regards

1 Answers1

15

The basic workflow of a successful release upgrade is this:

  1. Backup your data.
  2. Return your system to as close to stock install as possible. Disable all non-Ubuntu apt sources, and uninstall all the deb packages that came from those sources. (Snap packages don't need to be uninstalled. Their presence won't interfere with the release-upgrade)
  3. Run a final sudo apt update and sudo apt upgrade. Fix ALL errors. Release-upgrades rarely fix package errors, but often make those errors worse.
  4. [Optional] Prepare a LiveUSB installer. The "Try Ubuntu" environment is invaluable for fixing upgrade problems.
  5. Run the release-upgrade. do-release-upgrade. Make sure you are on mains power (not battery), and on a reliable and fast network connection. Allow plenty of time (1-2 hours). Check the screen every few minutes -- the upgrader might pause awaiting your answer to a question.
  6. Reboot into the newly-upgraded release of Ubuntu. Test your functions: Stream a movie to test your network, video, and audio. Test printing, webcam, microphone.
  7. Review all of your add-on apt sources and applications. Some might be in the Ubuntu repositories now (no new source needed). Some might be no longer needed at all. Some apt sources might be incompatible with the new release of Ubuntu. Reinstall your add-on deb applications from trusted, compatible sources. Keep notes on what you added, and from where -- it really helps Step #2 next time.
  8. Your data should be untouched by the upgrade. Check that your data is compatible with the new versions of your applications.

The most common problem encountered during a release-upgrade is NOT lost/corrupted data. The most common problem encountered is a package version conflict. Steps #2 and #7 might seem like a lot of work, but that's how you prevent the most common problem. DON'T skip these steps or take shortcuts.

If something goes very badly wrong, Steps #1 and #4 ensure that you can rebuild a working system from bare metal with all your data intact. Being prepared for problems is the best way to ensure that you don't encounter those problems.

user535733
  • 68,493