Differences

This shows you the differences between the selected revisions of the page.

2006-10-03 2007-04-11
script_commands#synchronize (martin) 4.0 modes (martin)
Line 10: Line 10:
If you use WinSCP to synchronize your files only, you can use [[commandline|command-line parameter]] ''/synchronize'' to quickly open [[ui_synchronize|Synchronize dialog]]. If you use WinSCP to synchronize your files only, you can use [[commandline|command-line parameter]] ''/synchronize'' to quickly open [[ui_synchronize|Synchronize dialog]].
-===== Synchronization Modes ===== +===== Synchronization Direction ===== 
-There are three direction modes for synchronization.+There are three possible directions (targets) of synchronization.
-In //Local// mode, changes from remote directory are applied to local directory. Only the local directory is modified. If a file in the remote directory is newer than the same file in local directory, the local file is updated. Remote files not in the local directory can optionally be downloaded as well (disable this using the option //Existing files only//). The local files not existing in remote directory are optionally deleted (enable option //Delete files//).+With //Local// direction, changes from remote directory (source) are applied to local directory (target). Only the local directory is modified.
-//Remote// mode is the same as //Local//, just in the opposite direction: changes from the local directory are applied to the remote directory. Only the remote directory is modified.+//Remote// mode is the same as //Local//, just in an opposite direction: changes from the local directory (source) are applied to the remote directory (target). Only the remote directory is modified.
-In //Both// mode, both local and remote directories can be modified. The newer files are transferred to the opposite directory. The files not existing in an opposite directory are optionally transferred too (disable this using option //Existing files only//). In other words, no files are deleted.+In //Both// mode, both local and remote directories can be modified (both can act as both source and target). 
 + 
 +===== Synchronization Mode ===== 
 +There are three modes of synchronization. 
 + 
 +With //Synchronize files// mode, the newer files in source directory are transferred to the opposite directory. Files in source directory not present in target directory can optionally be transferred as well (disable this using the option //Existing files only//). Files in target directory not present in source directory are optionally deleted (enable option //Delete files//). In //Both// mode (see above), file not present in an opposite directory is considered new, hence it is transferred (if allowed), but never deleted. In other words, in //Both// mode, no file is ever deleted. 
 + 
 +With //Mirror files// mode, the different (both newer and older) files in source directory are transferred to the opposite directory. Otherwise the mode is the same as //Synchronize files//. 
 + 
 +With //Synchronize timestamps// mode, the timestamps of target files are updated to match timestamps of source files. It will not do any transfers, nor delete anything. Simply, whenever it finds the same file in both directories it updates the timestamp of target file to match the one of source file. In //Both// mode, it always updates the older timestamp. The mode is available with [[protocols#sftp|SFTP protocol]] only.
===== Automating Synchronization ===== ===== Automating Synchronization =====
To automate synchronization use scripting command ''[[script_commands#synchronize|synchronize]]''. To automate synchronization use scripting command ''[[script_commands#synchronize|synchronize]]''.

Last modified: by martin