Hallo zusammen,
ich möchte eine Backup-Routine implementieren und habe zum Testen eine komplett neue Nextcloud auf einem vServer installiert. Ich habe die Installation analog folgendem Tutorial durchgefĂŒhrt.
Das Backup lÀuft auf einem gemounteten ftp-Server und wurde mit diesen Skripts
https://codeberg.org/DecaTec/Nextcloud-Backup-Restore
gemÀà dem Tutorial ausgefĂŒhrt.
Leider ergeben sich einige Fehlermeldungen im Verlauf des Skripts und nach AusfĂŒhren des Restore ist die Nextcloud nicht mehr zu erreichen.
Hier der Output des Backups:
Backup directory: /mnt/my_ftp/
16:06:42: Set maintenance mode for NextcloudâŠ
Maintenance mode enabled
Done16:06:44: Stopping web serverâŠ
Done16:06:46: Creating backup of Nextcloud file directoryâŠ
/bin/sh: 1: pigz: not found
tar: /mnt/my_ftp//20210928_160640//nextcloud-filedir.tar.gz: Wrote only 4096 of 10240 bytes
tar: Child returned status 127
tar: Error is not recoverable: exiting now
Done16:06:47: Creating backup of Nextcloud data directoryâŠ
Ignoring updater backup directory
/bin/sh: 1: pigz: not found
tar: /mnt/my_ftp//20210928_160640//nextcloud-datadir.tar.gz: Wrote only 4096 of 10240 bytes
tar: Child returned status 127
tar: Error is not recoverable: exiting now
Done16:06:47: Backup Nextcloud database (MySQL/MariaDB)âŠ
mysqldump: [Warning] Using a password on the command line interface can be insecure.
mysqldump: Error: âAccess denied; you need (at least one of) the PROCESS privilege(s) for this operationâ when trying to dump tablespaces
Done16:06:50: Starting web serverâŠ
Done16:06:51: Switching off maintenance modeâŠ
Maintenance mode disabled
DoneDONE!
Und hier der Output des Restore Skripts:
Backup directory: /mnt/my_ftp/
16:24:05: Set maintenance mode for NextcloudâŠ
Maintenance mode enabled
Done16:24:07: Stopping web serverâŠ
Done16:24:08: Deleting old Nextcloud file directoryâŠ
Done16:24:10: Deleting old Nextcloud data directoryâŠ
Done16:24:10: Restoring Nextcloud file directoryâŠ
tar (child): pigz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Done16:24:11: Restoring Nextcloud data directoryâŠ
tar (child): pigz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Done16:24:11: Dropping old Nextcloud DBâŠ
mysql: [Warning] Using a password on the command line interface can be insecure.
Done16:24:14: Creating new DB for NextcloudâŠ
mysql: [Warning] Using a password on the command line interface can be insecure.
Done16:24:14: Restoring backup DBâŠ
mysql: [Warning] Using a password on the command line interface can be insecure.
Done16:24:18: Starting web serverâŠ
Done16:24:18: Setting directory permissionsâŠ
Done16:24:18: Updating the system data-fingerprintâŠ
Could not open input file: /var/www/nextcloud/occ
Done16:24:19: Switching off maintenance modeâŠ
Could not open input file: /var/www/nextcloud/occ
DoneDONE!
16:24:19: Backup 20210928_160640 successfully restored.
Ich habe nach dem Restore Nextcloud noch einmal installiert und konnte dann auch wieder darauf zugreifen. Der Restore hat an sich funktioniert, da alle meine Ănderungen nach dem Backup wieder zurĂŒck gestellt waren aber die Nextcloud selbst war leider kaputtâŠ
Hat jemand eine Idee was da bei mir falsch lÀuft?
Viele GrĂŒĂe!