File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ def sync(self):
68
68
return
69
69
args = [config .rsync , "-ltrp" , "--delete" ]
70
70
args .append ("--bwlimit=%s" % config .rspeed )
71
+ if config .logfile :
72
+ args .append ("--log-file=%s" % config .logfile )
71
73
if "excludes" in dir (config ):
72
74
for exclude in config .excludes :
73
75
args .append ("--exclude=%s" % exclude )
@@ -160,6 +162,9 @@ def load_config(filename):
160
162
if config .edelay < 1 :
161
163
raise RuntimeError , "event delay needs to be greater than 1"
162
164
165
+ if not "logfile" in dir (config ):
166
+ config .logfile = None
167
+
163
168
if not "rsync" in dir (config ):
164
169
config .rsync = "/usr/bin/rsync"
165
170
if not os .path .isabs (config .rsync ):
Original file line number Diff line number Diff line change 32
32
# realtime side of things)
33
33
#edelay = 10
34
34
35
+ # rsync log file for updates
36
+ #logfile = /var/log/inosync.log
37
+
35
38
# rsync binary path
36
39
#rsync = "/usr/bin/rsync"
You can’t perform that action at this time.
0 commit comments