mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-09-27 22:49:02 +00:00
cosmetic
This commit is contained in:
parent
a987c7ab53
commit
6b0998093a
18
Makefile.am
18
Makefile.am
@ -18,21 +18,17 @@ nodist_man1_MANS = lsyncd.1 lsyncd.conf.xml.5
|
|||||||
check-syntax:
|
check-syntax:
|
||||||
$(CC) -c -O2 -Wall $(CHK_SOURCES) -o/dev/null
|
$(CC) -c -O2 -Wall $(CHK_SOURCES) -o/dev/null
|
||||||
|
|
||||||
lsyncd.1: manpage.lsyncd.xml
|
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
|
||||||
xsltproc -''-nonet \
|
XP = xsltproc -''-nonet \
|
||||||
-''-param man.charmap.use.subset "0" \
|
-''-param man.charmap.use.subset "0" \
|
||||||
-''-param make.year.ranges "1" \
|
-''-param make.year.ranges "1" \
|
||||||
-''-param make.single.year.ranges "1" \
|
-''-param make.single.year.ranges "1"
|
||||||
/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
|
|
||||||
$<
|
lsyncd.1: manpage.lsyncd.xml
|
||||||
|
$(XP) $(DB2MAN) $<
|
||||||
|
|
||||||
lsyncd.conf.xml.5: manpage.lsyncd.conf.xml
|
lsyncd.conf.xml.5: manpage.lsyncd.conf.xml
|
||||||
xsltproc -''-nonet \
|
$(XP) $(DB2MAN) $<
|
||||||
-''-param man.charmap.use.subset "0" \
|
|
||||||
-''-param make.year.ranges "1" \
|
|
||||||
-''-param make.single.year.ranges "1" \
|
|
||||||
/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
|
|
||||||
$<
|
|
||||||
|
|
||||||
AM_CFLAGS=-Wall
|
AM_CFLAGS=-Wall
|
||||||
AM_LIBS=
|
AM_LIBS=
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
`xsltproc -''-nonet \
|
`xsltproc -''-nonet \
|
||||||
-''-param man.charmap.use.subset "0" \
|
-''-param man.charmap.use.subset "0" \
|
||||||
-''-param make.year.ranges "1" \
|
-''-param make.year.ranges "1" \
|
||||||
@ -77,13 +76,13 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|||||||
<refsect1 id="description">
|
<refsect1 id="description">
|
||||||
<title>DESCRIPTION</title>
|
<title>DESCRIPTION</title>
|
||||||
<para><filename>lsyncd.conf.xml</filename> is used to configure the <command>lsyncd</command> daemon. </para>
|
<para><filename>lsyncd.conf.xml</filename> is used to configure the <command>lsyncd</command> daemon. </para>
|
||||||
<para>Note that any command line options can overrule settings in the config file. A <command>lsyncd</command> configuration file has an XML grammar. That means tags have to be closed with a / and the such. Following explanations will be provided with an example for each. </para>
|
<para>Note that any command line options can overrule settings in the config file. A <command>lsyncd</command> configuration file has an XML grammar. That means tags have to be closed with a / and the such. Following explanations will be provided with an examples. </para>
|
||||||
<para>The config file must start with <option><lsyncd></option> as root node. A "version" parameter has to be present which specifies the lsyncd version the config file is written for, currently this is 1.25.</para>
|
<para>The config file must start with a <option><lsyncd></option> root node. A "version" parameter has to be present which specifies the lsyncd version the config file is written for. Currently this is 1.25.</para>
|
||||||
<programlisting><lsyncd version="1.25"></programlisting>
|
<programlisting><lsyncd version="1.25"></programlisting>
|
||||||
|
|
||||||
<refsect2 id="settings">
|
<refsect2 id="settings">
|
||||||
<title>SETTINGS</title>
|
<title>SETTINGS</title>
|
||||||
<para>Next is optionally a <option><settings></option> node. It controls lsyncd global settings. Any setting is optional.</para>
|
<para>Next is optionally a <option><settings></option> node. It controls lsyncd global settings. All settings are optional.</para>
|
||||||
<programlisting> <settings></programlisting>
|
<programlisting> <settings></programlisting>
|
||||||
<para>If a <option><debug/></option> node is present all debug messages will be logged. Default is a normal verbosity.</para>
|
<para>If a <option><debug/></option> node is present all debug messages will be logged. Default is a normal verbosity.</para>
|
||||||
<programlisting> <debug/></programlisting>
|
<programlisting> <debug/></programlisting>
|
||||||
@ -101,7 +100,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|||||||
<programlisting> <binary filename="/usr/bin/rsync"/></programlisting>
|
<programlisting> <binary filename="/usr/bin/rsync"/></programlisting>
|
||||||
<para>If a <option><pidfile></option> node is present lsyncd will write its pid there. Default is not to write a pidfile.</para>
|
<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>
|
<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 --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>-lt%r --delete {--exclude-from [FILE]} [SOURCE] [DIRECTORY]</option>.</para>
|
||||||
<programlisting> <callopts>
|
<programlisting> <callopts>
|
||||||
<option text="-lt%r"/>
|
<option text="-lt%r"/>
|
||||||
<option text="--delete"/>
|
<option text="--delete"/>
|
||||||
@ -115,8 +114,8 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|||||||
|
|
||||||
<refsect2 id="directory">
|
<refsect2 id="directory">
|
||||||
<title>DIRECTORIES</title>
|
<title>DIRECTORIES</title>
|
||||||
<para>With <option><directory></option> nodes arbitrarily many sources to be watched can be specified. Within a <directory> entry you can again specify <option><binary></option>, <option><exclude-from></option> and a <option><callopt></option> node which will override global settings just for this source. See SETTINGS for details on this options.</para>
|
<para>With <option><directory></option> nodes arbitrarily many sources to be watched can be specified. Within a <directory> entry you can again specify a <option><binary></option>, <option><exclude-from></option> or a <option><callopt></option> node which will override global settings just for this source. See SETTINGS for details on this options.</para>
|
||||||
<para> The mandatory <option><source></option> node specifies with the paramater "path" the directory to watch and sync. (once in a while something is mandatory :-). Also at least one <option><target;></option> node has to specified where to sync to. This has to be a format accepted by rsync.</para>
|
<para> The mandatory <option><source></option> node specifies with the paramater "path" the directory to watch and sync. (once in a while something is mandatory. Also at least one <option><target;></option> node has to specified where to sync to. This has to be a format accepted by rsync.</para>
|
||||||
<programlisting> <directory>
|
<programlisting> <directory>
|
||||||
<source path="/absolute/path/to/source"/>
|
<source path="/absolute/path/to/source"/>
|
||||||
<target path="desthost::module/"/>
|
<target path="desthost::module/"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user