File: sample_config.py

package info (click to toggle)
inosync 0.2.3%2Bgit20120321-0.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 120 kB
  • ctags: 58
  • sloc: python: 337; sh: 17; makefile: 13
file content (43 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (2)
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
# directory that should be watched for changes
wpath = "/var/www/"

# exclude list for rsync
rexcludes = [
	"/localhost",
]

# common remote path
rpath = "/var/www/"

# remote locations in rsync syntax
rnodes = [
	"a.mirror.com:" + rpath,
	"b.mirror.com:" + rpath,
	"c.mirror.com:" + rpath,
]

# extra, raw parameters to rsync
#extra = "--rsh=ssh -a"

# limit remote sync speed (in KB/s, 0 = no limit)
#rspeed = 0

# event mask (only sync on these events)
#emask = [
#	"IN_CLOSE_WRITE",
#	"IN_CREATE",
#	"IN_DELETE",
#	"IN_MOVED_FROM",
#	"IN_MOVED_TO",
#	"IN_MODIFY",
#]

# event delay in seconds (prevents huge amounts of syncs, but dicreases the
# realtime side of things)
#edelay = 10

# rsync log file for updates
#logfile = /var/log/inosync.log

# rsync binary path
#rsync = "/usr/bin/rsync"