Differences

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

2014-08-14 2014-08-15
no summary (69.146.24.81) (hidden) Restored revision 1336385074. Undoing revisions 1408017515, 1408033453. (Petr) (hidden)
Line 20: Line 20:
In //Both// mode, both local and remote directories can be modified (both can act as both source and target). 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 [[sftp|SFTP protocol]] only.
===== Automating Synchronization ===== ===== Automating Synchronization =====
To automate synchronization use scripting command ''[[scriptcommand_synchronize|synchronize]]'' or .NET assembly method ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]''. To automate synchronization use scripting command ''[[scriptcommand_synchronize|synchronize]]'' or .NET assembly method ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]''.

Last modified: by Petr