Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readonly tarball=$BACKUP_NAME$BACKUP_SUFFIX.tar.gz
tar czf $tarball $BACKUP_TAR_OPTION $PATHS_TO_BACKUP

# Create bucket, if it doesn't already exist
BUCKET_EXIST=$(aws s3 ls | grep $S3_BUCKET_NAME | wc -l)
BUCKET_EXIST=$(aws s3 ls | grep " ${S3_BUCKET_NAME}$" | wc -l)
if [ $BUCKET_EXIST -eq 0 ];
then
aws s3 mb s3://$S3_BUCKET_NAME
Expand Down