Wrapper for rsync
New in version 2014.1.0.
This data can also be passed into pillar. Options passed into opts will overwrite options passed into pillar.
salt.modules.rsync.
config
(conf_path='/etc/rsyncd.conf')¶Changed in version 2016.3.0: Return data now contains just the contents of the rsyncd.conf as a
string, instead of a dictionary as returned from cmd.run_all
.
Returns the contents of the rsync config file
CLI Example:
salt '*' rsync.config
salt.modules.rsync.
rsync
(src, dst, delete=False, force=False, update=False, passwordfile=None, exclude=None, excludefrom=None, dryrun=False, rsh=None)¶Changed in version 2016.3.0: Return data now contains just the output of the rsync command, instead
of a dictionary as returned from cmd.run_all
.
Rsync files from src to dst
CLI Example:
salt '*' rsync.rsync {src} {dst} {delete=True} {update=True} {passwordfile=/etc/pass.crt} {exclude=xx} {rsh}
salt '*' rsync.rsync {src} {dst} {delete=True} {excludefrom=/xx.ini} {rsh}
salt.modules.rsync.
version
()¶Changed in version 2016.3.0: Return data now contains just the version number as a string, instead
of a dictionary as returned from cmd.run_all
.
Returns rsync version
CLI Example:
salt '*' rsync.version
Generated on February 25, 2019 at 06:53:47 MST.
You are viewing docs for the previous stable release, 2017.7.8. Switch to docs for the latest stable release, 2018.3.3, or to a recent doc build from the develop branch.
© 2019 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy