zeldor.biz

Linux, programming and more

Copyright © 2021
Log in

Upgrade Nextcloud from command line

October 11, 2020 by Igor Drobot Leave a Comment

Nextcloud updates can be typically performed over the graphical administration interface.
In most cases updates are running very smooth but in other cases, some issues can occurred with the nextcloud remote download servers or the PHP-Backend or because something is running in a timeout. The update experience over the command line interface is much reliable and faster. Just try it out.

Go to your Nextcloud instance updater-directory, where the updater.phar file is located.

cd /var/www/nextcloud/updater

Run the updater with your webserver user, typically it’s www-data:

sudo -u www-data php updater.phar

The updater will prompt you approximately 3 times for your input:

Nextcloud Updater - version: v18.0.6-11-g50bdca3 dirty

Current version is 19.0.3.

Update to Nextcloud 19.0.4 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.4.zip

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] 
Should the "occ upgrade" command be executed? [Y/n] 
Keep maintenance mode active? [y/N]

Filed Under: Linux

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY Fedora FTP Fun GIT Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID Roundcube rsync security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *