diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 17:17:57 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 17:25:38 -0500 |
commit | 143cd58c398b693db1b9d02f7267db39a8acb87c (patch) | |
tree | e6bd78a86ea12ac6e9db6bca15d154a9ed87b63e /lib/backup | |
parent | 89644edc4e2a9447cc31d4f966c163316dff95fa (diff) | |
download | gitlab-ce-143cd58c398b693db1b9d02f7267db39a8acb87c.tar.gz |
Added backup of container registry
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/manager.rb | 2 | ||||
-rw-r--r-- | lib/backup/registry.rb | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 4962f5e53ce..7d0608f09da 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -157,7 +157,7 @@ module Backup end def archives_to_backup - %w{uploads builds artifacts lfs}.map{ |name| (name + ".tar.gz") unless skipped?(name) }.compact + %w{uploads builds artifacts lfs registry}.map{ |name| (name + ".tar.gz") unless skipped?(name) }.compact end def folders_to_backup diff --git a/lib/backup/registry.rb b/lib/backup/registry.rb new file mode 100644 index 00000000000..67fe0231087 --- /dev/null +++ b/lib/backup/registry.rb @@ -0,0 +1,13 @@ +require 'backup/files' + +module Backup + class Registry < Files + def initialize + super('registry', Settings.registry.path) + end + + def create_files_dir + Dir.mkdir(app_files_dir, 0700) + end + end +end |