title: Move all files at one level up one level
body: <p>I had a problem with a backup on a linux server that somehow moved all folders of files down one level into a new folder with the same name.  I would like to return all files to their original location.  Many of the files have spaces in their names to complicate things.</p>
  
  <p>Original directory structure:</p>
  
  <pre><code>backup/folder 1/file 1
  backup/folder 1/file 2
  backup/folder 1/subfolder/file A
  backup/folder 2/file 1
  ...
  </code></pre>
  
  <p>Incorrect directory structure:</p>
  
  <pre><code>backup/folder 1/folder 1/file 1
  backup/folder 1/folder 1/file 2
  backup/folder 1/folder 1/subfolder/file A
  backup/folder 2/folder 2/file 1
  ...
  </code></pre>
  
  <p>Note that I do not want the file inside the subfolder to move into folder 1, but I do want the subfolder itself to move up one level.</p>
  
  <p>I've tried a few commands similar to this, based on somewhat related threads on here, but haven't gotten it to work, it instead tries to move the files to the current directory.  What am I doing wrong?</p>
  
  <blockquote>
    <p>find . -mindepth 3 -maxdepth 3 -exec sh -c 'mv -v {} ..' \;</p>
  </blockquote>