title: GitLab Backup - bundle command not found
body: <p>Hello stackoverflow community,</p>
  
  <p><strong>My setup:</strong></p>
  
  <ul>
  <li>CentOS 7 (running in a VM)</li>
  <li>Omnibus GitLab CE 10.4.0 128ef10 (installed via yum)</li>
  <li>Bundler version 1.16.1 (2017-12-21 commit 0034ef341)</li>
  </ul>
  
  <p><strong>Problem:</strong></p>
  
  <p>When creating a backup of GitLab, I normally went to the gitlab directory and used the command:</p>
  
  <pre><code>bundle exec rake gitlab:backup:create RAILS_ENV=production
  </code></pre>
  
  <p>which worked just fine. However, I tried this yesterday and, for reasons unknown, the system told me that the command bundle could not be found. So I asked Google for help. Some articles in the web mentioned to install Ruby and Bundler anew, which I found odd, since Omnibus GitLab came with its own version of both (and it worked before). Nevertheless I did it, and when running above command, I now get the message:</p>
  
  <pre><code>Could not locate Gemfile or .bundle/ directory
  </code></pre>
  
  <p>This happens with both, Ruby 2.4.2, as well as Ruby 2.3.6, even if I provide the path to bundle, within the above mentioned backup command. Now, there are suggestions out there, that I have to copy the Gemfile (I suppose this means bundle itself?) to a specific location, but I do not know which location. There are conflicting or blurry details. So, I am stuck.</p>
  
  <p>I am not quite sure, this fiddling around with a Ruby version, outside of Omnibus GitLab, is the right solution in the first place. It just feels wrong, but I am out of ideas.</p>
  
  <p>Can anyone help me please?</p>