ll-innobackup 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. data/lib/ll-innobackup.rb +8 -2
  2. metadata +1 -1
data/lib/ll-innobackup.rb CHANGED
@@ -155,7 +155,11 @@ class InnoBackup
155
155
  end
156
156
 
157
157
  def expected_full_size
158
- @expected_full_size = options['expected_full_size'] ||= 1_600_000_000
158
+ @expected_full_size = options['expected_full_size'] ||= 15_000_000_000
159
+ end
160
+
161
+ def expected_incremental_size
162
+ @expected_incremental_size = options['expected_incremental_size'] ||= 5_000_000_000
159
163
  end
160
164
 
161
165
  def sql_authentication
@@ -191,7 +195,9 @@ class InnoBackup
191
195
  end
192
196
 
193
197
  def expected_size
194
- "--expected-size=#{expected_full_size}" if expected_full_size.to_i > 0
198
+ es = backup_type == 'full' ? expected_full_size : expected_incremental_size
199
+
200
+ "--expected-size=#{es}" if es.to_i > 0
195
201
  end
196
202
 
197
203
  def aws_command
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ll-innobackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: