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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/backupper/adapters/mydumper.rb +1 -1
- data/lib/backupper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f15d81a84eb8564cec20d6b92d02a06e3b07c90162e5f8a8b3cc8df9c61096c
|
|
4
|
+
data.tar.gz: aa80446d9ca4fbafb928a7abf1dcc6b0be705181c1b784397179cc6fed00d3e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83244d357173ac7960301112881e20a76a7efee7df5c4976540b0f355f2bd5c1b30e7f2d7814b100bb8f2494602875660d158777e0b5800821e31f708ed3ed3c
|
|
7
|
+
data.tar.gz: b35947326eb7e1ebf39af12af974402367e9aaaac97f55a76889129f2d12004c265925e70efd785e98d29eb8d9d97bd857caf780e2d8efc8682425d3c53eacdf
|
data/Gemfile.lock
CHANGED
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
|
|
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
|
data/lib/backupper/version.rb
CHANGED