FreeFileSync：开源的文件同步工具
同步

> 
> FreeFileSync 是一个开源的文件夹比较和同步工具，你可以使用它将数据备份到外部磁盘、云服务（如 Google Drive）或任何其他存储路径。
> 
> 
> 


### FreeFileSync：一个免费且开源的同步工具


![](/data/attachment/album/202008/23/060523ubx28vyi8qf8sv9d.jpg)


[FreeFileSync](https://freefilesync.org/) 是一个令人印象深刻的开源工具，可以帮助你将数据备份到其他位置。


它们可以是外部 USB 磁盘、Google Drive 或使用 **SFTP 或 FTP** 连接到任何云存储。


你可能之前读过我们的[如何在 Linux 上使用 Google Drive](https://itsfoss.com/use-google-drive-linux/) 的教程。不幸的是，没有合适的在 Linux 上原生使用 Google Drive 的 FOSS 方案。有个 [Insync](https://itsfoss.com/recommends/insync/)，但它是收费软件而非开源软件。


FreeFileSync 可使用 Google Drive 帐户同步文件。事实上，我用它把我的文件同步到 Google Drive 和一个单独的硬盘上。


### FreeFileSync 的功能


![](/data/attachment/album/202008/23/060540pp9yspy1pj2is5y7.jpg)


尽管 FreeFileSync 的 UI 看起来可能很老，但它为普通用户和高级用户提供了许多有用的功能。


我将在此处把所有能重点介绍的功能都介绍出来：


* 跨平台支持（Windows、macOS 和 Linux）
* 同步前比较文件夹
* 支持 Google Drive、[SFTP](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol) 和 FTP 连接
* 提供在不同的存储路径（或外部存储设备）上同步文件的能力
* 多个可用的同步选项（从源更新文件到目标或镜像目标和源之间的文件）
* 支持双向同步（如果目标文件夹或源文件夹有任何修改，将同步更改）
* 适用于高级用户的版本控制
* 可进行实时同步
* 能安排批处理作业
* 同步完成时通过电子邮件收到通知（付费）
* 便携式版（付费）
* 并行文件复制（付费）


如果你看一下它提供的功能，它不仅是普通的同步工具，而且还免费提供了更多功能。


此外，为了让你了解，你还可以在同步文件之前先比较它们。例如，你可以比较文件内容/文件时间，或者简单地比较源文件夹和目标文件夹的文件大小。


![](/data/attachment/album/202008/23/060541yzrqldbbquqvvro7.png)


你还有许多同步选项来镜像或更新数据。如下所示：


![](/data/attachment/album/202008/23/060543woklmm7imdlknmoo.png)


但是，它也为你提供了捐赠密钥的可选选项，它可解锁一些特殊功能，如在同步完成时通过电子邮件通知你等。


以下是免费版本和付费版本的不同：


![](/data/attachment/album/202008/23/060543ixiixfpvp2sbzlif.jpg)


因此，大多数基本功能是免费的。高级功能主要是针对高级用户，当然，如果你想支持他们也可以。（如果你觉得它有用，请这么做）。


此外，请注意，捐赠版单用户最多可在 3 台设备上使用。所以，这绝对不差！


### 在 Linux 上安装 FreeFileSync


你可以前往它的[官方下载页面](https://freefilesync.org/download.php)，并下载 Linux 的 tar.gz 文件。如果你喜欢，你还可以下载源码。


![](/data/attachment/album/202008/23/060544x4f45yr8zzm20pzj.jpg)


接下来，你只需解压并运行可执行文件就可以了（如上图所示）


* [下载 FreeFileSync](https://freefilesync.org/)


### 如何开始使用 FreeFileSync？


虽然我还没有成功地尝试过创建自动同步作业，但它很容易使用。


[官方文档](https://freefilesync.org/manual.php)应该足以让你获得想要的。


但是，为了让你初步了解，这里有一些事情，你应该记住。


![](/data/attachment/album/202008/23/060545k4cqz7qlqlrcq4cx.jpg)


如上面的截图所示，你只需选择源文件夹和要同步的目标文件夹。你可以选择本地文件夹或云存储位置。


完成后，你需要选择在同步中文件夹比较的类型（通常是文件时间和大小），在右侧，你可以调整要执行的同步类型。


#### FreeFileSync 的同步类型


当你选择 “更新” 的方式进行同步时，它只需将新数据从源文件夹复制到目标文件夹。因此，即使你从源文件夹中删除了某些东西，它也不会在目标文件夹中被删除。


如果你希望目标文件夹有相同的文件副本，可以选择 “镜像”同步方式。这样，如果你从源文件夹中删除内容，它就会从目标文件夹中删除。


还有一个 “双向” 同步方式，它检测源文件夹和目标文件夹的更改（而不是只监视源文件夹）。因此，如果对源/目标文件夹进行了任何更改，都将同步修改。


有关更高级的用法，我建议你参考[文档](https://freefilesync.org/manual.php)。


### 总结


还有一个[开源文件同步工具是 Syncthing](https://itsfoss.com/syncthing/)，你可能想要看看。


FreeFileSync 是一个相当被低估的文件夹比较和同步工具，适用于使用 Google Drive、SFTP 或 FTP 连接以及单独的存储位置进行备份的 Linux 用户。


而且，所有这些功能都免费提供对 Windows、macOS 和 Linux 的跨平台支持。


这难道不令人兴奋吗？请在下面的评论，让我知道你对 Freefilesync 的看法。




---


via: <https://itsfoss.com/freefilesync/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

FreeFileSync is **a free and open-source folder comparison and sync tool** with which you can back up your data to an external disk, a cloud service like Google Drive or any other storage path.

So, let's dive in and see what it is all about.

![a screenshot of freefilesync](https://itsfoss.com/content/images/wordpress/2020/05/free-file-sync.jpg)

[FreeFileSync](https://freefilesync.org/?ref=itsfoss.com) is an impressive open-source tool that can help you back up your data to a different location.

This different location can be an external USB disk, Google Drive or any of your cloud storage locations using **SFTP or FTP** connections.

You might have read our tutorial on [how to use Google Drive on Linux](https://itsfoss.com/use-google-drive-linux/) before. Unfortunately, there’s no proper, free FOSS solution to use Google Drive natively on Linux, tools like FreeFileSync are as close as one can get.

FreeFileSync can be used to sync files with your Google Drive account. In fact, I have been using it to sync my files to Google Drive and to a separate hard drive.

## Features of FreeFileSync

![Free File Sync open sourc file synchronization tool](https://itsfoss.com/content/images/wordpress/2020/05/FreeFileSync.jpg)

Even though the UI of FreeFileSync might look old school — it offers a ton of useful features for both average and advanced users as well.

I’ll highlight some **key features** here:

- Cross-Platform Support (Linux, Windows, and macOS)
- Compare Folders before Synchronizing
- Supports Google Drive,
[SFTP](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol?ref=itsfoss.com), and[FTP](https://en.wikipedia.org/wiki/File_Transfer_Protocol)connections - Two-way Synchronization Support
- Version control for Advanced Users
- Real-Time Sync Options
- Ability to Schedule Batch Jobs

So, if you take a look at the features it offers, it’s not just like any ordinary sync tool. But, also offers a lot free of charge.

Furthermore, to give you an idea how FreeFileSync works. You can compare the file content/file time or simply compare the file size of both source and target folder as shown below.

![a screenshot of freefilesync file comparision feature](https://itsfoss.com/content/images/wordpress/2020/05/freefilesync-comparison.png)

You also get **numerous synchronization options** to mirror or update your data. Here’s how it looks like:

![a screenshot of freefilesync synchronization options](https://itsfoss.com/content/images/wordpress/2020/05/freefilesync-synchronization.png)

Seeing that the **essential features are available for free**. Should you choose to, you can donate something so that the project is kept alive with regular updates. You will find this page in the downloads section of the project website.

![a screenshot of freefilesync donation page](https://itsfoss.com/content/images/2023/12/FreeFileSync_Donate.png)

## Installing FreeFileSync on Linux

You can simply head on to its [official download page](https://freefilesync.org/download.php?ref=itsfoss.com) and grab the *tar.gz*** **file for Linux. If you like, you can download the source code as well.

![a screenshot of running freefilesync on linux](https://itsfoss.com/content/images/wordpress/2020/05/freefilesync-run.jpg)

After downloading, you just need to extract the archive and run the executable file to get started (as shown above).

## Getting Started With FreeFileSync

While I haven’t tried to successfully create an automatic sync job, it is pretty easy to use.

The [official documentation](https://freefilesync.org/manual.php?ref=itsfoss.com) should be more than enough to get what you want using the software. But, just to give you a head start, **here are a few things that you should keep in mind**.

![a screenshot of freefilesync folder configuration](https://itsfoss.com/content/images/wordpress/2020/05/freefilesync-tips.jpg)

As illustrated by the screenshot above, you have to select a source folder and the target folder to sync. You can choose a local folder or a cloud storage location in either case.

Once you do that, you need to tweak the type of folder comparison you want to do (usually the file time & size) for the synchronization process. And on the right-side, you get to tweak the type of sync that you would like to perform.

**Suggested Read 📖**

[Insync: The Hassleless Way of Using Google Drive on LinuxInsync can be your all-in-one solution to sync files to the cloud for Google Drive, OneDrive, and Dropbox.](https://itsfoss.com/insync-linux-review/)![](https://itsfoss.com/content/images/2023/09/insync-ft.png)


![](https://itsfoss.com/content/images/2023/09/insync-ft.png)

### Types of synchronization in FreeFileSync

When you select the “**Update**” method for sync, it simply copies newer data from the source folder to the target folder. So, even if you delete something from your source folder, it won’t get deleted from your target folder.

In case you want the target folder to have the same file copies as your source folder, you can select the “**Mirror**” synchronization method. So, here, if you delete something from your source folder, it gets deleted from your target folder as well.

There’s also a “**Two way**” sync method, which detects changes on both source and target folders (instead of monitoring just the source folder). So, if you make any changes to the source/target folder, the modification will be synchronized on both folders.

For more advanced usage instructions, I suggest you refer to the [official documentation](https://freefilesync.org/manual.php?ref=itsfoss.com).

## Wrapping Up

Another open-source file synchronization tool that comes to mind is the popular [Syncthing](https://itsfoss.com/syncthing/), you might want to look at if you are looking for something different.

FreeFileSync is** a pretty underrated folder comparison and sync tool** available for Linux. Users who utilize Google Drive, SFTP, or FTP connections along with separate storage locations for backup should find it very useful.

All of this comes with cross-platform support for Linux, Windows, and macOS for free!

*💬 Isn’t that exciting? Let me know your thoughts on FreeFileSync in the comments below!*