Skip to content

Instantly share code, notes, and snippets.

@thunfischbrot
Last active February 20, 2018 10:54
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 thunfischbrot/3efbd4a87785615a61e4f5fd875f2699 to your computer and use it in GitHub Desktop.
Save thunfischbrot/3efbd4a87785615a61e4f5fd875f2699 to your computer and use it in GitHub Desktop.
Unison settings for continuous mirror
# /root/.unison/10Documents.prf
# Create one config file for each folder, or add one per
# root folder and add subfolders via
# path = 10Documents
# path = 20Media
# To make this unison job load at machine startup use an init-script
# or systemd service such as
# https://gist.github.com/thunfischbrot/0b6a21a84f166c4fa74fc5df4a470b17
# local root to sync
root = /tank0/10Share/10Documents
# remote root to sync
root = ssh://10.10.0.10//volume1/10Documents
# name of log file
logfile = /var/log/unison.Documents.log
# Specify the SSH key unison should use to authenticate at the other machine
sshargs = -oIdentityFile=/root/.ssh/id_rsa
# Continue watching for changes on both sides
repeat = watch
# Do not copy temporary and other unwanted files
ignore = Name {.DS_Store,Thumbs.db,Recycled,$RECYCLE.BIN,RECYCLER,.Trashes,._.Trashes,#recycle,@eaDir,temp.*,*~,.*~}
# batch mode: ask no questions at all
# this setting includes some of the ones below included for convenience
batch = true
# automatically accept default (nonconflicting) actions
auto = true
# ask for confirmation before committing results of a merge
confirmmerge = false
# ask about whole-replica (or path) deletes (default true)
confirmbigdel = false
# choose this replica's version for conflicting changes
prefer = newer
# part of the permissions which is synchronized = 0
perms = 0
# No GUI needed
ui = text
# Only print error messages
silent = true
# synchronize modification times
times = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment