unison

Gaining better performance with inotify-tools and unison.

让人想犯罪 __ 提交于 2019-12-07 11:58:49
问题 I use inotify-tools and unison to synchronize folders between machines. Because I have a large folder to synchronize, I just simply write an inotifywait script to do the job automatically. Is it sensible to let inotifywait to monitor the subdirectories of the large folder to gain a better performance? 回答1: You should get better performance if you ditch inotify-tools and just use unison's native support for watching your folders for changes. By using inotify-tools and then calling unison when

Gaining better performance with inotify-tools and unison.

不羁岁月 提交于 2019-12-05 21:37:26
I use inotify-tools and unison to synchronize folders between machines. Because I have a large folder to synchronize, I just simply write an inotifywait script to do the job automatically. Is it sensible to let inotifywait to monitor the subdirectories of the large folder to gain a better performance? You should get better performance if you ditch inotify-tools and just use unison's native support for watching your folders for changes. By using inotify-tools and then calling unison when a change occurs, unison has to " re-find " the change before it syncs. You could instead add the line repeat

Sync directories containing git repository with unison

跟風遠走 提交于 2019-12-03 14:04:58
I want to sync a directory containing a git repo of my dotfiles on two machines. Both machines will make changes to the files in the repo. Normally I use unison for syncing directories but in this case the files in the .git directory diverge even when the directory contents are ostensibly the same. Unison throws up its hands and quits when it sees this. $ unison dotfiles changed <-?-> changed .git/FETCH_HEAD changed <-?-> changed .git/ORIG_HEAD changed <-?-> changed .git/index changed <-?-> changed .git/logs/HEAD changed <-?-> changed .git/logs/refs/heads/master changed <-?-> changed .git/logs