Syncs files or directories using the rsync command. Syncing can be done on the same server or from/to a remote server.
Table C.9: Attributes
|Path to rsync command.||/usr/bin/rsync||Yes|
|Source directory (use [user@]host:path for remote sources).||n/a||Yes|
|Destination directory (use [user@]host:path for remote destinations). Note: sub directories are created by default if they do not exist in the destination directory.||n/a||Yes|
|Excluded file matching pattern. Use comma separated values to exclude multiple files/directories, e.g.: a,b||n/a||No|
|Excluded patterns file.||n/a||No|
|Creates a backup so users can rollback to an existing restore point.||n/a||No|
|Any options that rsync supports, removes the default options.
Should you wish to change the port ssh uses for remote transfers,
set this attribute to ||-rpKz||No|
|This option increases the amount of information you are given during the transfer.||True||No|
|This option makes rsync perform a trial run that doesn't make any changes.||False||No|
|This option requests a simple itemized list of the changes that are being made to each file, including attribute changes.||False||No|
|This option will cause rsync to skip files based on checksum, not mod-time & size.||False||No|
|This option deletes files that don't exist on sender after transfer including ||False||No|
|Identity file for ssh authentication of a remote transfer.||n/a||No|
|Port for ssh authentication used by ||22||No|
<filesync sourcedir="/var/www/development/project1" destinationdir="/var/www/project1" /> <filesync sourcedir="host::module" destinationdir="/var/www/project1/" /> <filesync sourcedir="/var/www/development/project1" destinationdir="[email protected]:/var/www/project1" dryrun="true" itemizechanges="true" verbose="true" checksum="true" />
destinationdir properties user name for remote connections is optional.