From 698b68a81d0616beb50bb9fafb1c454b12a64330 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 28 Aug 2014 17:04:07 +0200 Subject: [PATCH] Document how to change the backup path --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index e75a0fa..2b1d8ad 100644 --- a/README.md +++ b/README.md @@ -483,6 +483,14 @@ sudo gitlab-rake gitlab:backup:create This will store a tar file in `/var/opt/gitlab/backups`. The filename will look like `1393513186_gitlab_backup.tar`, where 1393513186 is a timestamp. +If you want to store your GitLab backups in a different directory, add the +following setting to `/etc/gitlab/gitlab.rb` and run `sudo gitlab-ctl +reconfigure`: + +```ruby +gitlab_rails['backup_path'] = '/mnt/backups' +``` + ### Scheduling a backup To schedule a cron job that backs up your repositories and GitLab metadata, use the root user: -- libgit2 0.21.2