I would like to automatically start one-way synchronization between two local directories using rsync . Meaning, when a change is detected in the /dir1 file or its subdirectories, the following command should be executed:
rsync -rtuv /dir1 /dir2
How can I achieve this with fswatch ?
Is it possible to provide arguments for rsync only to copy the actual files that have been modified as indicated by the fswatch events?
source share