How to setup a task to synchronise with FTP/FTPS/FTPES server.
This tutorial demonstrates how to setup a task to synchronise with a folder in FTP server.
1. On the main windows, press the "Add task" button () to add a task.
After you add a task, you can modify it later by press the "Setup task" button ().
The task wizard starts up.
2. On the "General" wizard page, set the local folder, synchronisation direction and the FTP folder like the following graphs.
(1). Clickto select the local folder into the "Folder1" edit box.
(2). Select the synchronisation direction.
: One-way synchronise from Folder1 to Folder2.
: One-way synchronise from Folder2 to Folder1.
Two-way synchronisation.(3). Clickto start the browser to select the FTP folder into the "Folder2" edit box.
3. Browse the FTP folder.
(1). Select "FTP - File Transfer Protocol" in the "File System" list.
(2). Setup the parameters for connecting to the FTP server.
Server: The hostname of the FTP server, like "ftp.server.com". Or the ip address, like "192.168.10.1".
UserandPassword: The user account.
FTP Port: The TCP/IP port, usually it is 21.
Please add this port to the exception list of the Windows Firewall and Anti-virus software, otherwise the port may be blocked.
Time out: The time length that the connection waits for the data arriving. If data does not arrive in this period, the link is disconnected.
Security Mode:
Normal: The normal plain FTP. All the commands and files are transferred in plain text, and can be peeped by other people.
If the FTP server supports TLS (Transport Layer Security)/SSL (Secure Socket Layer), you can select "FTPS-Implicit TLS/SSL" or "FTPES-Explicit TLS/SSL". If FTPS or FTPES is selected, all the commands and files are encrypted before being transferred over network, so the files are protected from being disclosed.
Thedifference between FTPS and FTPESis, FTPS authenticates the network link by TLS/SSL by default, but FTPES connects to the FTP server first, then negotiate with the FTP server by "AUTH TLS" or "AUTH SSL", then hand-shake with the FTP server according to the response from the FTP server.
FTPS-Implicit TLS/SSL: If this option is checked, use "FTPS-FTP over implicit TLS/SSL".
FTPES-Explicit TLS/SSL: If this option is checked, use "FTPES-FTP over explicit TLS/SSL".
Click here for how to setup certificate of FTPS and FTPES.
Protect Data Channel:
If FTPS or FTPES is selected , this option is shown.
The default state of this option is checked, but if you do not want to encrypt the data again for the sake of performance, or the data has already been encrypted, you can uncheck this option.Passive Mode:
If this option is ticked, BestSync uses the Passive Mode to connect to the FTP server. In Passive Mode, BestSync sends PASV command to FTP server, then the server replies the port number that the client should use it to connect to the FTP server.
NOTE: You must add the port range that the server uses to the exception list of the Windows Firewall and the internet security software; otherwise the connection may be blocked by the Firewall etc.If this option is not ticked, BestSync uses the Active Mode to connect to the FTP server. In Active Mode, BestSync sends "PORT port-number" command to FTP server first, then the server connects to BestSync by the port number in the PORT command.
NOTE: You must setup the port range be used in the Active-Mode in the"Active-Mode" tab of the General Option dialogbox, add the port range to the allowed list of the Windows Firewall and the internet security software; otherwise the communication may be blocked by the Firewall etc.Use FTP Proxy:
If the local computer is behind a firewall or NAT, usually the computer needs the FTP proxy to connect to the FTP server.
If this option is checked at the first time, the"FTP Proxy" global option dialog boxwill be popped up for setup up the settings of the FTP proxy server.
The current version does not support proxy when FTPS or FTPES is selected.If "SFTP-SSH File Transfer Protocol" is selected in the "File System" List, the"FTP Proxy" global option dialog boxwill be popped up for setup up the SFTP proxy server.
"Advanced":
(3). After setup the FTP host name and account, press "Go" button to connect to the FTP server, the browser begins to list the folders in the FTP server to the tree view.
The log window belowthe treeview logs all the commands sent to the FTP server, and responses from the FTP server. If the connection between BestSync and FTP server can not be established successfully, please check the log.
(4). Select the folder in the tree view.
(5). Click "OK" button to end the dialog box
When a file is synchronised from local to FTP server, to keep the time stamp after uploading the file, the server should support one of the following FTP commands:
"SITE UTIME", "MFMT" or "MDTM"
If the server does not support any of these commands, BestSync uses a database to manage the file information, and can still synchronise files correctly. But if multiple clients synchronise with the same FTP folder, a unchanged file uploaded by other client will be downloaded again.If the local machine and the server are in different time zone, BestSync can detect the time bias between local and server, and adjust the file's timestamp properly. For detecting the time zone of FTP server, the account must have writing privilege on the FTP folder.
Press "Next" to set other options, or press "Finish" to end the task wizard.
4. Setup the backup option.
If you need to backup all the changed/deleted files between two synchronisation times, you can set this backup options.
(1). Check "Enable backup archiving system...".
(2). Select a local folder to backup the files. If the following "Versioning" option is selected, sub-folders will be created under this folder.
(3). Select the "versioning" option. You can let the backup system to create a sub-folder every day, or even on sub-folder for every synchronisation.
If you input a full backup day number (non zero), BestSync backs up all the files in the synchronisation folder to a sub-folder for every specified days.(4). If you need to clear the old backup files, input a day number other than 0 into "Maximum preserving days of the backup files".
(5). Press "Next" to set other options, or press "Finish" to end the task wizard.
5. Exclude/include some folders or files from/into the synchronisation.
If no folders or files are needed to be excluded from the synchronisation, just click "Next" button.
6. Select file types that are needed to be synchronised.
(1). Select the predefined file types from the combo-box, or click the selecting button to search all the file types, then select some file types.
(2). Check "Include subfolders" to synchronise the all the sub-folders recursively.
If your country uses Daylight Savings Time, and one of the two folders is FAT or FAT32 file system, please select the "Ignore file date&time changes that ate because of Daylight Savings Time (DST) changes" option, otherwise, when the DST changes, all the files may copied again.
(3). Press "Next" to set other options, or press "Finish" to end the task wizard.
7. Select copy options.
The following graph is the recommended copy options.
"Use intermediate file during copy. (To prevent the file from being crashed.)"
If this option is checked, BestSync will use an intermediate file as the target file during copying process. When the file is copied successfully, the intermediate file is renamed to the target file. This action avoids an incomplete file in the target folder, and the target file is never cashed even if it fails to copy the file due to any error (such as network error)."Process multiple files simultaneously.":
If this option is checked, BestSync create multiple threads to copy multiple files concurrently. Set the thread number to the allowed number of the server. This option will improve the performance dramatically when synchronise with FTP folder, or other remote folders."Verify files by the available method from the server or by comparing content.":
If this option is checked, BestSync verify the uploaded/downloaded files to ensure the files are transferred correctly."Retry synchronisation if there are failed files.":
If this option is checked, BestSync will retry the synchronisation if there are failed items."Resume failed file from the breakpoint.":
If this option is checked, BestSync will resume the file copy operation from the last breakpoint. This option is very useful to copy a large file to/from FTP server or other remote folders. If a file copy action is broken during network error, the file copy action is continued from the last break point.Press "Next" to set other options, or press "Finish" to end the task wizard.
8. Use "Volume Shadow Copy Service" when necessary.
If the task needs to copy the opened/locked files, check "Use Volume Shadow Copy Service to copy opened files……" option.
If this option is checked, the opened files such as windows registry file, data base file, Outlook .PST files can be copied. Some files such as the database file, and Outlook PST file are always locked, if you do not use this option, copying these files will fail, but this option will affect the system performance and take longer to complete the sync task.
If the OS is 64 Bit Windows, please install the x64 bit version of BestSync for using this option.
On Windows 7/8, please run BestSync by the administrator privilege when this option is checked.
Press "Next" to set other options, or press "Finish" to end the task wizard.
9. Use encryption option when necessary.
If you want to compress and encrypt the files while synchronise the files, select the options like following graph.
Press "Next" to set other options, or press "Finish" to end the task wizard.
9. Use "Rename" option when necessary.
If need to rename files when synchronise the folders, add the renaming rules to the list in following graph.
Press "Next" to set other options, or press "Finish" to end the task wizard.
10. Select "Delete" options.
(1).Select the typical option "Delete: Delete the remained file in the other side".
"Do nothing". If you want to use a backup profile, that deleted files from the source will be kept in your Target Folder.
Or, "Delete: Delete remained file in the other side". If the files are deleted from the source, it will also be deleted from target folder.
Or, "Mirror: Delete file in ….". To make the contents of both folders identical. All the files that do not exist in the source folder will be deleted from the target folder. If the files in the source folder are old, the old files will overwrite the new files in the target folder.
(2). In "Delete file for save space", select the typical option "Do nothing".
(3).Press "Next" to set other options, or press "Finish" to end the task wizard.
11. Select "Schedule" options.
(1).Select "Designate a schedule", and select a timing mode to start the task."
"Service Sync: Run task as Windows Service(need not user login)" is optional.
This option runs the task by BestSync Service. Even no user is logging on, or the user logs off, this task is still ran by the designated schedule.
If you want the changed files be backed up or synchronised immediately after they are changed, select the "Real-Time Sync...." option. Note, this option is not available if the source folder is a FTP folder.(2).Press "Next" to set other options, or press "Finish" to end the task wizard.
12. Press the "Next" button to use the default log settings.
(1).Check "Record the log data for the log view window" option. This option will record the log data of the synchronisation. You can view the log data by the Log View, and if you have setup the "Backup" option in "Step 4", you can also restore the backup data conveniently in the Log View."
If you want to send the log data by the email to monitor the synchronisation remotely, check the "Send log data by e-mail" option. After this option is checked, the "General Option"/"Email" dialog box will popup, you can setup the email account in the dialog box.
(2).Press "Next" to set other options, or press "Finish" to end the task wizard.
14. The "Application" options are optional.
You can set an application or batch file to run before or after the synchronisation here.
You can also set to start other tasks after this task by input the task IDs.
Press "Finish" to end the task wizard.
15. Confirm the settings by start the preview of the task.
Press the "Preview" button on the main window to start the preview window, to confirm if you have configure the settings correctly.
At the bottom of the preview window, there is a log window. All the commands sent to FTP server, and responses from the FTP server are logged here. If there is any error happens, the error will also be logged here.The hit files and synchronisation actions will be listed in the preview window. You can confirm if the synchronisation will be performed correctly. You can also modify the synchronisation actions, then press the "Start" button to start the synchronisation.
(END)