Where to restore NC backup after failed Update?

An update failed and now I want to restore the automatic backup to get NC working again.

The backup is located in:

/mnt/NextCloudDrive/nextcloud/data/updater-ocxspvykekrd/backups/nextcloud-29.0.5.1-1725375333

Where do I put the Backup?

The Nextcloud Wiki says to use:

Simply copy your configuration and data folder (or even your whole Nextcloud install and data folder) to your Nextcloud environment. You could use this command:

rsync -Aax nextcloud-dirbkp/ nextcloud/

Where do I move the backup to get Nextcloud running again?

Nextcloud version (eg, 29.0.5): 29.0.5
Operating system and version (eg, Ubuntu 24.04): 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.25
PHP version (eg, 8.3): 8.2

Had to use the following to get the backup restored:

rsync -Aax /mnt/NextCloudDrive/nextcloud/data/updater-ocxspvykekrd/backups/nextcloud-29.0.5.1-1725375333/ /var/www/nextcloud/

Note the backup made by the Updater is not the same as a full backup. The docs you seem to be referring to (Restoring backup — Nextcloud latest Administration Manual latest documentation) are intended to be used with the section just before them (Backup — Nextcloud latest Administration Manual latest documentation).

Just mentioning this to avoid confusion. Those backups from Updater, for example, do not actually include your data. The only thing backed up by the Updater is the application code and your main config/ folder.

2 Likes

Yes, that’s a good addition.

In my case, I only needed the backup from the updater restored, since the updater got stuck.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.