File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 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!
1+ # 'log_dir' and 'backup.location' flags are auto-overriden
2+ # when using with scripts/docker-persistent.sh. No need to
3+ # add them here.
44production:
5- host: 172.17.0.1
5+ host: mongodb01.example.com
66 port: 27017
7- log_dir: /mongodb_consistent_backup/logs
87 backup:
98 method: mongodump
109 name: default
11- location: /mongodb_consistent_backup/data
1210 archive:
1311 method: tar
1412 notify:
Original file line number Diff line number Diff line change 44# with persistent data container for data, config and logs.
55#
66# 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-
7+ # config to pass to this script during backup. 'log_dir' and
8+ # 'backup.location' variables are auto-set by this script.
9+ #
10+ # Run backup:
11+ # $ scripts/docker-persistent.sh backup scripts/docker-persistent.example.conf
12+ # # Loading config file scripts/docker-persistent.example.conf into container
13+ # # Running Docker image: timvaillancourt/mongodb_consistent_backup:latest
14+ # [2017-04-27 11:22:04,255] [INFO] [MainProcess] [Main:init:127] Starting mongodb-consistent-backup version 1.0.0 (git commit: d780ad545b603d3a2f807e1813f1de407e81f1ba)
15+ # ...
16+ # ...
17+ #
18+ # List backups (in persistent Docker volume):
19+ # $ scripts/docker-persistent.sh list
20+ # /mongodb_consistent_backup/data/default/20170427_1122
21+ # /mongodb_consistent_backup/data/default/20170427_1123
22+ #
23+ # Get a backup:
24+ # $ scripts/docker-persistent.sh get /mongodb_consistent_backup/data/default/20170427_1122
25+ # $ ls -ald ./20170427_112
26+ # drwxr-xr-x. 3 root root 59 Apr 27 13:22 ./20170427_1122
27+ #
1028
1129ACTION=$1
1230[ -z $1 ] && echo " Usage: $0 [backup|list|get] [action flags]" && exit 1
You can’t perform that action at this time.
0 commit comments