CDIST-TYPE__RSYNC(7)
π CDIST-TYPE__RSYNC(7) β cdist's lil rsync mirror type β¨
okay bestie, welcome to cdist-type__rsync, a page straight out of the cdist manual. this one's short and sweet, so let's go π«Ά
πΈ NAME πΈ
cdist-type__rsync β mirror directories using rsync
β¨ DESCRIPTION β¨
so the whole point of this type? it's bringing the raw power of rsync into cdist. that's it. that's the vibe. iconic behavior fr π
π REQUIRED PARAMETERS π
sourceβ the source directory, on your local machine. heads up tho: ifsourceis a directory, a slash (/) gets added to thesourceand to the destination paths. just how it is, no cap π¦
π OPTIONAL PARAMETERS π
destinationβ where it's going. defaults to$__object_id. yes queen, it already knows β¨ownerβ this gets passed straight to rsync as--chown=OWNER. go readrsync(1)if you want the whole lore, bestie πgroupβ passed to rsync as--chown=:GROUP. again,rsync(1)has the details πmodeβ passed to rsync as--chmod=MODE. yep,rsync(1). you know the drill πoptionsβ defaults to--recursive --links --perms --times. BUT β and this is the important part β because of a bug in Python's argparse (you can peep it athttps://bugs.python.org/issue9334), the value must be prefixed with\. do not skip the backslash, i'm literally begging πremote-userβ defaults toroot. main character default energy tbh π
π OPTIONAL MULTIPLE PARAMETERS π
optionβ stack extra options onto rsync.rsync(1)lists every possible one if you wanna scroll. and same situation asoptionsabove: due to that Python argparse bug (https://bugs.python.org/issue9334), the value must be prefixed with\. multiple of these? yes. gorgeous π¦
π EXAMPLES π
look at her go:
__rsync /var/www/example.com \
--owner root \
--group www-data \
--mode 'D750,F640' \
--source "$__files/example.com/www"
ate. no crumbs. π₯
β AUTHORS β
Ander Punnar <ander-at-kvlt-dot-ee>
πΈ COPYING πΈ
Copyright (C) 2021 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page, bestie π₯Ή this was cdist-type__rsync(7) from cdist version 7.0.0, dated Jul 31, 2022. go mirror something cute, ily, bye πβ¨π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms