-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathsample_config.py
More file actions
32 lines (26 loc) · 810 Bytes
/
sample_config.py
File metadata and controls
32 lines (26 loc) · 810 Bytes
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
# directory that should be watched for changes
wpath = "/repo/ubuntu"
## Not implemented yet:
# exclude list for rsync
#rexcludes = [
# "/localhost",
#]
rnodes = [ "10.0.0.2" ]
# event mask (only sync on these events)
emask = {
"IN_CLOSE_WRITE": "/usr/local/bin/sync-copy",
"IN_CREATE": "/usr/local/bin/sync-copy",
"IN_MOVED_TO": "/usr/local/bin/sync-copy",
"IN_DELETE": "/usr/local/bin/sync-remove",
"IN_MOVED_FROM": "/usr/local/bin/sync-remove",
}
# event delay in seconds (prevents huge amounts of syncs, but dicreases the
# realtime side of things)
# Default: 1
#edelay = 10
## Not implemented yet:
# rsync log file for updates
#logfile = "/var/log/inorun.log"
# initial event to raise virtually on watched directory, maybe to start an
# initial full copy
#initevent = "IN_CREATE"