-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodesync.conf
31 lines (23 loc) · 872 Bytes
/
nodesync.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
# This is a comment
edelay = 20
# This is the first watch
watch_config {
wpath = /etc/nginx/
recursive = yes
depth = 2
rnodes = server1.domain.com:/etc/nginx/ server2.domain.com:/root/nginx/
excludes = /backups
logfile = /root/inosync_nginx.log
local_backup_directory = /etc/nginx/backups/
rsync = /usr/bin/rsync
args = "--backup --backup-dir=/root/nginx/ --suffix=_backup --rsh=ssh --i /etc/ssh/ssh_host_dsa_key"
}
# This is the second watch
watch_config {
wpath = /etc/rc.local
rnodes = server2.domain.com:/etc/rc.local server3.domain.com:/root/rc.local/
logfile = /root/inosync_rc_local.log
local_backup_directory = /etc/backups/
rsync = /usr/bin/rsync
args = "--backup --backup-dir=/root/etc/ --suffix=_backup --rsh=ssh --i /etc/ssh/ssh_host_dsa_key"
}