Knowledge Base

Home > Features > Synchronization

Created
Modified

Print Article

Article 190

Synchronization

Goal
To synchronize (one way) local files with remote files and vice verse by matching names and content.

SmartFTP allows you to control the action taken when synchronizing files with matching names when using the Transfer Queue. By enabling the Integrity Check option (File exist action based on the comparison between hash values, under File Exist Queue), the destination file will be compared against the source file based on content using hash values vs. i.e. size, time, etc. If the content of the destination file is the same, the file is left unchanged. If the content of the destination file is different, the transferring file replaces the destination file. Otherwise, if the Integrity Check option is left unchecked the default File Exist Rules will be used. Though the Integrity Check option is recommended you can edit the File Exist Rules based on your needs. Also, not all servers support the Integrity Check option in which case one way synchronization has to be done using the File Exist Rules. For more information about the File Exist Rules please see the following Knowledge Base article:
KB: File Exist Rules

Synchronization Methods
Currently two synchronization methods are supported. To change the synchronization method, select the item(s) in the Transfer Queue. Then right-click on the selection and select Properties from the context menu. In the Properties dialog you can select the desired Synchronization method.

  • 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).

Example
The following example shows how to synchronize the contents of a local folder with the contents of a remote folder.

Preparation: Settings

  1. Go to the Favorite properties
  2. Go to the Transfer - File Exists dialog.
  3. 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.
  4. If the Integrity Check is left unchecked, SmartFTP will use the default File Exist Rules for the synchronization.
  5. 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.
  6. Click on the OK button to save the changes.

Queue Files/Folder

  1. Connect to the server by opening a new remote browser
  2. Open a Local Browser. Menu: File - Local browser
  3. Select the files on the local folder that you wish to synchronize with the remote folder. Drag the files from the Local Browser and drop them into the remote folder in the Remote Browser.
  4. The files/folders will be added to the Transfer Queue
  5. To change the synchronization method right-click on the items in the Transfer Queue and select Properties from the context menu.
  6. Start the Transfer Queue.

Tip: You can use the Schedule feature in the queue item properties for recurring synchronizations.

Requirements for FTP Server
MLST/MLSD (time in UTC)
MDTM (with extension to set date and UTC time)
SIZE
XCRC or XMD5 or XSHA1

Keywords
synchronization, file exist, integrity check

Related Articles
icon File Exist dialog on File View/Execute
icon How To schedule a transfer
icon MLST / MLSD
icon XCRC
icon File Exist Rules


Please choose 1 to 5 whether this article solves your problem.

1 No Help at all

5 Problem Solved

Saving...
Thank you for your feedback.

What do you think about this topic? Send feedback!