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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45717f2570fbe1f0d28b47608a7512425f2dbc28
4
- data.tar.gz: 90b36f374671e3cf5ae6feb042b8b28a4e6f8d0a
3
+ metadata.gz: 40bf97811cafff8ea0faf86743477cea4382a26f
4
+ data.tar.gz: bc5d90ea8020f1b12f81ea02340f39ab600f7864
5
5
  SHA512:
6
- metadata.gz: 745349149036fcdee2db2e076c5e70706f5d686bf3807b1aba7c857c750538a9aeaa864c4592e71e0ad4c46c20ed6756872bbb33bc2992850b1810b9b3033869
7
- data.tar.gz: 4f4278483fc77b3c7237f2f67b5d102cc3ff648a44c4f6e0690dccbe640835c17b8dafad23f2e2ea6b5b06efcdbfd90064c569529e0a94852a505bbc0cddd402
6
+ metadata.gz: 839734148c6770e0e905465ab3efc529490ec18e47ff99c3a0449ece0d9a5813a706eb9465163877126f152150c7b7d382d21aad6793e6fe86c18badb24cf341
7
+ data.tar.gz: 6024f687196e4cd89980a3c06e1a5d34a75a147a609535c940fef7003cc37497ca45d037b3af07f804ee185da7d78efeffe5ec45f1c686938edb322ae73cb7c9
@@ -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
- raise 'unexpected output from innobackupex' unless result[:stderr].lines.to_a.last.match(/: completed OK!$/)
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)
@@ -1,3 +1,3 @@
1
1
  module PXCBackup
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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: 2017-12-13 00:00:00.000000000 Z
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