File: sample_config.py

package info (click to toggle)
inosync 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 84 kB
  • ctags: 31
  • sloc: python: 193; sh: 17; makefile: 13
file content (39 lines) | stat: -rw-r--r-- 724 bytes parent folder | download
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
# 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,
]

# 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",
#]

# 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"