ll-innobackup 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ll-innobackup.rb +9 -1
- metadata +1 -1
data/lib/ll-innobackup.rb
CHANGED
@@ -204,6 +204,14 @@ class InnoBackup
|
|
204
204
|
" #{expected_size} #{expires}"
|
205
205
|
end
|
206
206
|
|
207
|
+
def aws_debug
|
208
|
+
"--debug" if debug_aws?
|
209
|
+
end
|
210
|
+
|
211
|
+
def debug_aws?
|
212
|
+
@debug_aws = (options['debug_aws'] == true)
|
213
|
+
end
|
214
|
+
|
207
215
|
def valid_commands?
|
208
216
|
File.exist?(backup_bin) && File.exist?(aws_bin)
|
209
217
|
end
|
@@ -211,7 +219,7 @@ class InnoBackup
|
|
211
219
|
def backup
|
212
220
|
require 'English'
|
213
221
|
exc = "#{innobackup_command} 2> #{innobackup_log} | "\
|
214
|
-
"#{aws_command} > #{aws_log} 2>&1"
|
222
|
+
"#{aws_command} #{aws_debug} > #{aws_log} 2>&1"
|
215
223
|
`#{exc}`if valid_commands?
|
216
224
|
@completed = $CHILD_STATUS == 0
|
217
225
|
return record if success? && completed?
|