pxcbackup 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pxcbackup/backupper.rb +8 -3
- data/lib/pxcbackup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40bf97811cafff8ea0faf86743477cea4382a26f
|
|
4
|
+
data.tar.gz: bc5d90ea8020f1b12f81ea02340f39ab600f7864
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 839734148c6770e0e905465ab3efc529490ec18e47ff99c3a0449ece0d9a5813a706eb9465163877126f152150c7b7d382d21aad6793e6fe86c18badb24cf341
|
|
7
|
+
data.tar.gz: 6024f687196e4cd89980a3c06e1a5d34a75a147a609535c940fef7003cc37497ca45d037b3af07f804ee185da7d78efeffe5ec45f1c686938edb322ae73cb7c9
|
data/lib/pxcbackup/backupper.rb
CHANGED
|
@@ -292,20 +292,25 @@ module PXCBackup
|
|
|
292
292
|
# --defaults-file has to be the first option passed!
|
|
293
293
|
command << " --defaults-file=#{@defaults_file.shellescape}" if @defaults_file
|
|
294
294
|
|
|
295
|
-
arguments
|
|
295
|
+
arguments.unshift(
|
|
296
296
|
"--ibbackup=#{@which.xtrabackup.shellescape}",
|
|
297
297
|
"--parallel=#{@threads}",
|
|
298
298
|
"--compress-threads=#{@threads}",
|
|
299
299
|
"--rebuild-threads #{@threads}",
|
|
300
300
|
"--use-memory=#{@memory}",
|
|
301
301
|
"--tmpdir=#{Dir.tmpdir.shellescape}",
|
|
302
|
-
|
|
302
|
+
)
|
|
303
303
|
arguments << "--throttle=#{@throttle.shellescape}" if @throttle
|
|
304
304
|
|
|
305
305
|
command << ' ' + arguments.join(' ')
|
|
306
306
|
command << " > #{output_file.shellescape}" if output_file
|
|
307
307
|
result = Command.run(command)
|
|
308
|
-
|
|
308
|
+
|
|
309
|
+
unless result[:stderr].lines.to_a.last.match(/ completed OK!$/)
|
|
310
|
+
# Uncomment next line to see what's going on
|
|
311
|
+
#puts result
|
|
312
|
+
raise 'unexpected output from innobackupex'
|
|
313
|
+
end
|
|
309
314
|
end
|
|
310
315
|
|
|
311
316
|
def read_backup_info(file)
|
data/lib/pxcbackup/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pxcbackup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robbert Klarenbeek
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Backup tool for Percona XtraDB Cluster
|
|
14
14
|
email: robbertkl@renbeek.nl
|