Skip to content

Commit 59bb238

Browse files
committed
Fix double slash in S3 path.
1 parent 002f4cc commit 59bb238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if [[ -z "$TARGET_FOLDER" ]]; then
1414
exit 1
1515
fi
1616

17-
mongodump --uri "$MONGO_URI" --gzip --archive | aws s3 cp - "$TARGET_S3_FOLDER/backup-$DATE.tar.gz"
17+
mongodump --uri "$MONGO_URI" --gzip --archive | aws s3 cp - "${TARGET_S3_FOLDER%/}/backup-$DATE.tar.gz"
1818
echo "Mongo dump uploaded to $TARGET_S3_FOLDER"
1919
else
2020
# save dump locally (and optionally to AWS S3)

0 commit comments

Comments
 (0)