AllSupported
Home How To Linux Search
  1. Home
  2. /
  3. GitLab
  4. /
  5. Backup GitLab

Backup GitLab

By Tech Writer • August 10, 2014 • 1 min read

bundle exec rake RAILS_ENV=production gitlab:backup:create

The backup will should be created and located here.

/home/git/gitlab/tmp/backups

 

something like

3407151110_gitlab_backup.tar

 Download this file and restore it to the another sever to ensure you have a good backup. A backup that hasn’t been tested is not a backup at all.

 To restore a backup

 bundle exec rake gitlab:backup:restore RAILS_ENV=production


 

 

References:

https://wiki.archlinux.org/index.php/gitlab

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md

Related Articles

gitlab-ce default backup location

  gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"    

Reconfigure / Update / Renew expired certificate with Gitlab CE

  If cron job failed to run it wasn't noticed you may have to make another request for your gitlab certificate. Here's a one liner that should help point you into the right direction. /root/letsenc

gitlab backup path on debian

Effective as of gitlab 8.6.0+ /var/opt/gitlab/backups

Let's Encrypt and GitLab

    https://webnugget.de/setting-up-gitlab-with-free-ssl-certs-from-lets-encrypt-on-ubuntu-14-04/    

gitlab backup instructions

    https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md

AllSupported

Your trusted source for tech support and tutorials.

Categories

  • How To (90)
  • Linux (35)
  • PHP (26)
  • Productivity (23)

Resources

  • About Us
  • Contact
  • RSS Feed

Connect

Stay updated with the latest tech support articles and tutorials.

© 2025 AllSupported. All rights reserved.