Backup EVERYTHING before trying.
This is how I upgrade NextCloud:
REPLACE webuzousername with the username you use to accesss webuzo
sudo su webuzousername
cd /home/webuzousername/www
## Navigate to your next cloud directory then into your updater directory.
## Once in the updater directory, be suer you have the updater.phar and occ files are in there...
## if not you may have too pull them from a different directory, sometimes they are in the root directory.
## And you may need copies in both the root directory and the updater directory.
THEN RUN:
/usr/local/apps/php72/bin/php updater.phar
cd ..
/usr/local/apps/php72/bin/php occ upgrade
/usr/local/apps/php72/bin/php occ db:add-missing-indices
/usr/local/apps/php72/bin/php occ maintenance:mode --off
I have this also in my notes: but don't think I used them
/usr/local/apps/php72/bin/php occ config:system:set mysql.utf8mb4 --type boolean --value="true"
/usr/local/apps/php72/bin/php occ maintenance:repair --include-expensive
/usr/local/apps/php72/bin/php occ maintenance:repair