TechBuzzPro

Robocopy Sync Folders Two Way? Truth & Alternatives

· 6 min read · Apps & Browsers

In this article
  1. What Robocopy Actually Does
  2. Why Robocopy Is Not Two-Way
  3. What You Can Do with Robocopy That Looks Like Sync
  4. How to Do One-Way Sync with Robocopy
  5. Choosing the Right Tool for Two-Way Sync
  6. Common Problems with Robocopy Sync
  7. Comparison: Robocopy vs. Dedicated Sync Tools
  8. Safety Tips for Any Sync Task
  9. Frequently Asked Questions

No, Robocopy cannot sync folders two ways. It is a one-way mirroring tool: it copies changes from a source to a destination, and it can delete files on the destination to make it identical to the source. True two-way synchronization — where changes in either folder are merged into the other, with conflicts resolved — requires a different tool. This article explains why Robocopy behaves this way, what it can do well, and what to use instead when you need bidirectional sync.

What Robocopy Actually Does

Robocopy (Robust File Copy) is a command-line utility built into Windows. It copies files and directories from one location to another, with options for multi-threading, restartability, and copying NTFS permissions. Its core model is a one-way copy: you specify a source and a destination, and Robocopy makes the destination look like the source.

When you run Robocopy with the /MIR option, it mirrors the source to the destination. That means it copies new and changed files, and it deletes files on the destination that no longer exist on the source. This is powerful for backups and exact replicas, but it is destructive if you run it in the wrong direction or with the wrong options.

Why Robocopy Is Not Two-Way

Two-way sync requires tracking changes on both sides and merging them. Robocopy has no concept of “changes on the destination.” It only looks at the source and makes the destination match. If you run Robocopy from A to B, then later run it from B to A, you are not syncing — you are overwriting one folder with the other. Any file that was deleted or changed on the first source will be deleted or overwritten on the second run, even if that change was intentional.

For example:

  • You run Robocopy from Folder A to Folder B. A file is deleted from Folder A, so it is deleted from Folder B.
  • You then run Robocopy from Folder B to Folder A. That file is now gone from both — the deletion is propagated in both directions.

That is not a merge; it is a cascade of changes. True two-way sync would keep the file if it was only deleted on one side, or at least ask you which version to keep.

What You Can Do with Robocopy That Looks Like Sync

You can use Robocopy to keep two folders “in sync” in a one-way sense, and you can reverse the direction manually or with a script. This is sometimes called “poor-man’s sync” or “manual bidirectional sync.” It works if you always know which folder is the authoritative one at any given time.

For instance, you might sync your laptop to a network drive before traveling, then sync back when you return. The key is that you must never make changes on both sides between syncs, because then you will lose one set of changes.

How to Do One-Way Sync with Robocopy

If one-way mirroring is what you need, Robocopy is excellent. The most common command is:

robocopy C:olderA D:olderB /MIR

This mirrors folderA to folderB, deleting extra files in folderB. Add /COPY:DAT to copy data, attributes, and timestamps (the default), or /COPYALL to include security info. For large sets, add /MT:16 for multithreading.

Always test with /L first, which lists what would be done without actually doing it. And be careful with the destination path — a typo can cause data loss.

Choosing the Right Tool for Two-Way Sync

If you genuinely need two-way sync, you need a dedicated sync tool. These tools track changes on both sides, merge them, and handle conflicts (when the same file is changed on both sides). Popular options include:

  • FreeFileSync — free, open-source, cross-platform, with a graphical interface and a batch mode.
  • SyncToy — a free Microsoft tool with a “Synchronize” mode that is two-way, though it is older and no longer actively developed.
  • Syncthing — open-source, peer-to-peer, continuous synchronization between multiple devices.
  • rsync with bidirectional scripts — on Linux/macOS, you can script rsync to sync both ways, but it is still not true merge sync.

These tools typically keep a database of file states, so they know what changed on each side since the last sync. That is the core difference from Robocopy.

Common Problems with Robocopy Sync

The biggest problem is accidental data loss. Because Robocopy deletes files on the destination when you use /MIR, pointing it at the wrong folder can wipe out data. Other common issues:

  • File locking — files in use may be skipped; use /R:3 to limit retries and /W:5 to set wait time.
  • Long paths — Robocopy handles long paths better than many tools, but still has limits; use /256 if needed.
  • Permissions — copying with /COPYALL may fail if you lack privileges; run as administrator.
  • Hidden/system files — by default, Robocopy copies them, but you may need /A-:SH to exclude them.

Comparison: Robocopy vs. Dedicated Sync Tools

Here is a quick comparison to help you decide:

  • Robocopy — one-way, fast, built-in, scriptable, free, no conflict handling.
  • FreeFileSync — two-way, GUI, conflict resolution, free, cross-platform.
  • Syncthing — two-way, continuous, encrypted, good for multi-device, no central server.
  • SyncToy — two-way, simple, free, but outdated.

If you need a simple one-way backup, Robocopy is hard to beat. If you need to keep two folders on different computers in sync, a dedicated tool is safer.

Safety Tips for Any Sync Task

No matter what tool you use, follow these rules:

  • Always back up your data before the first sync.
  • Test with a dry run (Robocopy /L, or a preview in GUI tools).
  • Understand the delete behavior — know whether the tool deletes files on the destination.
  • Use versioning or a backup of the destination if you are unsure.
  • Never run a mirror command from a folder that might be incomplete (e.g., a drive that hasn’t fully mounted).

Frequently Asked Questions

Can Robocopy sync two folders both ways?

No. Robocopy is strictly one-way. It copies from a source to a destination and can delete files on the destination to match the source. There is no option to merge changes from both sides.

What is the difference between mirror and sync?

Mirroring makes the destination exactly match the source, deleting extra files. Syncing (two-way) merges changes from both sides, keeping the newest version of each file and flagging conflicts. Robocopy does mirroring, not syncing.

Is there a Robocopy option for two-way sync?

No. Robocopy has no bidirectional mode. You can run it in both directions manually, but that is not true sync because it does not track changes or resolve conflicts.

What is the best free tool for two-way sync on Windows?

FreeFileSync is a popular, reliable choice. It offers a clear interface, conflict resolution, and a batch mode. SyncToy is another free option, but it is older and less maintained.

Can I use Robocopy to sync to a network drive?

Yes, Robocopy works with UNC paths like \server older. Just be careful with permissions and network reliability. Use /R:2 and /W:2 to avoid long retries on a flaky connection.

Will Robocopy delete files on the destination?

Only if you use the /MIR or /PURGE options. Without those, it copies files but does not delete extras. Always check the command before running it, especially with /MIR.