forked from Percona-Lab/mongodb_consistent_backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mongodb-consistent-backup.example.conf
102 lines (102 loc) · 3.89 KB
/
mongodb-consistent-backup.example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
production:
host: localhost
port: 27017
#username: [auth username] (default: none)
#password: [auth password] (default: none)
#authdb: [auth database] (default: admin)
#ssl:
# enabled: [true|false] (default: false)
# insecure: [true|false] (default: false)
# ca_file: [path]
# crl_file: [path]
# client_cert_file: [path]
log_dir: /var/log/mongodb-consistent-backup
# This can be set here, but is really designed to override
# the default via the command line.
#backup-time: yyyymmdd_HHMM (default: current time)
backup:
method: mongodump
name: default
location: /var/lib/mongodb-consistent-backup
# mongodump:
# binary: [path] (default: /usr/bin/mongodump)
# compression: [auto|none|gzip] (default: auto - enable gzip if supported)
# threads: [1-16] (default: auto-generated, shards/cpu)
#rotate:
# max_backups: [1+]
# max_days: [0.1+]
#replication:
# max_lag_secs: [1+] (default: 10)
# min_priority: [0-999] (default: 0)
# max_priority: [2-1000] (default: 1000)
# hidden_only: [true|false] (default: false)
# read_pref_tags: [key:value,key:value,...] (default: none)
# preferred_members: rsname/host:port[,...] (default: none)
#sharding:
# balancer:
# wait_secs: [1+] (default: 300)
# ping_secs: [1+] (default: 3)
#oplog:
# compression: [none|gzip] (default: gzip, if used by backup stage)
# flush:
# max_docs: [1+] (default: 100)
# max_secs: [1+] (default: 1)
# resolver:
# threads: [1+] (default: 2 per CPU)
# tailer:
# enabled: true
# status_interval: 30
archive:
method: tar
# tar:
# compression: [none|gzip] (default: gzip, none if backup already compressed)
# threads: [1+] (default: 1 per CPU)
# binary: [path] (default: tar)
# zbackup:
# binary: [path] (default: /usr/bin/zbackup)
# cache_mb: [mb] (default: 128)
# compression: [lzma] (only lzma is supported)
# password_file: [path] (default: none)
# threads: [1+] (default: 1 per CPU)
notify:
method: none
# nsca:
# server: [host:port] (default: localhost:5667)
# password: [password]
# check_host: [nagios host]
# check_name: [nagios check name]
# zabbix:
# use_config: true (If zabbix-agent is installed, use its config)
# server: [zabbix host] (unused if use_config == true. default: 127.0.0.1)
# port: [zabbix port] (unused if use_config == true. default: 10051)
# node: [zabbix node display name] (default: node hostname)
# key: [zabbix item key]
upload:
method: none
# file_regex: [regular expression] (default: none)
# remove_uploaded: [true|false] (default: false)
# retries: [1+] (default: 5)
# threads: [1+] (default: 4)
# gs:
# project_id: [Google Cloud Project ID]
# access_key: [Google Cloud Storage Interoperability API Access Key]
# secret_key: [Google Cloud Storage Interoperability API Secret Key]
# bucket_name: [Google Cloud Storage Bucket Name]
# bucket_prefix: [prefix] (default: /)
# rsync:
# path: [Rsync Destination Path]
# user: [SSH Username]
# host: [SSH Hostname/IP]
# port: [SSH Port Number] (default: 22)
# delete: [true|false] (default: false)
# s3:
# target_mb_per_second: [1+] (default: unlimited)
# region: [AWS S3 Region] (default: us-east-1)
# access_key: [AWS S3 Access Key]
# secret_key: [AWS S3 Secret Key]
# bucket_name: [AWS S3 Bucket Name]
# bucket_prefix: [prefix] (default: /)
# chunk_size_mb: [1+] (default: 50)
# secure: [true|false] (default: true)
# acl: [acl_str] (default: none)
# skip_bucket_validation: [true|false] (default: false)