unison

Bidirectional file synchronization tool for keeping directories in sync

brewmacoslinux
Try with needOr install directly
Source

About

File synchronization tool

Commands

unison

Examples

Synchronize two local directories$ unison /path/to/dir1 /path/to/dir2
Synchronize local directory with remote server via SSH$ unison /local/path ssh://user@host//remote/path
Run synchronization in batch mode without prompts$ unison /path/to/dir1 /path/to/dir2 -batch