title: Mirroring file moves with rsync
body: <p>The proprietary software that we're using for backups (sadface) generates a series of images that we use <code>rsync</code> to sync over to an off-site location.  The files generated look something like:</p>
  
  <pre><code>a.bak
  b.bak
  c.bak
  </code></pre>
  
  <p>So we sync those across and get exactly the same structure on the off-site machine.  Then the backup program runs again and we get something like:</p>
  
  <pre><code>archive/a.bak
  archive/b.bak
  c.bak
  d.bak
  e.bak
  </code></pre>
  
  <p>So the <code>rsync</code> job runs and we end up with something like:</p>
  
  <pre><code>archive/a.bak
  archive/b.bak
  a.bak
  b.bak
  c.bak
  d.bak
  e.bak
  </code></pre>
  
  <p>Obviously, we would prefer the off-site machine to look like the on-site machine does, to avoid clutter and save on storage space.  Is there any way to get <code>rsync</code> to mirror the moves that have happened on-site, or are we going to have to work out something outside of <code>rsync</code>?</p>