FreeFileSync – Compare and Synchronize Files in Ubuntu

FreeFileSync is a free, open source and cross platform folder comparison and synchronization software, which helps you synchronize files and folders on Linux, Windows and Mac OS.

It is portable and can also be installed locally on a system, it’s feature-rich and is intended to save time in setting up and executing backup operations while having attractive graphical interface as well.

FreeFileSync Features

Below are it’s key features:

  1. It can synchronize network shares and local disks.
  2. It can synchronize MTP devices (Android, iPhone, tablet, digital camera).
  3. It can also synchronize via SFTP (SSH File Transfer Protocol).
  4. It can identify moved and renamed files and folders.
  5. Displays disk space usage with directory trees.
  6. Supports copying locked files (Volume Shadow Copy Service).
  7. Identifies conflicts and propagate deletions.
  8. Supports comparison of files by content.
  9. It can be configured to handle Symbolic Links.
  10. Supports automation of sync as a batch job.
  11. Enables processing of multiple folder pairs.
  12. Supports in-depth and detailed error reporting.
  13. Supports copying of NTFS extended attributes such as (compressed, encrypted, sparse).
  14. Also supports copying of NTFS security permissions and NTFS Alternate Data Streams.
  15. Support long file paths with more than 260 characters.
  16. Supports Fail-safe file copy prevents data corruption.
  17. Allows expanding of environment variables such as %UserProfile%.
  18. Supports accessing of variable drive letters by volume name (USB sticks).
  19. Supports managing of versions of deleted/updated files.
  20. Prevent disc space issues via optimal sync sequence.
  21. Supports full Unicode.
  22. Offers a highly optimized run time performance.
  23. Supports filters to include and exclude files plus lots more.

How To Install FreeFileSync in Ubuntu Linux

We will add official FreeFileSync PPA, which is available for Ubuntu 14.04 and Ubuntu 15.10 only, then update the system repository list and install it like so:

-------------- On Ubuntu 14.04 and 15.10 -------------- 
$ sudo apt-add-repository ppa:freefilesync/ffs
$ sudo apt-get update
$ sudo apt-get install freefilesync

On Ubuntu 16.04 and newer version, go to the FreeFileSync download page and get the appropriate package file for Ubuntu and Debian Linux.

Next, move into the Download folder, extract the FreeFileSync_*.tar.gz into the /opt directory as follows:

$ cd Downloads/
$ sudo tar xvf FreeFileSync_*.tar.gz -C /opt/
$ cd /opt/
$ ls
$ sudo unzip FreeFileSync/Resources.zip -d /opt/FreeFileSync/Resources/

Now we will create an application launcher (.desktop file) using Gnome Panel. To view examples of .desktop files on your system, list the contents of the directory /usr/share/applications:

$ ls /usr/share/applications

In case you do not have Gnome Panel installed, type the command below to install it:

$ sudo apt-get install --no-install-recommends gnome-panel

Next, run the command below to create the application launcher:

$ sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

And define the values below:

Type: 	   Application 
Name: 	   FreeFileSync
Command:   /opt/FreeFileSync/FreeFileSync		
Comment:   Folder Comparison and Synchronization

To add an icon for the launcher, simply clicking on the spring icon to select it: /opt/FreeFileSync/Resources/FreeFileSync.png.

When you have set all the above, click OK create it.

Create Desktop Launcher

Create Desktop Launcher

If you don’t want to create desktop launcher, you can start FreeFileSync from the directory itself.

$ ./FreeFileSync

How to Use FreeFileSync in Ubuntu

In Ubuntu, search for FreeFileSync in the Unity Dash, whereas in Linux Mint, search for it in the System Menu, and click on the FreeFileSync icon to open it.

FreeFileSync

FreeFileSync

Compare Two Folders Using FreeFileSync

In the example below, we’ll use:

Source Folder:	/home/aaronkilik/bin
Destination Folder:	/media/aaronkilik/J_CPRA_X86F/scripts

To compare the file time and size of the two folders (default setting), simply click on the Compare button.

Compare Two Folders in Linux

Compare Two Folders in Linux

Press F6 to change what to compare by default, in the two folders: file time and size, content or file size from the interface below. Note that the meaning of the each option you select is included as well.

File Comparison Settings

File Comparison Settings

Synchronization Two Folders Using FreeFileSync

You can start by comparing the two folders, and then click on Synchronize button, to start the synchronization process; click Start from the dialog box the appears thereafter:

Source Folder: /home/aaronkilik/Desktop/tecmint-files
Destination Folder: /media/aaronkilik/Data/Tecmint
Compare and Synchronize Two Folders

Compare and Synchronize Two Folders

Start File Synchronization

Start File Synchronization

File Synchronization Completed

File Synchronization Completed

To set the default synchronization option: two way, mirror, update or custom, from the following interface; press F8. The meaning of the each option is included there.

File Synchronization Settings

File Synchronization Settings

For more information, visit FreeFileSync homepage at http://www.freefilesync.org/

That’s all! In this article, we showed you how to install FreeFileSync in Ubuntu and it’s derivatives such as Linux Mint, Kubuntu and many more. Drop your comments via the feedback section below.

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

6 Responses

  1. Kabeer Sayeed says:

    Dear Tecmint > Mr. Ravi Saive:

    1. Your discussion on FreeFileSync is very informative. Thank you very much.

    2. I have a question for you: How do you synchronize a local folder with a remote folder via the Internet? How do you specify the address of the remote folder?

    3. Your response to the above will be much appreciated.

    Kabeer Sayeed

  2. Biep says:

    Version 10 seems to have dropped the installation ads. They used to use OpenCandy, which is a bit of nasty program. For older versions, making sure you have no Internet connection during install will prevent OpenCandy from doing its stuff.

  3. Bartek says:

    Symbolic links disable seems to work only on local drives. When it finds any on FTP it follows it and this way it may loop deeply. (Checked on Ubuntu 16.04).

    There should be an option not to follow symlinks also on FTP directories.

  4. Jeremy says:

    I installed the freefilesync program on ubuntu 16.04. Mirroring files on the external hard drive is no problem. However, the permission changes on the destination folder, which is the external hard drive. How can I preserve the permissions as it is when I mirroring files on ubuntu 16.04???

  5. Martins Almeida says:

    The free edition of Windows version is ad-supported and as such your anti-virus software may report Win32/FusionCore. I or similar, which means you will be dealing with a PUP (Potentially Unwanted Program).

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.