title: Where is the backup.tar file being saved in this example?
body: <p>From the docker documentation:
  <a href="https://docs.docker.com/storage/volumes/" rel="nofollow noreferrer">https://docs.docker.com/storage/volumes/</a></p>
  
  <blockquote>
    <h1>Backup a container</h1>
    
    <p>For example, in the next command, we:</p>
    
    <ul>
    <li>Launch a new container and mount the volume from the dbstore    container </li>
    <li>Mount a local host directory as /backup</li>
    <li>Pass a command that tars the contents of the dbdata volume to a    backup.tar file inside our /backup directory.</li>
    </ul>
  
  <pre><code>$ docker run --rm --volumes-from dbstore -v $(pwd):/backup ubuntu tar cvf /backup/backup.tar /dbdata
  </code></pre>
    
    <p>When the command completes and the container stops, we are left with a backup of our dbdata volume.</p>
  </blockquote>
  
  <p>I ran this command replacing the example names with the ones of my actual project, but yet a backup.tar is nowhere to be seen. When I run through the command it prints out the contents of the volume im backing up so I know its finding the right one and everything but I see no backup file. Is this supposed to end up on the host machine? on the container being backed up? in the temporary container used to create the backup? im confused.</p>