On Thu, Jul 10, 2025 at 8:30 PM Robert Moskowitz via users
<users@lists.fedoraproject.org> wrote:
> But is there some way to evaluate the source and see if any changes have
> occurred since the last rsync (or some time) and only trigger rsync
> accordingly?

find /source -xdev -mtime -1

If no files are listed, nothing has been modified in the last day.
You could also do something like keep an rsync log when rsync runs,
and then find can use -newer[?] to find files newer than the rsync log
- again, if no files are listed, nothing has changed since the rsync
log was created.  [see man find for the correct "-newer" option(s)]
-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to