Moin,
I try my first steps with nextcloud on UCS. Using without backup is bullshit.
My first attempt in backup and restore failed. What was my way?
The Core of backup
-> directory: tar -vcpzf ZIEL QUELLE
-> database: sudo -i -u postgres pg_dump -v -Fd nextcloud -f ZIEL
The Core of restore:
Restore Data-Directory
-> Delete the directory: cd /var/lib/univention-appcenter/apps/nextcloud rm -r -f data mkdir data
-> extract the backup: tar -vxpzf /BACKUP0/NEXTCLOUD/SAVE_YYYYMMTT/DATA_YYYYMMTT_HHMMSS/nexdata.tar.gz -C /
Restore database
-> delete database: sudo -i -u postgres dropdb nextcloud
-> restore from dump: sudo -i -u postgres pg_restore --format=d /BACKUP0/NEXTCLOUD/SAVE_YYYYMMTT/BASE_YYYYMMTT_HHMMSS
Set fingerprint
univention-app shell nextcloud sudo -u www-data php /var/www/html/occ maintenance:data-fingerprint
Whats wrong?