How to use fswatch and rsync to automatically sync directories?
<p>I'd like to automatically run a one way sync between two local directories using <code>rsync</code>. Meaning when a change is detected in a file of <code>/dir1</code> or its subdirs, the following command should run:</p>

<p><code>rsync -rtuv /dir1 /dir2</code></p>

<p>How can I go about achieving this with <code>fswatch</code>?</p>

<p>Is it possible to supply arguments for <code>rsync</code> to only copy the actual files that were changed, as given by the <code>fswatch</code> events?</p>