blob: a6b49f2d7e42ea0d974b68269620a90648b27036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# frozen_string_literal: true
module Backup
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'
def target
excludes = [LEGACY_PAGES_TMP_PATH]
::Backup::Targets::Files.new(progress, app_files_dir, options: options, excludes: excludes)
end
private
def app_files_dir
Gitlab.config.pages.path
end
end
end
end
|