Differences
This shows you the differences between the selected revisions of the page.
| task_synchronize_full 2018-11-16 | task_synchronize_full 2026-02-06 (current) | ||
| Line 2: | Line 2: | ||
| //This article contains detailed description of synchronizing files. You may want to see [[guide_synchronize|simplified guide]] to the process instead.// | //This article contains detailed description of synchronizing files. You may want to see [[guide_synchronize|simplified guide]] to the process instead.// | ||
| - | WinSCP can synchronize content of local directory with remote one or vice versa or even mutually. Find the function in //Commands > Synchronize//. [[ui_synchronize|Synchronize dialog]] will appear, where you can select synchronization mode and configure options. | + | WinSCP can synchronize content of one directory to another or even mutually. You can synchronize local directory with remote one or two local directories //(in the latest beta only).// &beta Find the function in //Commands > Synchronize//. [[ui_synchronize|Synchronize dialog]] will appear, where you can select synchronization mode and configure options. |
| Once you confirm your options, WinSCP will collect list of differences in between the directories. If option //Preview changes// is enabled, you will be presented with the [[ui_synchronize_checklist|synchronization checklist]], where you can select those synchronization actions you want to actually apply. | Once you confirm your options, WinSCP will collect list of differences in between the directories. If option //Preview changes// is enabled, you will be presented with the [[ui_synchronize_checklist|synchronization checklist]], where you can select those synchronization actions you want to actually apply. | ||
| Line 8: | Line 8: | ||
| You can select files and directories for synchronization the same way you [[ui_transfer_custom#other|select them for file transfer]]. | You can select files and directories for synchronization the same way you [[ui_transfer_custom#other|select them for file transfer]]. | ||
| - | Before using the function make sure that WinSCP knows correct [[timestamps]] of remote files, to avoid losing data. | + | Before using the function make for local-remote synchronization, sure that WinSCP knows correct [[timestamps]] of remote files, to avoid losing data. |
| If you use WinSCP to synchronize your files only, you can use ''[[commandline#operations|/synchronize]]'' to quickly open [[ui_synchronize|Synchronize dialog]]. | If you use WinSCP to synchronize your files only, you can use ''[[commandline#operations|/synchronize]]'' to quickly open [[ui_synchronize|Synchronize dialog]]. | ||
| Line 17: | Line 17: | ||
| With //Local// direction, changes from remote directory (source) are applied to local directory (target). Only the local directory is modified. | 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 an opposite direction: changes from the local directory (source) are applied to the remote directory (target). Only the remote directory is modified. | + | //Remote// mode is the same as //Local//, just in the 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 (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). | ||
| Line 24: | Line 24: | ||
| There are three modes of synchronization. | There are three modes of synchronization. | ||
| - | With //Synchronize files// mode, files that are newer in a source directory than in a target directory are transferred to the target directory. Files in the source directory not present in the target directory are by default transferred as well (disable this using the option //Existing files only//). Files in the target directory not present in the source directory can optionally be deleted (enable option //Delete files//). In //Both// mode (see above), files not present in an opposite directory are considered new, hence they are transferred (unless //Existing files only// is enabled), but never deleted. In other words, in //Both// mode, no file is ever deleted. | + | With //Synchronize files// mode, files that are newer in a source directory than in a target directory are transferred to the target directory. Files in the source directory not present in the target directory are by default transferred as well (disable this using the option //Existing files only//). Files in the target directory not present in the source directory can optionally be deleted (enable option //Delete files//). In //Both// mode (see above), files not present in the opposite directory are considered new, hence they are transferred (unless //Existing files only// is enabled), but never deleted. In other words, in //Both// mode, no file is ever deleted. |
| With //Mirror files// mode, different (both newer and older) files in the source directory are transferred to the target directory. Otherwise the mode is the same as //Synchronize files//. | With //Mirror files// mode, different (both newer and older) files in the source directory are transferred to the target directory. Otherwise the mode is the same as //Synchronize files//. | ||