71 lines
6.3 KiB
HTML
71 lines
6.3 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>cdist-type__rsync(7)</title><link rel="stylesheet" type="text/css" href="docbook-xsl.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /></head><body><div xml:lang="en" class="article" title="cdist-type__rsync(7)" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="idp60535888"></a>cdist-type__rsync(7)</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Nico</span> <span class="surname">Schottelius</span></h3><code class="email"><<a class="email" href="mailto:nico-cdist--@--schottelius.org">nico-cdist--@--schottelius.org</a>></code></div></div></div><hr /></div><div class="toc"><p><strong>Table of Contents</strong></p><dl><dt><span class="section"><a href="#_name">1. NAME</a></span></dt><dt><span class="section"><a href="#_description">2. DESCRIPTION</a></span></dt><dt><span class="section"><a href="#_required_parameters">3. REQUIRED PARAMETERS</a></span></dt><dt><span class="section"><a href="#_optional_parameters">4. OPTIONAL PARAMETERS</a></span></dt><dt><span class="section"><a href="#_optional_multiple_parameters">5. OPTIONAL MULTIPLE PARAMETERS</a></span></dt><dt><span class="section"><a href="#_messages">6. MESSAGES</a></span></dt><dt><span class="section"><a href="#_examples">7. EXAMPLES</a></span></dt><dt><span class="section"><a href="#_see_also">8. SEE ALSO</a></span></dt><dt><span class="section"><a href="#_copying">9. COPYING</a></span></dt></dl></div><div class="section" title="1. NAME"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_name"></a>1. NAME</h2></div></div></div><p>cdist-type__rsync - Mirror directories using rsync</p></div><div class="section" title="2. DESCRIPTION"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_description"></a>2. DESCRIPTION</h2></div></div></div><div class="warning" title="Warning" style="margin-left: 0; margin-right: 10%;"><h3 class="title">Warning</h3><p>This type is of BETA quality:</p></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
||
it has not been tested widely
|
||
</li><li class="listitem">
|
||
interfaces <span class="strong"><strong>may</strong></span> change
|
||
</li><li class="listitem">
|
||
if there is a better approach to solve the problem → the type may even vanish
|
||
</li></ul></div><p>If you are fine with these constraints, please read on.</p><p>This cdist type allows you to mirror local directories to the
|
||
target host using rsync. Rsync will be installed in the manifest of the type.
|
||
If group or owner are giveng, a recursive chown will be executed on the
|
||
target host.</p><p>A slash will be appended to the source directory so that only the contents
|
||
of the directory are taken and not the directory name itself.</p></div><div class="section" title="3. REQUIRED PARAMETERS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_required_parameters"></a>3. REQUIRED PARAMETERS</h2></div></div></div><div class="variablelist"><dl><dt><span class="term">
|
||
source
|
||
</span></dt><dd>
|
||
Where to take files from
|
||
</dd></dl></div></div><div class="section" title="4. OPTIONAL PARAMETERS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_optional_parameters"></a>4. OPTIONAL PARAMETERS</h2></div></div></div><div class="variablelist"><dl><dt><span class="term">
|
||
group
|
||
</span></dt><dd>
|
||
Group to chgrp to.
|
||
</dd><dt><span class="term">
|
||
owner
|
||
</span></dt><dd>
|
||
User to chown to.
|
||
</dd><dt><span class="term">
|
||
destination
|
||
</span></dt><dd>
|
||
Use this as the base destination instead of the object id
|
||
</dd><dt><span class="term">
|
||
remote-user
|
||
</span></dt><dd>
|
||
Use this user instead of the default "root" for rsync operations.
|
||
</dd></dl></div></div><div class="section" title="5. OPTIONAL MULTIPLE PARAMETERS"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_optional_multiple_parameters"></a>5. OPTIONAL MULTIPLE PARAMETERS</h2></div></div></div><div class="variablelist"><dl><dt><span class="term">
|
||
rsync-opts
|
||
</span></dt><dd>
|
||
Use this option to give rsync options with.
|
||
See <a href="../man1/rsync.html">rsync(1)</a> for available options.
|
||
Only "--" options are supported.
|
||
Write the options without the beginning "--"
|
||
Can be specified multiple times.
|
||
</dd></dl></div></div><div class="section" title="6. MESSAGES"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_messages"></a>6. MESSAGES</h2></div></div></div><p>NONE</p></div><div class="section" title="7. EXAMPLES"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_examples"></a>7. EXAMPLES</h2></div></div></div><pre class="screen"># You can use any source directory
|
||
__rsync /tmp/testdir \
|
||
--source /etc
|
||
|
||
# Use source from type
|
||
__rsync /etc \
|
||
--source "$__type/files/package"
|
||
|
||
# Allow multiple __rsync objects to write to the same dir
|
||
__rsync mystuff \
|
||
--destination /usr/local/bin \
|
||
--source "$__type/files/package"
|
||
|
||
__rsync otherstuff \
|
||
--destination /usr/local/bin \
|
||
--source "$__type/files/package2"
|
||
|
||
# Use rsync option --exclude
|
||
__rsync /tmp/testdir \
|
||
--source /etc \
|
||
--rsync-opts exclude=sshd_conf
|
||
|
||
# Use rsync with multiple options --exclude --dry-run
|
||
__rsync /tmp/testing \
|
||
--source /home/tester \
|
||
--rsync-opts exclude=id_rsa \
|
||
--rsync-opts dry-run</pre></div><div class="section" title="8. SEE ALSO"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_see_also"></a>8. SEE ALSO</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem">
|
||
<a href="../man7/cdist-type.html">cdist-type(7)</a>
|
||
</li><li class="listitem">
|
||
<a href="../man1/rsync.html">rsync(1)</a>
|
||
</li></ul></div></div><div class="section" title="9. COPYING"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_copying"></a>9. COPYING</h2></div></div></div><p>Copyright (C) 2015 Nico Schottelius. Free use of this software is
|
||
granted under the terms of the GNU General Public License version 3 (GPLv3).</p></div></div></body></html>
|