Files
gitlab-foss/lib/backup/tasks/registry.rb
2024-03-06 18:10:52 +00:00

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