Skip to content

Commit

Permalink
restore
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten committed Aug 8, 2024
1 parent f972ec0 commit 2c29a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bookstack-helm/templates/backupscript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions bookstack-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c29a45

Please sign in to comment.