Bidirectional Sync With Unison
Synchronize two directories so changes on either side propagate.
Run unison dir1 dir2 to reconcile the two directory trees.
01Command
Command
$ unison dir1 dir202What it does
Unison compares two roots, shows a list of differing files and lets you propagate changes in either direction, remembering state between runs so conflicts can be detected. Roots can be local or remote over SSH, making it a two-way alternative to rsync.
03Risk
!Warning: Conflicting edits require a manual decision; read the proposed actions before confirming.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Debian package: unisonEvidence: Debian packages Unison, a bidirectional file synchronizer for local or remote roots.
- UnisonEvidence: Debian packages Unison, a bidirectional file synchronizer for local or remote roots.
Last verified: 2026-09-22 · Category: Files & Folders
06Related solutions
Search text recursively in a directory with grep
Find every occurrence of a pattern across all files in a tree, printed as file:line:number matches.
Extract a .tar.gz archive with tar
Unpack a gzipped tarball into the current directory while printing each file as it is extracted.
Copy and Sync Files with rsync
rsync copies over SSH, skips unchanged files, resumes interrupted transfers, and preserves permissions and timestamps.