Synchronise Directory
This task allows you to synchronise a local and remote directory. You can control the direction of the synchronisation, which files will be processed, and how to handle missing files.
Settings
Connection
Required
The connection to the remote server, see Connecting to a Remote Server for details.
Local Directory
Required
The path to the local directory e.g. C:\Users\Zynk\_site
.
Remote Directory
Required
The path to the remote directory e.g. /site/wwwroot
.
File Comparison Mode
Required
Determines the way in which the local and remote copy of a file are considered different. Defaults to Time
.
- Time - use the file modification timestamp
- Size - use the file size
- Either - check the modification timestamp then size
- None - Only new files which don't already exist in the target directory are synced
File Mask
Mirror
Required
Set to True
to sync in mirror mode, which also syncs older files to the target directory. This option can't be enabled when sync direction is set to Both
. Defaults to False
.
Remove Files
Required
Set to true to delete files no longer present in the source directory from the target directory. This option can't be enabled when sync direction is set to Both
. Defaults to False
.
Sync Direction
Required
You can control the direction in which files will be synchronised. Defaults to Remote
.
- Local - apply the changes made to the remote directory to the local directory
- Remote - apply the changes made to the local directory to the remote directory
- Both - sync in both directions.
Transfer Mode
Required
Select the transfer mode to use. Selecting automatic will set the transfer mode based on the file extension, so that text based files are transferred in text mode, and other files in binary mode. Defaults to Binary
.
- Binary
- ASCII
- Automatic