cdist/other/types_submitted_for_inclusion/__rsyncer/man.rst

60 lines
1.4 KiB
ReStructuredText
Raw Normal View History

2012-01-18 13:30:31 +00:00
cdist-type__rsyncer(7)
======================
2016-05-20 06:50:56 +00:00
Use rsync to copy files.
2012-01-18 13:30:31 +00:00
2016-05-20 06:50:56 +00:00
Daniel Maher <phrawzty+cdist at gmail.com>
2012-01-18 13:30:31 +00:00
DESCRIPTION
-----------
This type is used to trigger rsync to copy files from the machine running cdist
(source) to the target machine in question (destination). The likely usage is
the rapid deployment of full directory trees, the cohorency of which can be
guarunteed with the optional --delete argument, which will remove any files
from the destination which are not present on the source.
REQUIRED PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
source
2012-01-18 13:30:31 +00:00
The full path of the source from which to copy. This is passed directly
to rsync.
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
destination
2012-01-18 13:30:31 +00:00
The full path of the destination. This is passed directly to rsync.
Default: object_id
2016-05-20 06:50:56 +00:00
delete
2012-01-18 13:30:31 +00:00
If true, remove files from destination which are not in source. This is
effectively the --delete argument of rsync.
Default: false
2016-05-20 06:50:56 +00:00
rsyncbin
2012-01-18 13:30:31 +00:00
Specify the full path to the rsync binary.
Default: `which rsync`
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Basic example
__rsyncer '/home/foo' --source '/opt/dist/foo'
2012-01-18 13:30:31 +00:00
2016-05-20 06:50:56 +00:00
# Fancier example
__rsyncer FOO --source '/opt/dist/foo' --destination '/home/foo/' --delete true
2012-01-18 13:30:31 +00:00
SEE ALSO
--------
2016-05-20 06:50:56 +00:00
- `cdist-type(7) <cdist-type.html>`_
2012-01-18 13:30:31 +00:00
COPYING
-------
Copyright \(C) 2011 Daniel Maher. Free use of this software is granted under
the terms of the GNU General Public License version 3 (GPLv3).