1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/common/unison.md
2022-06-27 07:23:12 -03:00

595 B

unison

Bidirectional file synchronisation tool. More information: https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html.

  • Sync two directories (creates log first time these two directories are synchronized):

unison {{path/to/directory_1}} {{path/to/directory_2}}

  • Automatically accept the (non-conflicting) defaults:

unison {{path/to/directory_1}} {{path/to/directory_2}} -auto

  • Ignore some files using a pattern:

unison {{path/to/directory_1}} {{path/to/directory_2}} -ignore {{pattern}}

  • Show documentation:

unison -doc {{topics}}