Skip to content

Commit

Permalink
Add a new option excludeFile and change default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cbonnissent committed Jun 16, 2011
1 parent 4ec39d0 commit 0ccbf5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inosync.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ def __init__(self, pretend=False):
self.pretend = pretend

def sync(self):
args = [config.rsync, "-ltrp", "--delete"]
args = [config.rsync, "-vcrz", "--delete-after"]
args.append("--bwlimit=%s" % config.rspeed)
if config.logfile:
args.append("--log-file=%s" % config.logfile)
if "rexcludes" in dir(config):
for rexclude in config.rexcludes:
args.append("--exclude=%s" % rexclude)
if "excludeFile" in dir(config):
args.append("--exclude-from=%s" % config.excludeFile)
args.append(config.wpath)
args.append("%s")
cmd = " ".join(args)
Expand Down

0 comments on commit 0ccbf5f

Please sign in to comment.