mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
24 lines
469 B
Ruby
24 lines
469 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Backup
|
|
module Tasks
|
|
class Uploads < Task
|
|
def self.id = 'uploads'
|
|
|
|
def human_name = _('uploads')
|
|
|
|
def destination_path = 'uploads.tar.gz'
|
|
|
|
private
|
|
|
|
def target
|
|
@target ||= ::Backup::Targets::Files.new(progress, storage_path, options: options, excludes: ['tmp'])
|
|
end
|
|
|
|
def storage_path
|
|
File.join(Gitlab.config.uploads.storage_path, 'uploads')
|
|
end
|
|
end
|
|
end
|
|
end
|