Backing up your data regularly is an important measure to protect against data loss. For some things like photos, it can make sense to back up files whenever you upload a new set from your camera. However, for important things such as work documents, it’s key that backups happen regularly, or better, in real-time. A good way to do that is to configure an important folder to be automatically synchronised or mirrored. This guide will detail how to configure automatic folder mirroring and syncing using “FreeFileSync”.
Tip: If instead of syncing your files to another hard drive, you want to keep a copy of them in a cloud storage solution, we recommend services like OneDrive, Dropbox and Google Drive which all allow automated cloud syncing.
FreeFileSync is a free and open-source tool designed to manage file synchronisation. It is available for download here. To install, double-click the installer EXE after downloading it. You may receive a “User Access Control” (UAC) prompt about allowing it to make changes to your computer, if so click “Yes” to continue. The first page of the installer is a licence agreement, select “I accept the agreement” then click “Next”.
The second option in the installer is the install location, configure where you want FreeFileSync to install (or leave it set to the default), then click “Next”. The third page allows you to choose a number of components. It’s recommended that you keep all of them enabled as is the default, then click “Next”. Continue past the page with the cute animal picture, then, when the installation has finished, click “Finish”. Making an optional donation to the developer can get you a few extra features and is a good way to thank them for their work – but it is optional.
To open FreeFileSync, double-click the icon on your desktop, or press the Windows key, type FreeFileSync and hit enter. Below are instructions on how to use the different services available with this program.
A mirror sync copies files in one direction only, this is will leave the source folder unchanged and match the destination to it.
Tip: If there are any files in the destination that are not present in the source, they will be deleted. Similarly, if a newer version of a document is in the destination, it will be overwritten with the older version from the source folder, so make sure you have things in the right place before you start.
The first step is to start a new configuration by pressing Control+N. Next, you need to add the folder you want to back up as the source folder on the left. You can do so by clicking and dragging the folder from file explorer, or by browsing to the folder with the left “Browse” button. You also need to add the backup folder as the destination on the right. Again, you can drag and drop or browse to select which folder you want to use.
Next, click the “Compare” button to see the differences between the two folders. You also need to configure the synchronisation variant to be “Mirror”. To do so, click on the arrow next to the green cogwheel icon and select “Mirror” from the drop-down list.
Click “Synchronise” to start the process. A small popup will appear to confirm that you want to start the synchronisation now. Click “Start” to continue. When the process is complete, a confirmation window will appear, click “Close” to finish.
Tip: If there are a lot of large files or the hard drive is slow, the synchronisation process may take some time.
A two-way sync matches both the source and destination folders to each other, copying files in both directions. If a file is not present on one side, it will be copied across. If a newer version of a file is available on either side, the older version will be overwritten with the newer.
Tip: By default, FreeFileSync determines which version of a file is newer by comparing the modification time of the file. You can also manually change which version will overwrite the other, by right-clicking on the file and setting an update direction manually.
You configure a two-way sync almost exactly the same way as you would a mirror sync. You need to specify which folders you want to be the source and destination, compare the files. However, you need to leave the synchronisation method at the default “Two way”.
Now you can click “Synchronise” to start the process. A small popup will appear to confirm that you want to start the synchronisation now. Click “Start” to continue. When the process is complete, a confirmation window will appear, click “Close” to finish.
If there is a file you don’t want to be synchronised, you can add a filter. If you want to filter the file only this one time, you can right-click on it and select “Exclude temporarily”. This will remove the file from the list of files to be synchronised. If you click “Compare” again, the file will be added to the list again.
If you want to permanently filter an item, right-click on the file and move the cursor over “Exclude via filter”. There are three filter options. The top option allows you to filter all files with the file extension of that file. In the case of a word document, the filter would be “*.docx”. This way, no Word document will be synced.
The middle option allows you to filter any file with that exact filename, in any subdirectory, while the last option will only filter that exact file.
Tip: The asterisk (*) acts as a “wildcard”, it means it will match anything. So *.docx will match any filename that ends in “.docx”. Similarly, the filter “*/example.docx” will match every document called “example.docx” in any subdirectory. So, if you have an example.docx in six different folders, all of them will be excluded!
Saving a configuration
To save a configuration to re-run it at a later date, press Control+S, set a file name, then click “Save”.
Tip: Filters will be saved in your configuration files. If you only want to filter something one time, make sure to only filter it once, and not to set up a permanent filter.
If you double-click on the save file with FreeFileSync closed, it will open and automatically import the configuration. Alternatively, you can import a configuration file by pressing Control+O and selecting the configuration file.
Automatic synchronisation is managed by a separate app, RealTimeSync, that installs at the same time as FreeFileSync. It’s designed to automate the synchronisation process and to run silently in the background. To use it though, you need to save a FreeFileSync configuration as a “Batch job”.
To save a FreeFileSync configuration as a batch job, open the configuration file in FreeFileSync. Next, you need to click “File” in the top-left corner of the window, then select “Save as batch job…” from the drop-down list. In the new window, you should enable “Run minimised” and “Auto-close” so that the automatic synchronisation process, runs silently in the background. It’s recommended that you leave “Show error message” enabled, so you can be alerted if any errors occur. Leave “When finished” blank, the two other options will turn off the computer after running. That can be useful for a nightly backup, but not so much for a real-time backup. Click “Save as” and configure a file name to save the batch job to disk.
Once you have a batch job saved, you can import it into RealTimeSync. To do so, open RealTimeSync by pressing the Windows key, typing “RealTimeSync” then press enter. You can import the batch job by clicking and dragging it into the RealTimeSync window, or by pressing Control+O and opening the batch job file. Importing the batch job will include all of the settings you need to set up the synchronisation to run in the background.
The only setting you may want to modify is the “Idle time”. The Idle timer starts as soon as a change is made to a file in a watched folder, if another file changes during the timer, the timer will reset. If no other files change during the idle timer, then the synchronisation process will occur.
Tip: You shouldn’t set the idle timer value too high, as that could lead to a scenario where the timer can never expire before a new change is made. This could prevent any synchronisation from happening.
Press “Start” to launch the real-time monitoring. A red double arrow icon will appear in the task tray, indicating that the monitoring and synchronisation process is happening in the background. Now, depending on what type of synchronisation you enabled, any changes you make in one folder will be copied to the other folder after the idle timer has expired.
Automating the real-time synchronisation
If you want the real-time synchronisation process to automatically start whenever you log in, you can import the RealTimeSync save file into your user’s “start-up” folder.
To save the RealTimeSync configuration, open RealTimeSync and import the batch job you want to automatically run, if it is not already loaded. Next click “File” in the top left corner of the window, select “Save as” from the dropdown menu and save the file to your hard drive.
To open your start-up folder, open File Explorer and type “shell:startup” into the main bar. Finally, move, copy, or create a shortcut to your RealTimeSync save file in the start-up folder.
The start-up folder runs any programs in it whenever you log in. So RealTimeSync will now launch and run in the background whenever you log in.
Very useful, thanks a lot Mitch.
I can’t use the button “New” and CTRL+N does nothing. I’ve tested in admin mode also. What am I missing ?
Microsoft SyncFolder is very powerful free trusted tool with many amazing simple features.
Rufus Dee says
You can do this simply without the hassle and risk of installing an app by using File History. If you need more sophisticated options, a paid app would be better.
Thank you for this, great guide and works perfect!
Brett Y says
Can confirm still works like a champ in 2022! Thanks!!!
Graet article about a great tool! Thank you very much.
Dennis R. Levesque says
Why is there no “raw” synching (no overwriting; 1 or 2-way? Maybe someone would like to keep the master copy after editing. You’d need to keep both the old and new version(s), at least until you can figure out what you want to do with either version(s).
Ulisses Crasso says
It worked like a charm.
Guido ter Horst says
I need to mirror copy a huge set of files with a .luac extension to another location, where they should have the .lua extension. Is that possible
simply crack it for further testperiods.
Instead of telling us the software is free, please state the truth. One will only be able ot use it free for 21 days – which is not long given the likely purpose of the software – contnued synchronisation of two sets of files. these marketing tricks are very annoying. I will now definitely not use it because of the slight of hand.
Marcus D says
This article was amazing, thorough step by step, I didn’t have a single doubt with the process. Thank you!!!