Skip to content

Commit ad972d7

Browse files
Override flags
1 parent 4577833 commit ad972d7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/docker-persistent.example.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# DO NOT CHANGE 'log_dir' or 'backup.location' flags
2-
# when using with scripts/docker-persistent.sh!!!
1+
# 'log_dir' or 'backup.location' flags are auto-overriden
2+
# when using with scripts/docker-persistent.sh. Changes to
3+
# these flags will be ignored!
34
production:
45
host: mongodb.example.com
56
port: 27017

scripts/docker-persistent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BACKUP_DIR=/mongodb_consistent_backup
1515
BACKUP_CNF=$BACKUP_DIR/mongodb-consistent-backup.conf
1616
BACKUP_IMAGE=mongodb_consistent_backup
1717
BACKUP_DATA_IMAGE=mongodb_consistent_backup-data
18-
MCB_FLAGS="--config $BACKUP_CNF"
18+
MCB_FLAGS="-c $BACKUP_CNF -L $BACKUP_DIR/logs -l $BACKUP_DIR/data"
1919
DOCKER_IMAGE=timvaillancourt/mongodb_consistent_backup:latest
2020

2121
if [ "$ACTION" = "backup" ]; then

0 commit comments

Comments
 (0)