22.16.174. salt.modules.rsync

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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.173. salt.modules.rpm

Next topic

22.16.175. salt.modules.rvm

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.