synchronize

Synchronizes directories.

synchronize local|remote|both [ <local directory> [ <remote directory> ] ]

When the first parameter is local, changes from remote directory are applied to local directory. When the first parameter is remote, changes from the local directory are applied to the remote directory. When the first parameter is both, both local and remote directories can be modified.

When directories are not specified, current working directories are synchronized.

Note: Overwrite confirmations are always off for the command.

Switches:

Switch Description
-delete Delete obsolete files. Ignored for both.
-mirror Mirror mode (synchronize also older files). Ignored for both.
-criteria=<criteria> Comparison criteria. Possible values are time, size, either (Previous versions used value both) and none. Ignored for both mode.
-permissions=<mode> Set permissions (SFTP and SCP protocols only)
-nopermissions Keep default permissions
-speed=<kibps> Limit transfer speed
-transfer=<mode> binary|ascii|automatic
Transfer mode: binary, ascii (text), automatic (by extension). This feature is available only in the latest beta release.
-filemask=<mask> <mask>[;<mask2>...]
Sets file mask. This feature is available only in the latest beta release.

Effective options: transfer (deprecated), exclude (deprecated), include (deprecated), reconnecttime

XML log elements: download (with local or both), upload (with remote or both), touch (with remote or both), chmod (with remote or both and -permissions), rm (with remote and -delete)

Examples

synchronize remote -delete
synchronize both d:\www /home/martin/public_html
synchronize both -filemask="|*.bak; *.tmp"
 
  scriptcommand_synchronize.txt · Last modified: 29 Feb 2012 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate