3 ms·
If it were running constantly, it could use inotify. Since this only runs periodically, using rsync to do the scanning is probably the best choice.
by sp332 7y ago
If it were running constantly, it could use inotify. Since this only runs periodically, using rsync to do the scanning is probably the best choice.
- linsomniac 7y agoAFAIK, inotify only works on a single directory. You can set it up to add an inotify to newly created directories, but you need to hook into every directory in the filesystem. Unless this has changed more recently, you can't just set up an inotify on "tell me when anything has changed on this filesystem". Some google searches do not indicate that this has changed.