ll-innobackup 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ll-innobackup.rb +8 -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'] ||=
|
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
|
-
|
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
|