Wissensbasis
Geändert
Synchronization
Synchronization
The goal is to synchronize (one way) local files with remote files and vice verse.
SmartFTP allows you to control the action taken when files with the same name are synchronized. If the hash values of both files are available and the values are not equal, the destination file is replaced with the source file. If the hash values are unavailable, the file exist rules will be used. With the default rules, the destination file is replaced if the file size is not equal or if the last modified date of the source file is newer than the destination file. To modify the default file exist rules, see the KB: File Exist Rules article.
Synchronization Methods
Two synchronization methods are supported:
- One Way Synchronization (Default)
All files/folders from the source will be transferred to the destination. No files will be deleted on the destination. - One Way Synchronization with Delete
All files/folders from the source will be transferred to the destination. Files/folders in the destination which do not exist in the source will be deleted (on the destination).
To change the synchronization method:
- Stop the Transfer Queue
- Right-click the the transfer in the Transfer Queue
- Select Properties from the context menu
- The Properties dialog opens
- Change the Synchronization method
Example
The following example shows how to synchronize the content of a local folder with the content of a remote folder.
Preparation: Settings
- Go to the Favorite Properties. See KB: How to edit a favorite
- Go to the Transfer - File Exists dialog.
- In the File Exist dialog under File Exist Queue you can enable the Integrity Check by checking the option "File exist action based on the comparison between hash values" or edit the File Exist Rules for the selected Favorite.
- If the Integrity Check is left unchecked, SmartFTP will use the default File Exist Rules for the synchronization.
- From the Favorite Properties dialog menu (on the left side), under the Transfer option select Integrity. Check that the Transfer Integrity option is enabled. The Transfer Integrity is enabled by default as specified on the Default Favorite Settings.
- Click on the OK button to save the changes.
Queue Transfer
- Stop the Transfer Queue
- Connect to the server by opening a new remote browser
- Open a Local Browser. Menu: File - Local browser
- Select the folder in the local folder which you want to synchronize with the remote folder.
- Drag&Drop the folder from the Local Browser to the folder in the Remote Browser.
- A new transfer will be added to the Transfer Queue
- To change the synchronization method right-click the transfer in the Transfer Queue
- Select Properties from the context menu
- Change the Synchronization method
- Start the Transfer Queue
Tip: You can use the Schedule feature in the queue item properties for recurring synchronizations.
Schlüsselwörter
synchronization file exist integrity check
Ähnliche Artikel
File Exist dialog on File View/Execute
How To schedule a transfer
MLST / MLSD
XCRC
File Exist Rules
What do you think about this topic? Send feedback!