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:
Diffstat (limited to 'lib/backup/manager.rb')
-rw-r--r--lib/backup/manager.rb17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb
index b5e1634004a..d56f852b23c 100644
--- a/lib/backup/manager.rb
+++ b/lib/backup/manager.rb
@@ -12,7 +12,8 @@ module Backup
LIST_ENVS = {
skipped: 'SKIP',
repositories_storages: 'REPOSITORIES_STORAGES',
- repositories_paths: 'REPOSITORIES_PATHS'
+ repositories_paths: 'REPOSITORIES_PATHS',
+ skip_repositories_paths: 'SKIP_REPOSITORIES_PATHS'
}.freeze
YAML_PERMITTED_CLASSES = [
@@ -176,6 +177,11 @@ module Backup
human_name: _('packages'),
destination_path: 'packages.tar.gz',
task: build_files_task(Settings.packages.storage_path, excludes: ['tmp'])
+ ),
+ 'ci_secure_files' => TaskDefinition.new(
+ human_name: _('ci secure files'),
+ destination_path: 'ci_secure_files.tar.gz',
+ task: build_files_task(Settings.ci_secure_files.storage_path, excludes: ['tmp'])
)
}.freeze
end
@@ -194,7 +200,8 @@ module Backup
Repositories.new(progress,
strategy: strategy,
storages: list_env(:repositories_storages),
- paths: list_env(:repositories_paths)
+ paths: list_env(:repositories_paths),
+ skip_paths: list_env(:skip_repositories_paths)
)
end
@@ -278,7 +285,8 @@ module Backup
installation_type: Gitlab::INSTALLATION_TYPE,
skipped: ENV['SKIP'],
repositories_storages: ENV['REPOSITORIES_STORAGES'],
- repositories_paths: ENV['REPOSITORIES_PATHS']
+ repositories_paths: ENV['REPOSITORIES_PATHS'],
+ skip_repositories_paths: ENV['SKIP_REPOSITORIES_PATHS']
}
end
@@ -292,7 +300,8 @@ module Backup
installation_type: Gitlab::INSTALLATION_TYPE,
skipped: list_env(:skipped).join(','),
repositories_storages: list_env(:repositories_storages).join(','),
- repositories_paths: list_env(:repositories_paths).join(',')
+ repositories_paths: list_env(:repositories_paths).join(','),
+ skip_repositories_paths: list_env(:skip_repositories_paths).join(',')
)
end