title: Slashes and the rsync command
body: <p>I am trying to do something along the same lines as what is asked in this question: <a href="https://stackoverflow.com/questions/1602324/rsync-how-do-i-synchronize-in-both-directions">RSync: How do I synchronize in both directions?</a></p>
  
  <p>However, what I can't figure out is whether or not I should add slashes to the end of the file path. Basically I'm trying to create an alias command that syncs the contents of two directories that go by the same name but are on two different servers. What I don't want is for one directory to be copied into the other (which I am aware is a possibility depending on how the slashes at the end are done).</p>
  
  <p>What I have currently is:</p>
  
  <pre><code>alias syncDirectories1 = 'rsync -tvur name@host:/Users/me/directory/ /Users/me/directory/'
  alias syncDirectories2 = 'rsync -tvur /Users/me/directory/ name@host:/Users/me/directory/'
  </code></pre>
  
  <p>For what I am trying to accomplish, should there be slashes at the end of both file paths?</p>
  
  <p>Thank you in advance for the help.</p>