Duplicati Nextcloud Backup Script

When Duplicati backups and restores Nextcloud files, we want to enable maintenance mode. However by default, Duplicati runs scripts on every operation including when it lists the restore folders, which we don’t want. The following scripts prevents Duplicati from running the script when it’s only listing the restore folders. NextcloudOn.sh Script to turn on Nextcloud Maintenance mode #!/bin/bash if [ "%DUPLICATI__OPERATIONNAME%" != "List" ] then nextcloud.occ maintenance:mode --on fi exit 0 NextcloudOff....

February 13, 2023 · 1 min · 130 words · Wei Wang