mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 22:27:50 +00:00
added -s (protect args) to default rsync)
This commit is contained in:
parent
8adb5a3fbc
commit
9ed9df5eff
@ -118,7 +118,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||
<para>If a <option><pidfile></option> node is present lsyncd will write its pid there. Default is not to write a pidfile.</para>
|
||||
<programlisting> <pidfile filename="/var/run/lsyncd.pid"/></programlisting>
|
||||
|
||||
<para>With a <option><callopts></option> node you can control the arguments lsyncd will call the <binary> (rsync) with. Each child node will specify one argument. <option> specifies a literal argument. Only %r will be replaced with 'r' when rsycnd is supposed to work recursive (on startup of lsyncd) or 'd' on normal operations. <exclude-file> will be replaced with <option>--exclude-from [FILE]</option> if an <exclude-from> file is specified. <source> will be replaced the source directory to sync from. <destination> will be replace to the target to sync to. Default arguments are <option>-lt%r --delete {--exclude-from [FILE]} [SOURCE] [DIRECTORY]</option>.</para>
|
||||
<para>With a <option><callopts></option> node you can control the arguments lsyncd will call the <binary> (rsync) with. Each child node will specify one argument. <option> specifies a literal argument. Only %r will be replaced with 'r' when rsycnd is supposed to work recursive (on startup of lsyncd) or 'd' on normal operations. <exclude-file> will be replaced with <option>--exclude-from [FILE]</option> if an <exclude-from> file is specified. <source> will be replaced the source directory to sync from. <destination> will be replace to the target to sync to. Default arguments are <option>-lts%r --delete {--exclude-from [FILE]} [SOURCE] [DIRECTORY]</option>.</para>
|
||||
<programlisting> <callopts>
|
||||
<para>With a <option><inotify></option> node you can control the inotify events lsyncd will register to. Each event is configured by a <event> child node and its attribute 'id'. The following events may be registered: ACCESS,ATTRIB,CLOSE_WRITE,CLOSE_NOWRITE,CREATE,DELETE,DELETE_SELF,MODIFY,MOVE_SELF,MOVED_FROM,MOVED_TO,OPEN. If the inotify node is omitted the following events are registered by default: IN_ATTRIB,IN_CLOSE_WRITE,IN_CREATE,IN_DELETE,IN_DELETE_SELF,IN_MOVED_FROM,IN_MOVED_TO,IN_DONT_FOLLOW,IN_ONLYDIR.</para>
|
||||
<programlisting> <inotify>
|
||||
@ -126,7 +126,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
||||
<event id="DELETE"/>
|
||||
</inotify></programlisting>
|
||||
|
||||
<option text="-lt%r"/>
|
||||
<option text="-lts%r"/>
|
||||
<option text="--delete"/>
|
||||
<exclude-file/>
|
||||
<source/>
|
||||
|
2
lsyncd.c
2
lsyncd.c
@ -338,7 +338,7 @@ struct global_options {
|
||||
* Standard default options to call the binary with.
|
||||
*/
|
||||
struct call_option standard_callopts[] = {
|
||||
{ CO_TEXT, "-lt%r" },
|
||||
{ CO_TEXT, "-lts%r" },
|
||||
{ CO_TEXT, "--delete" },
|
||||
{ CO_EXCLUDE, NULL },
|
||||
{ CO_FILTER, NULL },
|
||||
|
@ -48,7 +48,7 @@ This is a default config file template for lsyncd.
|
||||
|
||||
destination will be the destination path to sync to -->
|
||||
<callopts>
|
||||
<option text="-lt%r"/>
|
||||
<option text="-lts%r"/>
|
||||
<option text="--delete"/>
|
||||
<exclude-file/>
|
||||
<file-filter/>
|
||||
|
Loading…
Reference in New Issue
Block a user