Sync files and folders with UltraCompare Professional
Have you ever had the need to sync files between two folders? Most of us probably have, but may not have realized it. Have you:
– Ever needed to sync up production files with a backup set?
– Ever needed to sync the files between your working hard drive and your backup drive, deleting files from the backup that no longer exist on the hard drive?
– Ever wanted to sync up the web files between the FTP server and your local development site, but don't want to visually inspect each file to see if it's newer on the server or local site?
– Ever wanted to transfer important family photos from a memory card to a safe hard drive location, but don't want to create duplicates?
– Ever needed to reconcile your project files against a coworker's project files?
If you've ever encountered one of the scenarios described above, then you need UltraCompare's powerful new Folder Sync feature. The following power tip briefly describes how to sync files between two folders (even network or FTP folders), as well as the many options available for this highly useful functionality.
Syncing two folders with UltraCompare is incredibly easy, intuitive, and fast. In fact, you can start syncing your folders in five quick and easy steps...
Open a new folder sync session by going to Session -> New Session -> Folder Synchronization Mode.
Right-click the session tab and select Session Properties to set your folder sync options. This is where you will specify the two folders you wish to sync.
You can either manually type in the file paths or use the browse button ("...") to browse to and select your folders. If you wish to choose a folder from an FTP site, click the FTP Open button.
Once you've selected your folders, click OK to dismiss the Session Properties dialog.
Confirm your folder paths, then click the "Go" icon (the green triangle). You will now see all files between the two folders, similar to a normal folder compare in UltraCompare.
You're now ready to define a synchronization rule.
There are 5 pre-defined sync rules:
Update left to right will move all files/subfolders from the folder on the left to the folder on the right while deleting any orphan files/subfolders from the folder on the right. Think of this as essentially replacing the contents of the right folder with the contents of the left folder.
Update right to left will move all files/subfolders from the folder on the right to the folder on the left while deleting any orphan files/subfolders from the folder on the left. Think of this as essentially replacing the contents of the left folder with the contents of the right folder.
Bi-directional update replaces all older file/subfolders with the newer ones between both folders, regardless of whether it is in the left or right folder. This rule also copies orphan (missing) files/subfolders.
Newer left to right will move only newer files/subfolders from the folder on the left to the folder on the right. No orphan files are touched. Keep in mind, with this rule an orphan on the left (source) folder will not be copied over to the right (target) folder (although you can change this in the Rule Customization dialog).
Newer right to left will move only newer files/subfolders from the folder on the right to the folder on the left. No orphan files are touched. Keep in mind, with this rule an orphan on the right (source) folder will not be copied over to the left (target) folder (although you can change this in the Rule Customization dialog).
Once you have chosen your sync rule, click "Start Sync"... You're done! UltraCompare will track progress via the Progress bar at the bottom of the compare frame.
Folder sync is so simple, anyone can use it. However, we've also added a few advanced features for our power users.
Manually change sync action for particular files
UltraCompare's Folder Synchronization feature allows you to refine your synchronization. As you may have noticed in the GUI, Folder Synchronization mode includes a special "Action" column which specifies the sync action for that particular file or subfolder.
Suppose you wish to sync all files between a local and remote website except for an important config file with MySQL database configuration information which is different between the two sites. Well, it's easy enough to prevent the configuration file from being overwritten by clicking the Action drop down arrow to change the sync action for that particular file! Make sure you check the sync action for both folders and change them both, if needed.
Customize sync rules
Perhaps you wish to tweak or customize a sync rule, or set up your own. This is easily accomplished by clicking the "Customize Rules" button at the bottom of the compare frame. Select a pre-defined rule in the drop down here to modify it, or click "New Rule" and provide a custom rule name (and optional description) to create your own.
The actions are fairly self-explanatory (copy, delete, none), however the nomenclature used to define file discrepancies may be clearer with some explanation:
Newer | Older
The file exists in both compare frames, however the file in the left frame is newer than the file in the right frame.
Older | Newer
The file exists in both compare frames, however the file in the right frame is newer than the file in the left frame.
The file exists in the left frame only.
The file exists in the right frame only.
STCD | STCD
STCD stands for "Same Timestamp, Content Different". In this case the files have the same "Modified" timestamp but the content is not the same. This is a special case rarely encountered between two folders.