mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-18 11:05:17 +00:00
163 lines
9.0 KiB
XML
163 lines
9.0 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!--
|
|
`xsltproc -''-nonet \
|
|
-''-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 \
|
|
manpage.xml'
|
|
|
|
A manual page <package>.<section> will be generated. You may view the
|
|
manual page with: nroff -man <package>.<section> | less'. A typical entry
|
|
in a Makefile or Makefile.am is:
|
|
|
|
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
|
|
XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
|
|
|
|
manpage.1: manpage.xml
|
|
$(XP) $(DB2MAN) $<
|
|
|
|
The xsltproc binary is found in the xsltproc package. The XSL files are in
|
|
docbook-xsl. A description of the parameters you can use can be found in the
|
|
docbook-xsl-doc-* packages. Please remember that if you create the nroff
|
|
version in one of the debian/rules file targets (such as build), you will need
|
|
to include xsltproc and docbook-xsl in your Build-Depends control field.
|
|
Alternatively use the xmlto command/package. That will also automatically
|
|
pull in xsltproc and docbook-xsl.
|
|
|
|
Notes for using docbook2x: docbook2x-man does not automatically create the
|
|
AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
|
|
<refsect1> ... </refsect1>.
|
|
|
|
To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
|
|
read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
|
|
found in the docbook-xsl-doc-html package.
|
|
|
|
Validation can be done using: `xmllint -''-noout -''-valid manpage.xml`
|
|
|
|
General documentation about man-pages and man-page-formatting:
|
|
man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
|
|
|
|
-->
|
|
]>
|
|
|
|
<refentry>
|
|
<refentryinfo>
|
|
<title>lsyncd User Manual</title>
|
|
<productname>lsyncd</productname>
|
|
<authorgroup>
|
|
<author>
|
|
<firstname>Axel</firstname>
|
|
<surname>Kittenberger</surname>
|
|
<address>
|
|
<email>axel.kittenberger@univie.ac.at</email>
|
|
</address>
|
|
</author>
|
|
</authorgroup>
|
|
<legalnotice>
|
|
<para>Permission is granted to copy, distribute and/or modify this
|
|
document under the terms of the GNU General Public License,
|
|
Version 2 or (at your option) any later version published by
|
|
the Free Software Foundation.</para>
|
|
</legalnotice>
|
|
</refentryinfo>
|
|
<refmeta>
|
|
<refentrytitle>LSYNCD.CONF.XML</refentrytitle>
|
|
<manvolnum>5</manvolnum>
|
|
</refmeta>
|
|
<refnamediv>
|
|
<refname>lsyncd.conf.xml</refname>
|
|
<refpurpose>xconfig file for <command>lsyncd</command></refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 id="description">
|
|
<title>DESCRIPTION</title>
|
|
<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 examples. </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 of the config file format. Currently this is 1.</para>
|
|
<programlisting><lsyncd version="1"></programlisting>
|
|
|
|
<refsect2 id="settings">
|
|
<title>SETTINGS</title>
|
|
<para>Next is optionally a <option><settings></option> node. It controls lsyncd global settings. All settings are optional.</para>
|
|
<programlisting> <settings></programlisting>
|
|
|
|
<para>If a <option><debug/></option> node is present all debug messages will be logged. Default is a normal verbosity.</para>
|
|
<programlisting> <debug/></programlisting>
|
|
|
|
<para>If <option><delay/></option> specified by the "value" parameter is greater than zero, lsyncd waits this amount of seconds between an event and calling the binary. All events for a directory in this timeframe will be aggregated to one call. If delay is 0 changes will be handlet immediatly. Default is 5 seconds.</para>
|
|
<programlisting> <delay/></programlisting>
|
|
|
|
<para>If a <option><scarce></option> node is present only error messages will be logged. Default is a normal verbosity.</para>
|
|
<programlisting> <scarce/></programlisting>
|
|
|
|
<para>If a <option><stubborn></option> node is present lsyncd will continue even if the startup sync fails. Default is being not stubborn.</para>
|
|
<programlisting> <stubborn/></programlisting>
|
|
|
|
<para>If a <option><no-daemon></option> node is present lsyncd will not detach and log to stdout/stderr. Default is to detach as daemon.</para>
|
|
<programlisting> <no-daemon/></programlisting>
|
|
|
|
<para>If a <option><dry-run></option> node is present lsyncd will not call any actions (rsync) for test purposes. Default is not to run dry.</para>
|
|
<programlisting> <dry-run/></programlisting>
|
|
|
|
<para>With an <option><exclude-from></option> entry an exclusion file can be specified with a "filename" parameter. This will be passed to rsync and follows rsyncs grammar for exclude files. Default is not to pass an exlude file to rsync.</para>
|
|
<programlisting> <exclude-from filename="/etc/lsyncd.exclude"/></programlisting>
|
|
|
|
<para>With a <option><logfile></option> node to location of the logfile can be changed. Default is <filename>/var/log/lsyncd</filename>. Take care that the user which lsyncd is running with can write to this file.</para>
|
|
<programlisting> <logfile filename="/var/log/lsyncd"/></programlisting>
|
|
|
|
<para>A <option><binary></option> node specifies the binary lsyncd will call to sync stuff. Usually you want this to be rsync. Default is <filename>/usr/bin/rsync</filename>.</para>
|
|
<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>
|
|
<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>
|
|
<programlisting> <callopts>
|
|
<option text="-lt%r"/>
|
|
<option text="--delete"/>
|
|
<exclude-file/>
|
|
<source/>
|
|
<destination/>
|
|
</callopts></programlisting>
|
|
<para>End of (optional) settings section.</para>
|
|
<programlisting> </settings></programlisting>
|
|
</refsect2>
|
|
|
|
<refsect2 id="directory">
|
|
<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 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>
|
|
<programlisting> <directory>
|
|
<source path="/absolute/path/to/source"/>
|
|
<target path="desthost::module/"/>
|
|
</directory></programlisting>
|
|
</refsect2>
|
|
<para>End of a <filename>lsyncd.conf.xml</filename> file.</para>
|
|
<programlisting></lsyncd></programlisting>
|
|
</refsect1>
|
|
<refsect1 id="files">
|
|
<title>FILES</title>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><filename>/etc/lsyncd.conf.xml</filename></term>
|
|
<listitem>
|
|
<para>The default location of the configuration file.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
<refsect1 id="see_also">
|
|
<title>SEE ALSO</title>
|
|
<!-- In alpabetical order. -->
|
|
<para><citerefentry>
|
|
<refentrytitle>lsyncd</refentrytitle>
|
|
<manvolnum>1</manvolnum>
|
|
</citerefentry></para>
|
|
</refsect1>
|
|
</refentry>
|
|
|