Skip to content

Commit

Permalink
add error message if backup exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nllong committed Mar 1, 2022
1 parent c9021c1 commit 3c0a059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/backup_k8s/tar_backup_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ ARCHIVE=backup.tar.xz
# if backup already exists, forgo rest of script
if aws s3 ls $S3_BUCKET/$LATEST_DIR | grep $ARCHIVE; then
echo "There's already a backup for $LATEST_DIR";
send_slack_notification "[ERROR-$ENVIRONMENT]-backup-already-exists-for-$LATEST_DIR"
exit 0
fi

Expand Down

0 comments on commit 3c0a059

Please sign in to comment.