Can I just do apt-get upgrade?

I was just wondering if I can just update my Ubuntu server with sudo apt-get upgrade or if it’s not a good idea or if it’s simply not needed. Thanks!

You can update your Ubuntu server with
sudo apt-get update && apt-get upgrade

This command only upgrades packages and it is not a release upgrade. So you do not have to worry about breaking things.

However, in case of updating the OS it self by the following command
sudo do-release-upgrade
Here, you should consider taking a backup before proceeding. Generally, I would Google and see what issues users are facing after the upgrade and check in specific forums of apps that i am running Eg Nextcloud w.r.t updating base OS to new version.

OK. Cool. Thanks