1CDIST-TYPE__RSYNC(7) cdist CDIST-TYPE__RSYNC(7)
2
3
4
6 cdist-type__rsync - Mirror directories using rsync
7
9 The purpose of this type is to bring power of rsync into cdist.
10
12 source Source directory in local machine. If source is directory,
13 slash (/) will be added to source and destination paths.
14
16 destination
17 Destination directory. Defaults to $__object_id.
18
19 owner Will be passed to rsync as --chown=OWNER. Read rsync(1) for
20 more details.
21
22 group Will be passed to rsync as --chown=:GROUP. Read rsync(1) for
23 more details.
24
25 mode Will be passed to rsync as --chmod=MODE. Read rsync(1) for more
26 details.
27
28 options
29 Defaults to --recursive --links --perms --times. Due to
30 `bug in Python's argparse<https://bugs.python.org/issue9334>`_
31 , value must be prefixed with \.
32
33 remote-user
34 Defaults to root.
35
37 option Pass additional options to rsync. See rsync(1) for all possible
38 options. Due to
39 `bug in Python's argparse<https://bugs.python.org/issue9334>`_
40 , value must be prefixed with \.
41
43 __rsync /var/www/example.com \
44 --owner root \
45 --group www-data \
46 --mode 'D750,F640' \
47 --source "$__files/example.com/www"
48
50 Ander Punnar <ander-at-kvlt-dot-ee>
51
53 Copyright (C) 2021 Ander Punnar. You can redistribute it and/or modify
54 it under the terms of the GNU General Public License as published by
55 the Free Software Foundation, either version 3 of the License, or (at
56 your option) any later version.
57
59 ungleich GmbH 2021
60
61
62
63
647.0.0 Jul 31, 2022 CDIST-TYPE__RSYNC(7)