there are several mechanisms for doing the monitoring (inotify, fanotify, polling based approaches, ebpf based approaches, ...?), and you can of course use any of them to trigger a backup client execution. e.g. you can install fswatch or watchman and go from there.