Files
gitlab-foss/gems/gitlab-backup-cli/lib/gitlab/backup/cli/tasks/pages.rb
2024-08-06 15:07:35 +00:00

32 lines
738 B
Ruby

# frozen_string_literal: true
module Gitlab
module Backup
module Cli
module Tasks
class Pages < Task
# pages used to deploy tmp files to this path
# if some of these files are still there, we don't need them in the backup
LEGACY_PAGES_TMP_PATH = '@pages.tmp'
def self.id = 'pages'
def human_name = _('pages')
def destination_path = 'pages.tar.gz'
private
def target
check_object_storage(
::Backup::Targets::Files.new(nil, storage_path, options: options, excludes: [LEGACY_PAGES_TMP_PATH])
)
end
def storage_path = context.pages_path
end
end
end
end
end