axkibe/lsyncd — Issue #87: rsyncOpts should be able to override "--delete" too
Author: axkibe
Created: 2011-11-16 15:11:15+00:00
State: open
Labels: Priority-Medium, Type-Defect

Originally filed by brainc...@gmail.com on 2011-10-07T13:29:31

I have a setup where I don't want rsyncssh to include the --delete flag by default. I thought rsyncOpts could override it but apparently it does not:

sync{default.rsyncssh, source="/foo", host="b5.biotech.kth.se", targetdir="/bar", rsyncOpts="-lts"}

$ ps aux | grep rsyncssh
(...)
rsyncssh 27537 59.0 0.0 111712 4552 ? R 15:26 0:02 /usr/bin/rsync --delete -r -lts foo machine2:/bar

Is there any way to override the whole rsync options when using rsyncssh ?

Thanks !