Created
January 9, 2014 15:42
-
-
Save maoueh/8336174 to your computer and use it in GitHub Desktop.
Patch to avoid making a backup of all repositories in gitlab when performing the backup operation. Applied to version `6.3.1` of Gitlab (exact commit `09c6f663e97a`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1ca587494508103e72c7cea688a9ce163b539d16 Mon Sep 17 00:00:00 2001 | |
From: Matthieu Vachon <matthieu.o.vachon@gmail.com> | |
Date: Sun, 29 Dec 2013 19:59:00 -0500 | |
Subject: [PATCH] Removed repositories backup code | |
--- | |
lib/backup/manager.rb | 2 +- | |
lib/tasks/gitlab/backup.rake | 4 ++-- | |
2 files changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb | |
index efaefa4..06256ec 100644 | |
--- a/lib/backup/manager.rb | |
+++ b/lib/backup/manager.rb | |
@@ -1,6 +1,6 @@ | |
module Backup | |
class Manager | |
- BACKUP_CONTENTS = %w{repositories/ db/ uploads/ backup_information.yml} | |
+ BACKUP_CONTENTS = %w{db/ uploads/ backup_information.yml} | |
def pack | |
# saving additional informations | |
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake | |
index 2eff126..43bac45 100644 | |
--- a/lib/tasks/gitlab/backup.rake | |
+++ b/lib/tasks/gitlab/backup.rake | |
@@ -8,7 +8,7 @@ namespace :gitlab do | |
warn_user_is_not_gitlab | |
Rake::Task["gitlab:backup:db:create"].invoke | |
- Rake::Task["gitlab:backup:repo:create"].invoke | |
+ #Rake::Task["gitlab:backup:repo:create"].invoke | |
Rake::Task["gitlab:backup:uploads:create"].invoke | |
backup = Backup::Manager.new | |
@@ -26,7 +26,7 @@ namespace :gitlab do | |
backup.unpack | |
Rake::Task["gitlab:backup:db:restore"].invoke | |
- Rake::Task["gitlab:backup:repo:restore"].invoke | |
+ #Rake::Task["gitlab:backup:repo:restore"].invoke | |
Rake::Task["gitlab:backup:uploads:restore"].invoke | |
Rake::Task["gitlab:shell:setup"].invoke | |
-- | |
1.8.3.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment