backup-agent 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/backup-agent.gemspec +1 -1
- data/lib/backup-agent/performer.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 097cb7442ca1df2a35da304073f1f8eb27a1fc4b
|
4
|
+
data.tar.gz: b4f5c9696a060679a9791fc7ae0925b4b998833a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2554db02299bc6cc2bf813e8cf1e4b0bf49901860d01f52667e6b173787fd8ef3e376043688977add913e2796ec12e1ad217f76c33119084864190d533ffad
|
7
|
+
data.tar.gz: bbf52beb7a833e7fe33d47778f6fc84d6b3cf70a6fad797e6727364176e627ab9a5ef8fc1ff07563d081db72fa6bc9c6d673c5e0a7ef420d4920812377094585
|
data/backup-agent.gemspec
CHANGED
@@ -42,7 +42,7 @@ module Backup
|
|
42
42
|
FileUtils.mkdir_p(files_tmp_path)
|
43
43
|
FileUtils.cp(files.select { |el| File.exists?(el) }, files_tmp_path)
|
44
44
|
|
45
|
-
cmd = "cd #{files_tmp_path} && /usr/bin/env XZ_OPT=-
|
45
|
+
cmd = "cd #{files_tmp_path} && /usr/bin/env XZ_OPT=-3 tar -cJvf #{tmp_path}/#{file_bunch_param} ."
|
46
46
|
system(cmd)
|
47
47
|
|
48
48
|
storage.upload("#{@timestamp}/#{file_bunch_name}", "#{tmp_path}/#{file_bunch_name}")
|
@@ -58,7 +58,7 @@ module Backup
|
|
58
58
|
dump_cmd = "mysqldump #{config.get(:mysql_connect)} #{config.get(:mysqldump_options).join(' ')} --databases #{db}"
|
59
59
|
|
60
60
|
exec with_env("#{dump_cmd} > #{dump_path}")
|
61
|
-
exec with_env("xz --compress
|
61
|
+
exec with_env("xz --compress -9 --keep --threads=0 --verbose #{dump_path}")
|
62
62
|
|
63
63
|
storage.upload("#{@timestamp}/#{ shell_escape(db) }.sql.xz", "#{dump_path}.xz")
|
64
64
|
end
|