This article describes how to set up scheduled bi-directional synchronization of servers or workstations in which data modified on either machine is replicated on interval or schedule to the other machine.
The PeerSync installation should be installed on a machine that can see the folders that need to be synchronized on the two machines—this may be either machine involved in the synchronization or a separate machine.
Perform the following steps on the machine where PeerSync is installed:
- Start PeerSync Profiler.
- From the Job menu, select Add, and then select Job with Defaults.
- From the drop-down list in the top left, change Basic to Advanced.
- In the Folder Selection window, enter the local drive path that needs to be replicated in the Source Folder field.
- Enter the UNC path or mapped drive letter for the destination of the replicated data in the Target Folder field.
- In the Automation window, in the Scanning Options section, schedule the synchronization to Scan Job every x minutes or setting up a daily timer schedule by selecting Scan Job at x.
- In the File Options window, select the options Add-synchronize new files and Update-synchronize existing files.
- If you would like file and folder deletion events to be replicated to the second server, select the Replicate-Delete unmatched files option .
If you enable this option, we recommend selecting the Move Options… button, and then selecting a folder or the Recycle Bin to place the deleted files in; otherwise files will be permanently deleted from the system.
- In the File Options window, select Bi-directional (both directions), and then click OK in the dialog.
- Click the Global Settings link next to the Bi-directional option, and select Use enhanced bi-directional synchronization mode.
- In the Options/Commands window, click the button to the right of the Command Line Argument field to open the Current Command Line Argument Selection dialog box. Add /YO- and /QYD:0 to the list of command line arguments. These options are recommended when doing standard or enhanced bi-directional synchronization (i.e., when the Always create a super-set during bi-directional synchronization option is not selected) to ensure that deleted files from one side are not re-added by the other side. These arguments should NOT be used if there are more than two machines involved in a bi-directional synchronization. You can find more information about these options in the PeerSync Help Document.
- (Optional) In the Startup/Services window, select the desired startup method.
To set up PeerSync unattended as a service, choose Install as an NT Service. If running as a service, make sure the service is using a non-local system account, such as domain admin or any other account that has access to the replicated directories.
- From the File menu, select Save or Save As to save the profile.
- Run PeerSync by going to Run/View Current Profile.