Set up real-time bi-directional synchronization
Preparation
The PeerSync installation should be installed on both servers involved in the bi-directional synchronization.
Step-by-step guide
Perform the following steps on the first server, and then repeat on the second server:
- 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, select the Use real-time monitoring option.
Click the Real-Time Options… button, and then select the option Use enhanced real-time monitoring (File Level Change Detection). This ensures real-time events are monitored and processed.
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 deleted files to an alternate location option, and then selecting the Move Options… button and 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 then select Always create a super-set during bi-directional synchronization.
If you do not check the Always create a super-set during bi-directional synchronization option (doing standard or enhanced bi-directional synchronization), we recommend you add /YO- and /QYD:0 to your list of command line arguments (located in the Options/Commands window). These options will ensure that during standard or enhanced bi-directional synchronization, 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.
- In the Miscellaneous window, select Use intermediate file during copy.
- (Optional) In the Startup/Services window, select the desired startup method.
To set up PeerSync unattended as a service, select 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.
Repeat Steps 1-15 on the second machine, but with the source and target paths reversed. You can also copy the .SNC file that was created when the profile was saved to the second machine and make modifications to that file. The .SNC file is stored in the PeerSync installation directory by default.