State to synchronize files and directories with rsync.
New in version 2016.3.0.
/opt/user-backups:
rsync.synchronized:
- source: /home
- force: True
salt.states.rsync.
synchronized
(name, source, delete=False, force=False, update=False, passwordfile=None, exclude=None, excludefrom=None, prepare=False, dryrun=False, additional_opts=None)¶Guarantees that the source directory is always copied to the target.
Name of the target directory.
Source directory.
Create destination directory if it does not exists.
Delete extraneous files from the destination dirs (True or False)
Force deletion of dirs even if not empty
Skip files that are newer on the receiver (True or False)
Read daemon-access password from the file (path)
Exclude files, that matches pattern.
Read exclude patterns from the file (path)
Perform a trial run with no changes made. Is the same as doing test=True
New in version 2016.3.1.
Pass additional options to rsync, should be included as a list.
New in version 2018.3.0.
Generated on June 18, 2020 at 04:09:58 UTC.
You are viewing docs for the latest stable release, 3001. Switch to docs for the previous stable release, 3000.3, or to a recent doc build from the master branch.
© 2020 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy