backupper 0.7.0 → 0.7.1

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
  SHA256:
3
- metadata.gz: 6bcd9c73d5e46de14f981d0fc742f5142c9f66d5c4553ebe19face5c98d95626
4
- data.tar.gz: '0708bc10f83d92061a9c16febaf56319b5bba9eed397529f7ce0bc00ec1e7bcc'
3
+ metadata.gz: 9f15d81a84eb8564cec20d6b92d02a06e3b07c90162e5f8a8b3cc8df9c61096c
4
+ data.tar.gz: aa80446d9ca4fbafb928a7abf1dcc6b0be705181c1b784397179cc6fed00d3e0
5
5
  SHA512:
6
- metadata.gz: 77c91c30b33c1ea38a07537027e021f6be9ecd91878858701caaf452321d1a8244551360327f6e80d412996833cf69402021eb5d07b693fb6af4f1ed3491b79f
7
- data.tar.gz: c56d8476dd7b7eea3f4fcc307a1311020630b132a564159759d763d0ea8b3ac180c2582c9c7f808a424ff6e32c57436974fa79eca1d2e8a4588adb24eca0d516
6
+ metadata.gz: 83244d357173ac7960301112881e20a76a7efee7df5c4976540b0f355f2bd5c1b30e7f2d7814b100bb8f2494602875660d158777e0b5800821e31f708ed3ed3c
7
+ data.tar.gz: b35947326eb7e1ebf39af12af974402367e9aaaac97f55a76889129f2d12004c265925e70efd785e98d29eb8d9d97bd857caf780e2d8efc8682425d3c53eacdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- backupper (0.7.0)
4
+ backupper (0.7.1)
5
5
  mail (~> 2.9)
6
6
  sshkit (~> 1.25)
7
7
 
data/README.md CHANGED
@@ -99,7 +99,7 @@ Inside `command` you never deal with shell escaping: every accessor already retu
99
99
 
100
100
  `command` must return a single command string (it is run with `set -o pipefail`, so chaining with `|` and `&&` is fine) and must write the dump to `outfile`. `working_dir` is created before the command runs; both `working_dir` and `outfile` are removed from the server after the download. If two adapters register the same name, the last one loaded wins, so a custom adapter can also replace a built-in one.
101
101
 
102
- ⚠️ Upgrading from 0.6: custom adapters written as `DumpCommand` module methods no longer work; port each method to a `Backupper::Adapter` subclass as shown above. Also, `mydumper` archives now store the dump under its full remote path (`tmp/<key>__<database>/...`) instead of a top-level `<key>__<database>/` directory.
102
+ ⚠️ Upgrading from 0.6: custom adapters written as `DumpCommand` module methods no longer work; port each method to a `Backupper::Adapter` subclass as shown above. Also, `mydumper` archives no longer contain a top-level `<key>__<database>/` directory: the dump files are at the root of the tar, so extract into a dedicated directory (`tar -xf backup.tar -C restore-dir`).
103
103
 
104
104
  ## Contributing
105
105
 
@@ -12,7 +12,7 @@ class Backupper
12
12
  params << "--user #{username}"
13
13
  params << "--password #{password}" if password
14
14
  params << dump_options if dump_options
15
- return "mydumper --database #{database} #{params.join(' ')} --outputdir #{working_dir} && tar -cf #{outfile} #{working_dir}"
15
+ return "mydumper --database #{database} #{params.join(' ')} --outputdir #{working_dir} && tar -cf #{outfile} -C #{working_dir} ."
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  class Backupper
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz