Skip to content

Unison

Two-way file synchronizer for Windows, macOS and Linux that handles edits on both sides

Copyleft (OSI) · GPL-3.0
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

44

Health

Slowing

Overview

Stars

5,602

Last commit

2 months ago

Sep 2026

Repository age

10 years

since Feb 2016

Latest version

v2.54.0

Apr 2026

Contributors

–

2 active in 90 days

Releases

1

last 12 months

Language

OCaml

Unison is a file synchronizer written in OCaml. It keeps two copies of a directory tree, on different hosts or different disks, up to date with each other. You can change files in both places, and Unison propagates the changes in each direction.

Changes that do not conflict are applied automatically. Conflicting edits are detected and shown to you rather than overwritten. It works between Windows, macOS, Linux and BSD systems, typically over ssh and also directly over TCP. It does not need kernel changes, superuser rights or FUSE. Small edits to large files are sent using an rsync-like compression protocol, so it copes with slow links. A repeat mode with a filesystem monitor syncs changes shortly after they happen.

Because it copies data, both replicas stay readable offline. Unison has been in use for over 25 years. It is released under GPL-3.0 and installs through Homebrew and Flathub, as well as many Linux distribution packages. It is a command-line tool that also has a graphical interface. It suits people who would otherwise use a cloud sync service.

Who it's for

Admins syncing a laptop with a Unix server

It works across operating systems and over ssh without special privileges.

Skip if: You only need one-way backup, where rsync is simpler.

Users who edit files on several machines

Two-way sync detects conflicts instead of silently overwriting.

Skip if: You want automatic background sync with a polished mobile app.

Privacy-minded people replacing cloud sync

Data moves directly between your machines with no third-party server.

Skip if: You need sharing links or browser access to files.

The problem it solves

When you edit the same folder on two machines, simple copy tools overwrite changes or lose them. Cloud sync services solve this but put your files on someone else's servers. Unison reconciles both sides directly and flags real conflicts.

Strengths

  • Two-way sync with conflict detection instead of silent overwrites
  • Runs on Windows, macOS, Linux and BSD without root or FUSE
  • Works over ssh or plain TCP with rsync-style transfers
  • Repeat mode with a filesystem monitor for near-live sync
  • Over 25 years in use, with a defined specification

Trade-offs

  • Maintained by a very small team, so bug reports are handled slowly
  • Only one release in the last year
  • Support questions belong on the mailing list, not the issue tracker
  • Both hosts need compatible Unison versions installed

Self-host Unison

Self-hostable
Yes

Frequently asked questions

Is Unison free?

Yes. It is open source under the GPL-3.0 license.

Which platforms does it run on?

Windows, macOS, Linux and BSD systems. You can synchronize between different operating systems.

How does it connect between machines?

Usually over ssh, or directly over TCP.

How do I install it?

It is available through Homebrew and Flathub, and many Linux distributions package it. Source code is also provided.

Does it handle conflicts?

Yes. Non-conflicting changes sync automatically, and conflicting updates are detected and displayed for you to resolve.

Similar tools in File sharing and transfer tools

Filestash

File sharing and transfer tools

Self-hosted web file manager that connects to SFTP, S3, SMB, WebDAV and more

15k 1k today Active AGPL-3.0

Replaces DropboxGoogle Drive

FileGator

File sharing and transfer tools

Self-hosted web file manager with multi-user roles and chunked uploads, no database needed

3.1k 460 19 days ago Thriving MIT

miniserve

File sharing and transfer tools

Single-binary CLI that serves files and folders over HTTP for quick sharing

8.2k 422 20 days ago Active MIT

linx-server

File sharing and transfer tools

Self-hosted file and media sharing site with expiring links, written in Go

1.6k 194 2 years ago Dormant GPL-3.0

Palmr

File sharing and transfer tools

2.4k 107 9 months ago Dormant Apache-2.0

Zipline

File sharing and transfer tools

3.5k 263 4 days ago Thriving MIT