Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Van Espen <fes@escaux.com>2019-03-07 11:38:14 +0300
committerFrederic Van Espen <fes@escaux.com>2019-03-07 11:38:14 +0300
commit935b69838488f13586541114e0293e5ef6d79f43 (patch)
treec0416a746cd9cf32a95aea4d1d64b9c77a463c06 /lib/backup/files.rb
parent3bb3f7ddd073e67fafbc210d0e18c76a87b96dcb (diff)
introduce optional rsyncable flag
Diffstat (limited to 'lib/backup/files.rb')
-rw-r--r--lib/backup/files.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/backup/files.rb b/lib/backup/files.rb
index 998fa5a1a92..427c65e2d91 100644
--- a/lib/backup/files.rb
+++ b/lib/backup/files.rb
@@ -31,10 +31,10 @@ module Backup
raise Backup::Error, 'Backup failed'
end
- run_pipeline!([%W(#{tar} --exclude=lost+found -C #{@backup_files_dir} -cf - .), %w(gzip --rsyncable -c -1)], out: [backup_tarball, 'w', 0600])
+ run_pipeline!([%W(#{tar} --exclude=lost+found -C #{@backup_files_dir} -cf - .), gzip_cmd], out: [backup_tarball, 'w', 0600])
FileUtils.rm_rf(@backup_files_dir)
else
- run_pipeline!([%W(#{tar} --exclude=lost+found -C #{app_files_dir} -cf - .), %w(gzip --rsyncable -c -1)], out: [backup_tarball, 'w', 0600])
+ run_pipeline!([%W(#{tar} --exclude=lost+found -C #{app_files_dir} -cf - .), gzip_cmd], out: [backup_tarball, 'w', 0600])
end
end