Skip to content

Commit

Permalink
More changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdoupe committed Nov 8, 2023
1 parent a850513 commit 2b0f919
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/dojo
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ case "$ACTION" in

# HELP: cloud-backup: upload the last day's worth of cloud backups to S3, but encrypt it at rest
"cloud-backup")
[ -f $BACKUP_AES_KEY_FILE ] || (echo "To use cloud backup, BACKUP_AES_KEY_FILE must be set to a file, but is $BACKUP_AES_KEY_FILE instead"; exit -1)
[ -z ${S3_BACKUP_BUCKET+x} ] && (echo "To use cloud backup, S3_BACKUP_BUCKET must be set to the S3 bucket to use"; exit -1)
[ -z ${BACKUP_AES_KEY_FILE+x} ] && echo "To use cloud backup, BACKUP_AES_KEY_FILE must be set"; exit -1
[ -f $BACKUP_AES_KEY_FILE ] || echo "To use cloud backup, BACKUP_AES_KEY_FILE must be set to a file, but is $BACKUP_AES_KEY_FILE instead"; exit -1
[ -z ${S3_BACKUP_BUCKET+x} ] && echo "To use cloud backup, S3_BACKUP_BUCKET must be set to the S3 bucket to use"; exit -1
set -e
for f in $(find data/backups -mtime -1 -type f)
do
Expand Down

0 comments on commit 2b0f919

Please sign in to comment.