50 lines
No EOL
5.1 KiB
HTML
50 lines
No EOL
5.1 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.78.1" /></head><body><div xml:lang="en" class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="idm140615890717104"></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 class="toc"><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="#_messages">5. MESSAGES</a></span></dt><dt><span class="section"><a href="#_examples">6. EXAMPLES</a></span></dt><dt><span class="section"><a href="#_see_also">7. SEE ALSO</a></span></dt><dt><span class="section"><a href="#_copying">8. COPYING</a></span></dt></dl></div><div class="section"><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"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_description"></a>2. DESCRIPTION</h2></div></div></div><div class="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" style="list-style-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"><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 class="variablelist"><dt><span class="term">
|
||
source
|
||
</span></dt><dd>
|
||
Where to take files from
|
||
</dd></dl></div></div><div class="section"><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 class="variablelist"><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"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_messages"></a>5. MESSAGES</h2></div></div></div><p>NONE</p></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_examples"></a>6. 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"</pre></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_see_also"></a>7. SEE ALSO</h2></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
|
||
<a href="../man7/cdist-type.html">cdist-type(7)</a>
|
||
</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="_copying"></a>8. 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> |