mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
30 lines
681 B
Ruby
30 lines
681 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 local
|
|
Gitlab::Backup::Cli::Targets::Files.new(context, storage_path, excludes: [LEGACY_PAGES_TMP_PATH])
|
|
end
|
|
|
|
def storage_path = context.pages_path
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|