Files
gitlabhq/lib/backup/tasks/packages.rb
2024-02-21 21:10:02 +00:00

26 lines
464 B
Ruby

# frozen_string_literal: true
module Backup
module Tasks
class Packages < Task
def self.id = 'packages'
def human_name = _('packages')
def destination_path = 'packages.tar.gz'
def target
excludes = ['tmp']
::Backup::Targets::Files.new(progress, storage_path, options: options, excludes: excludes)
end
private
def storage_path
Settings.packages.storage_path
end
end
end
end