title: What is the appropriate policy of backuping code repository for gitlab docker image?
body: <p>I have deployed a <a href="https://registry.hub.docker.com/u/genezys/gitlab/" rel="nofollow">genezys/gitlab</a> docker image on a host:  </p>
  
  <pre><code>docker run --name gitlab_data genezys/gitlab:7.5.2 /bin/true
  docker run --detach --name gitlab --publish 8080:80 --publish 2222:22 --volumes-from gitlab_data genezys/gitlab:7.5.2
  </code></pre>
  
  <p>Now I want to backup the code repository in case the host is crashed.   </p>
  
  <p>I am a little confused about the backup policy: Since I have created <code>gitlab_data</code> container for storage purpose, should I backup the whole <code>gitlab_data</code> docker image? Or I just use <code>gitlab rake</code> to backup the code repository? Or are there any better methods?</p>