zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Upgrade Nextcloud from command line

October 11, 2020 by Igor Drobot 1 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 DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. Fernando says

    October 23, 2022 at 21:44

    Thanks! It helped a lot, I was looking for how to do this update, with more than 50 users it’s practically mandatory if you don’t want to have problems…

Leave a Reply

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

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok