Skip to content

Instantly share code, notes, and snippets.

@wotzhs
wotzhs / sync.sh
Created July 24, 2018 03:56
unison sync script between windows and a lubuntu vm
unisonText \
# folder to be sync on host machine (windows) to guest machine (lubuntu)
"C:\full_path_to_folder" \
# folder to not be synced on host machine from file changes in guest machine
-noupdate="C:\Users\sean\work\src\ossdc" \
# always prefer the file with newer changes in the event of file content conflict
-prefer=newer \
# enable listen to file changes
-repeat=watch \
# ignore folders / files changes on the host machine using regex pattern