ThisCalculator

Everyday

Sync Files Between Two Folders: A Practical Guide

Updated · Standard formula, shown below

To sync files between two folders means to make their contents identical, so that changes in one folder are automatically reflected in the other. You can do this with built-in tools like Windows Sync Center or macOS rsync, or with third-party apps like FreeFileSync or Syncthing, depending on your needs. This guide explains the main methods, how they work, and how to choose the right one.

What Does Folder Syncing Actually Do?

Folder synchronization compares the contents of two or more folders and updates them so they match. The key difference from simply copying files is that syncing is usually bidirectional by default: if you add, delete, or modify a file in either folder, the same change appears in the other. Some tools also offer one-way mirroring, where changes only flow from a source to a destination, and the destination is made to look exactly like the source (files deleted in the source are deleted in the destination).

Syncing is not the same as backing up. A backup is a snapshot of your data at a point in time, kept separate so you can recover from accidental deletion or corruption. A sync is a live, ongoing process that keeps two locations current. If you accidentally delete a file in one folder, a sync will delete it in the other too—so syncing should not be your only backup strategy.

Built-In Tools: Windows and macOS

Both major operating systems include basic syncing tools, though they are limited.

  • Windows Sync Center (Control Panel > Sync Center) is designed mainly for offline files and mobile devices. It can sync files between a network folder and your local PC, but it is not a general-purpose folder-to-folder sync tool. For local syncing, most Windows users rely on third-party software.
  • macOS rsync is a command-line utility that can sync folders. A typical command is rsync -av --delete /source/ /destination/. The --delete flag makes the destination an exact mirror of the source. Because it runs in the terminal, it is powerful but not beginner-friendly.
  • PowerShell (Windows) also has a Copy-Item cmdlet, but it does not handle deletions or bidirectional syncing well. For a robust solution, you need a dedicated tool.

Third-Party Sync Software

Dedicated sync tools offer more control, scheduling, and conflict resolution. Here are the most common categories:

  • FreeFileSync (Windows, macOS, Linux) – Free and open-source. It compares folders and lets you choose between two-way sync and one-way mirror. It has a graphical interface and can run from a scheduled task.
  • Syncthing (Windows, macOS, Linux, Android) – Open-source, peer-to-peer. It syncs folders between devices over a network or the internet without a central server. It is ideal for keeping multiple computers in sync.
  • SyncToy (Windows) – A free Microsoft tool that is older but still works on Windows 10 and 11. It offers three modes: Echo (one-way), Contribute (one-way, no deletions), and Synchronize (two-way).
  • Resilio Sync (all platforms) – A paid, commercial version of BitTorrent Sync. It is fast and works over the internet, but the free version has limited features.

How to Choose the Right Method

Consider the following factors when deciding:

  • Number of folders/devices: If you only need to sync two folders on the same computer, a simple tool like FreeFileSync or SyncToy works. If you need to sync across multiple computers or a phone, use Syncthing or a cloud service.
  • Direction: Do you want changes to flow both ways, or only from one folder to the other? Two-way sync is common for working on files in different locations; one-way mirror is useful for pushing files to a server or a backup drive.
  • Scheduling: Do you need automatic, real-time syncing, or is a manual run fine? Most tools can run on a schedule (e.g., every hour) or in real-time using file system monitoring.
  • Conflict handling: If the same file is changed in both folders, the tool must decide which version to keep. Some tools keep both with a version suffix, others keep the most recent, and others let you choose a rule.
  • Ease of use: Command-line tools like rsync are powerful but require learning syntax. GUI tools are easier for most people.

Common Problems and How to Avoid Them

  • Accidental deletion: As mentioned, two-way sync propagates deletions. To protect yourself, use a tool that supports a “trash” or “versioning” feature, or schedule a separate backup.
  • File conflicts: When the same file is edited in both folders before a sync, the tool must pick a winner. Some tools (like Syncthing) create a conflict copy with a name like filename (conflicted copy). Always review conflict copies before deleting them.
  • File locking: If a file is open in a program (like a Word document), some sync tools may skip it or fail to copy it. Close the file or use a tool that can handle locked files, though this is rare.
  • Hidden and system files: Some tools ignore hidden files by default. If you need to sync them, check the tool’s settings to include all files.
  • Network drives: Syncing to a network drive (NAS) can be slow if the connection is unreliable. Use a tool that supports resuming interrupted transfers.

Cloud Sync vs. Local Sync

Cloud services like Dropbox, Google Drive, and OneDrive also sync files, but they work differently: they sync to the cloud and then to your other devices. This is convenient because it works anywhere, but it has drawbacks: you are limited by storage quotas, you depend on internet speed, and your data is stored on a third-party server.

Local sync (between two folders on your own drives or network) is faster, private, and unlimited in size. It is the better choice when you have large files (like video projects) or sensitive data that should not leave your premises. Many people use both: a local sync for immediate work, and a cloud service for off-site backup.

Safety and Best Practices

To avoid data loss, follow these guidelines:

  • Test before trusting: Run a sync with a few test files to confirm the direction and behavior.
  • Keep a backup: Even with sync, have a separate backup of important files. A 3-2-1 rule (3 copies, 2 different media, 1 off-site) is a good target.
  • Use versioning: If your tool supports it, enable versioning so you can restore older versions of files.
  • Monitor sync logs: Check the logs periodically to catch errors early.
  • Be careful with --delete: In rsync, the --delete flag permanently removes files in the destination that are not in the source. Use it only when you are sure the source is the authoritative version.

Frequently Asked Questions

Can I sync folders between two different computers? Yes. You can use a cloud service, a network share, or a peer-to-peer tool like Syncthing. Syncthing works over the internet without needing a central server, and it encrypts data in transit.

What is the difference between sync and backup? Sync keeps two locations identical in real-time; backup creates a point-in-time copy. If you delete a file, sync deletes it everywhere, but a backup still has the old version. Use both: sync for convenience, backup for safety.

Is there a free way to sync folders on Windows? Yes. FreeFileSync, SyncToy, and Syncthing are all free. FreeFileSync is widely recommended for its ease of use and feature set.

How do I schedule automatic syncing? Most GUI tools have a “batch” mode that can be run by Windows Task Scheduler or macOS launchd. FreeFileSync, for example, lets you save a batch job and then create a scheduled task to run it.

Why are some files not syncing? Common reasons: the file is locked by another program, the file name contains characters not supported by the destination file system, or the tool is set to ignore certain file types. Check the sync log for specific errors.

Can I sync folders on an external drive? Yes. You can sync between any two folders, including on external drives. Just make sure the drive is connected when the sync runs; otherwise, the tool will report an error.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.