mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
26 lines
489 B
Ruby
26 lines
489 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Backup
|
|
module Tasks
|
|
class Registry < Task
|
|
def self.id = 'registry'
|
|
|
|
def enabled = Gitlab.config.registry.enabled
|
|
|
|
def human_name = _('container registry images')
|
|
|
|
def destination_path = 'registry.tar.gz'
|
|
|
|
private
|
|
|
|
def target
|
|
@target ||= ::Backup::Targets::Files.new(progress, storage_path, options: options)
|
|
end
|
|
|
|
def storage_path
|
|
Settings.registry.path
|
|
end
|
|
end
|
|
end
|
|
end
|