Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-06 15:43:19 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-06 15:43:19 +0300
commitd3734fbd89c069d35856b440f12109af8a7ef9c9 (patch)
tree1d9489c8291a577b0d0d6955cbd9c7a7c9f274e4 /lib/backup/manager.rb
parenta2af080a06b3439d37258d88ac6d6db9ef51c6a5 (diff)
Use tar for intermediate backup storage
During the backup we create an intermediate copy of two directories: builds and uploads. Instead of creating many small files with 'cp -r', we now use tar (and fast gzip) to create single intermediate files. This saves on disk IO and disk space while creating a backup.
Diffstat (limited to 'lib/backup/manager.rb')
-rw-r--r--lib/backup/manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index 5c42f25f4a2..f011fd03de0 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -150,11 +150,11 @@ module Backup
private
def backup_contents
- folders_to_backup + ["backup_information.yml"]
+ folders_to_backup + ["uploads.tar.gz", "builds.tar.gz", "backup_information.yml"]
end
def folders_to_backup
- folders = %w{repositories db uploads builds}
+ folders = %w{repositories db}
if ENV["SKIP"]
return folders.reject{ |folder| ENV["SKIP"].include?(folder) }