Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created January 4, 2018 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrycojones/fdd839ca52f83a792bd7353dea9337de to your computer and use it in GitHub Desktop.
Save terrycojones/fdd839ca52f83a792bd7353dea9337de to your computer and use it in GitHub Desktop.
If you use rsync to synchronize your notebook to the server (or for anything else), you might want to switch to unison.
My notebook dir has 2166 files in it. rsync took 111 seconds the last time I ran it (no files had changed). With unison:
$ time unison output ssh://ac/dark-matter/generated-notebook
Contacting server...
Connected [//Terrys-MacBook-Pro.local//Users/terry/dark-matter/www/output -> //i19//syn/WebSites/Protected/terry]
Looking for changes
Waiting for changes from server
Reconciling changes
Nothing to do: replicas have not changed since last sync.
0.81 real 0.02 user 0.02 sys
On a Mac, brew install unison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment