Skip to content

Commit

Permalink
feat: add debug statement to mongodb backup image
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Jun 4, 2024
1 parent b088d17 commit 6642ab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/mongodb-backup/7.0/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ S3BACKUP=${S3PATH}\${BACKUP_NAME}
aws configure set default.s3.signature_version s3v4
echo "=> Backup started"
echo "${HOST_STR}${PORT_STR}${USER_STR}${PASS_STR}${DB_STR} --archive=\${BACKUP_NAME} --gzip"
if mongodump ${HOST_STR}${PORT_STR}${USER_STR}${PASS_STR}${DB_STR} --archive=\${BACKUP_NAME} --gzip && aws s3 cp \${BACKUP_NAME} \${S3BACKUP} ${REGION_STR} ${ENDPOINT_STR} && rm \${BACKUP_NAME} ;then
echo " > Backup succeeded"
else
Expand Down

0 comments on commit 6642ab5

Please sign in to comment.