Skip to content

Commit 23b086f

Browse files
authored
Force region in s3 sync command
1 parent ef671a9 commit 23b086f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ else
2424
mkdir -p ${BACKUP_DST_DIR}
2525
mv "$COMPARE_DST_FULL_PATH" "$BACKUP_DST_FULL_PATH"
2626
#echo "archive created, uploading..."
27-
/usr/bin/aws s3 sync ${BACKUP_TGT_DIR} s3://${BACKUP_S3_BUCKET}
27+
/usr/bin/aws s3 sync ${BACKUP_TGT_DIR} s3://${BACKUP_S3_BUCKET} --region ${AWS_DEFAULT_REGION}
2828
fi
2929

3030

0 commit comments

Comments
 (0)