rsync+inotify realizes real-time synchronous update of data

rsync can achieve triggered file synchronization, but it is triggered by the crontab daemon process, the synchronized data will be different from the actual data, and inotify can monitor various changes in the file system, when there is any change in the file, it will trigger rsync synchronization , so that the real-time problem of synchronizing data can be solved.

rsync+inotify realizes real-time synchronous update of data

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326581809&siteId=291194637