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
(confile='/etc/rsyncd.conf')¶Return rsync config
CLI Example:
salt '*' rsync.config
salt.modules.rsync.
rsync
(src, dst, delete=False, force=False, update=False, passwordfile=None, exclude=None, excludefrom=None)¶Rsync files from src to dst
CLI Example:
salt '*' rsync.rsync {src} {dst} {delete=True} {update=True} {passwordfile=/etc/pass.crt} {exclude=xx}
salt '*' rsync.rsync {src} {dst} {delete=True} {excludefrom=/xx.ini}
salt.modules.rsync.
version
()¶Return rsync version
CLI Example:
salt '*' rsync.version
netapi
modules