April 23, 2017
Manually Upgrading the owncloud Instance on Your Linux Server
As I have to do it every now and then, here are the important steps of the upgrade workflow:
- Backup the whole folder (/var/www/owncloud) using, e.g.
cp -a owncloud backup_folder
- Activate the maintenance mode (in owncloud folder):
sudo -u www-data php occ maintenance:mode --on
- Download the new owncloud archive and “replace” the existing folder (including .htaccess file)
- Replace back the config/config.php file from the backup_folder and the data folder
- Run the upgrade:
sudo -u www-data php occ upgrade
- Switch back to normal mode:
sudo -u www-data php occ maintenance:mode --off