I’m using UCS 4.4.6 with Nextcloud 20.0.2-0.
In the last days I read a lot about backup and restore. But it’s difficult for me to get a specific hint for backup a nextcloud-installation on a ucs.
I found
But what does it mean?
To backup a nextcloud-installation I only have to do two things:
Save the directory /var/lib/univention-appcenter/apps/nextcloud/data
To backup the database with the pg_dump utility.
To restore a nextcloud-installation I only have to do two things:
To overwrite the directory in the new installation with the save directory
To restore the database with the pg_restore utility.
I haven’t done a full circle with the restore yet - so as always - use with care. There is a bareos/nextcloud whitepaper I’ve used for this. The solution requires a maintenance circle - so I guess is suitable for smaller environments.
Edit: so in between the scripts at least two locations to backup:
Yes, as long as the pg_dump reflects the time of the directory backup.
That’s why it is advised (in this solution) to set nextcloud in maintenance mode before the backup.