summaryrefslogtreecommitdiff
path: root/lib/backup/database.rb
diff options
context:
space:
mode:
authorFrederic Van Espen <fes@escaux.com>2019-03-07 09:38:14 +0100
committerFrederic Van Espen <fes@escaux.com>2019-03-07 09:38:14 +0100
commit935b69838488f13586541114e0293e5ef6d79f43 (patch)
treec0416a746cd9cf32a95aea4d1d64b9c77a463c06 /lib/backup/database.rb
parent3bb3f7ddd073e67fafbc210d0e18c76a87b96dcb (diff)
downloadgitlab-ce-935b69838488f13586541114e0293e5ef6d79f43.tar.gz
introduce optional rsyncable flag
Diffstat (limited to 'lib/backup/database.rb')
-rw-r--r--lib/backup/database.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backup/database.rb b/lib/backup/database.rb
index 8baca500546..cd8e29d14d3 100644
--- a/lib/backup/database.rb
+++ b/lib/backup/database.rb
@@ -4,6 +4,7 @@ require 'yaml'
module Backup
class Database
+ include Backup::Helper
attr_reader :progress
attr_reader :config, :db_file_name
@@ -17,7 +18,7 @@ module Backup
FileUtils.mkdir_p(File.dirname(db_file_name))
FileUtils.rm_f(db_file_name)
compress_rd, compress_wr = IO.pipe
- compress_pid = spawn(*%w(gzip --rsyncable -1 -c), in: compress_rd, out: [db_file_name, 'w', 0600])
+ compress_pid = spawn(gzip_cmd, in: compress_rd, out: [db_file_name, 'w', 0600])
compress_rd.close
dump_pid =