Maybe an under appreciated utility - incron (inotify cron).
A crontab-like syntax enables you to run scripts on specified file or directory events.
I use it to stash logfiles to a central location from several hosts.
There is a good write up here: https://oneuptime.com/blog/post/2026-03-02-use-incron-cron-like-file-monitoring-ubuntu/view
