Skip to content

Commit ab95f14

Browse files
Add example config for persistent docker
1 parent 942f7e5 commit ab95f14

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# DO NOT CHANGE 'log_dir' or 'backup.location'
2+
production:
3+
host: mongodb.example.com
4+
port: 27019
5+
log_dir: /mongodb_consistent_backup/logs
6+
backup:
7+
method: mongodump
8+
name: default
9+
location: /mongodb_consistent_backup/data
10+
archive:
11+
method: tar
12+
notify:
13+
method: none
14+
upload:
15+
method: none

scripts/docker-persistent.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#
33
# Script for running mongodb_consistent_backup under Docker
44
# with persistent data container for data, config and logs.
5+
#
6+
# See: scripts/docker-persistent.example.conf for an example
7+
# config to pass to this script during backup. Make sure
8+
# 'log_dir' and 'backup.location' are not changed!
9+
510

611
ACTION=$1
712
[ -z $1 ] && echo "Usage: $0 [backup|list|get] [action flags]" && exit 1

0 commit comments

Comments
 (0)