diff --git a/bookstack-helm/templates/backupscript.yaml b/bookstack-helm/templates/backupscript.yaml index 8755a61..c216e65 100644 --- a/bookstack-helm/templates/backupscript.yaml +++ b/bookstack-helm/templates/backupscript.yaml @@ -17,7 +17,7 @@ data: restore.sh: | echo "Checking if restore is needed" echo "Restore file is: $RESTORE_S3_URL" - if [ ! -n "$RESTORE_S3_URL" ]; then + if [ ! -n "$RESTORE_S3_URL" ] && [ "$RESTORE_S3_URL" != "skip" ]; then echo "Restoring from $RESTORE_S3_URL" apk add aws-cli aws s3 cp "$RESTORE_S3_URL" /tmp/restore.tgz diff --git a/bookstack-helm/values.yaml b/bookstack-helm/values.yaml index 4e83f97..50881ba 100644 --- a/bookstack-helm/values.yaml +++ b/bookstack-helm/values.yaml @@ -28,6 +28,8 @@ bookstack: image_pvc_size: 5Gi backup: cron_schedule: "33 3 * * *" + aws: + restore_s3_url: "skip" image: repository: lscr.io/linuxserver/bookstack