• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to change default backup location in GitLab

{{postValue.id}}

How to change default backup location in GitLab

GitLab is a web based project management repository based on Git. It lets you to create and manage your projects effectively. As a part of our GitLab series, this tutorial will explain on how to change default backup location in GitLab.

Configuration procedure

To start the installation procedure, first create a new directory at any location.

[root@localhost ~]# mkdir /mnt/new-gitlab

Open the GitLab configuration file and remove the default storage location and add the new location in the configuration file and save it.

[root@localhost ~]# vim /etc/gitlab/gitlab.rb
gitlab_rails[' backup_path' ] = " /mnt/new-gitlab" 

Reconfigure the gitlab service by executing the following command.

[root@localhost ~]# gitlab-ctl reconfigure
Starting Chef Client, version 12.12.15
resolving cookbooks for run list: [" gitlab" ]
Synchronizing Cookbooks:
  - gitlab (0.0.1)
  - package (0.0.0)
  - runit (0.14.2)
.
.
.
Running handlers:
Running handlers complete
Chef Client finished, 10/392 resources updated in 01 minutes 21 seconds
gitlab Reconfigured!

Now create a backup by executing the following command. The backup gets created successfully,

[root@localhost ~]# gitlab-rake gitlab:backup:create
Dumping database ..
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
Dumping repositories ...
 * server-group/linuxhelp ... [SKIPPED]
 * server-group/linuxhelp.wiki ...  [SKIPPED]
.
.
.
done
done
Deleting old backups ... skipping

Go to the newly created GitLab backup location by using the cd command and the location of the new backup.

[root@localhost ~]# cd /mnt/new-gitlab/

Now list the directory, the backup file is created under the newly configured location successfully.

[root@localhost new-gitlab]# ls -l
total 52
-rw------- 1 git git 51200 Apr 13 19:00 1492090251_2017_04_13_gitlab_backup.tar

Wasn' t it a simple procedure? Now creating a backup and to change the default backup location in gitlab is easy with a few steps.

Tags:
jayden
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

where is Default Backup Location In GitLab?

A

Default Backup Location In GitLab is available in /var/opt/gitlab/backups.

Q

I get " cannot find repo " after changing my changing my default backup path. in Gitlab what can I do?

A

Please execute to find the backup path in Gitlab
# gitlab-rake cache:clear RAILS_ENV=production
and then check again

Q

What is GitLab?

A

GitLab is a web-based project management repository based on Git. It lets you create and manage your projects effectively.

Q

Does GitLab support groups of users?

A

GitLab does support user groups which allow you to group projects into directories and give users access to several projects at once.

Q

Does GitLab provide a way to block project creation for certain users?

A

GitLab admins can set a project limit for each user. If the limit is set to 0 the user cannot create any projects.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.