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?
相关问题
- Data Synchronization between mobile and webserver
- How to use unison across OS X and linux? Fatal err
- TPL DataFlow vs BlockingCollection
- Sync directories containing git repository with un
- Background data sync for mobile apps
相关文章
- TPL DataFlow vs BlockingCollection
- Sync directories containing git repository with un
- Background data sync for mobile apps
- Real-time unidirectional synchronization from sql-
- How to sync only the changed files from the remote
- SymmetricDS:哪种方法我应该使用同步特定表?(SymmetricDS: Which app
- 在一个事务中删除磁盘上的数据库和目录行[复制](Remove row from database a
- 的SQL Server CE和SQL Server之间的同步(Synchronization bet
You should get better performance if you ditch
inotify-tools
and just use unison's native support for watching your folders for changes. By usinginotify-tools
and then callingunison
when a change occurs,unison
has to "re-find" the change before it syncs. You could instead add the linerepeat = watch
to your unison profile andunison
will run continually and sync whenever there is a change. It detects the change with its own file-watcher utilityunison-fsmonitor
that communicates directly with unison.For more information, check out the latest changelog for unison 2.48.3 with major changes to
unison-fsmonitor
.