pxcbackup 0.0.1 → 0.0.2
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/README.md +1 -1
- data/lib/pxcbackup/backupper.rb +2 -2
- data/lib/pxcbackup/version.rb +1 -1
- 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: 048fb039a8728b1281f0e6525e67570b4c218f51
|
|
4
|
+
data.tar.gz: d93238bcc021b538bf75c8551fc79e9631b6d976
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60ee86b267cfa743ab4ecf8bc7b792272a6fe3fbed583697cffdcc55be51087bceada6d92462342103c49fa3c11769cde53c4e72c3361215ed958b1681765f24
|
|
7
|
+
data.tar.gz: c88134fb4dc0ad0345bb860d1ccdb10bd17cfbd65e2bbe7556fc6ac68e0d4bbfdc80189cf96b857821fba02468d84faacadedbfc79380f2ecefb83088fecb1ec
|
data/README.md
CHANGED
|
@@ -18,7 +18,7 @@ PXCBackup is basically a server command line tool, which means the following con
|
|
|
18
18
|
|
|
19
19
|
* Support ruby >= 1.8.7. Yes, 1.8.7 is EOL, but many cloud provider OS images still contain 1.8.7.
|
|
20
20
|
* Have no external gem dependencies. This tool should be completely stand-alone, and only require certain command line tools.
|
|
21
|
-
* Instead, execute command line tools. For example, it uses the `mysql` and `s3cmd` instead of modules / gems.
|
|
21
|
+
* Instead, execute command line tools. For example, it uses the `mysql` and `s3cmd` tools instead of modules / gems.
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
data/lib/pxcbackup/backupper.rb
CHANGED
|
@@ -38,7 +38,7 @@ module PXCBackup
|
|
|
38
38
|
desync_wait = options[:desync_wait] || 60
|
|
39
39
|
retention = options[:retention] || 100
|
|
40
40
|
|
|
41
|
-
raise 'cannot find backup dir' unless @local_repo && File.directory?(local_repo.path)
|
|
41
|
+
raise 'cannot find backup dir' unless @local_repo && File.directory?(@local_repo.path)
|
|
42
42
|
raise 'cannot enable encryption without encryption key' if @encrypt && !@encrypt_key
|
|
43
43
|
|
|
44
44
|
arguments = [
|
|
@@ -114,7 +114,7 @@ module PXCBackup
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
if incremental_backups.any?
|
|
118
118
|
log_action " Preparing base backup (LSN #{full_backup_info[:to_lsn]})" do
|
|
119
119
|
innobackupex(['--apply-log', '--redo-only', full_backup_path.shellescape])
|
|
120
120
|
end
|
data/lib/pxcbackup/version.rb
CHANGED