- Notifications
You must be signed in to change notification settings - Fork28
Commit1bc1f1d

Michael Paquier
Improve backup mode management
This commit makes mandatory the presence of a full backup when doingan incremental or archive backup on an existing timeline. In this casethe process will now simply error out and not take any backup. It lookssafer to use that as a default by the way, so as user will be forcedto take a full backup once a recovery has been done.Database backup also contained the following condition when doing anincremental backup:prev_backup->tli != current.tliThis means that an incremental backup cannot be taken if there is notalready a full backup present in the same timeline. The same conditionshould also be used for archive backup but it didn't seem to be thecase...1 parent26b8870 commit1bc1f1d
3 files changed
+64
-48
lines changedLines changed: 44 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
| 85 | + | |
89 | 86 |
| |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 | 87 |
| |
101 |
| - | |
102 | 88 |
| |
103 | 89 |
| |
104 | 90 |
| |
| |||
113 | 99 |
| |
114 | 100 |
| |
115 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
116 | 117 |
| |
117 | 118 |
| |
118 | 119 |
| |
| |||
167 | 168 |
| |
168 | 169 |
| |
169 | 170 |
| |
170 |
| - | |
| 171 | + | |
171 | 172 |
| |
172 | 173 |
| |
173 | 174 |
| |
174 | 175 |
| |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
186 | 180 |
| |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
194 | 187 |
| |
195 | 188 |
| |
196 | 189 |
| |
| |||
455 | 448 |
| |
456 | 449 |
| |
457 | 450 |
| |
458 |
| - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
459 | 455 |
| |
460 | 456 |
| |
461 | 457 |
| |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
462 | 468 |
| |
463 | 469 |
| |
464 | 470 |
| |
465 | 471 |
| |
466 |
| - | |
| 472 | + | |
467 | 473 |
| |
468 | 474 |
| |
469 | 475 |
| |
| |||
587 | 593 |
| |
588 | 594 |
| |
589 | 595 |
| |
590 |
| - | |
| 596 | + | |
| 597 | + | |
591 | 598 |
| |
592 | 599 |
| |
593 | 600 |
| |
|
Lines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
247 |
| - | |
| 247 | + | |
248 | 248 |
| |
249 | 249 |
| |
250 | 250 |
| |
| |||
256 | 256 |
| |
257 | 257 |
| |
258 | 258 |
| |
259 |
| - | |
| 259 | + | |
260 | 260 |
| |
261 | 261 |
| |
| 262 | + | |
262 | 263 |
| |
263 | 264 |
| |
264 | 265 |
| |
| |||
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
271 |
| - | |
| 272 | + | |
| 273 | + | |
272 | 274 |
| |
273 | 275 |
| |
274 |
| - | |
| 276 | + | |
275 | 277 |
| |
276 | 278 |
| |
277 | 279 |
| |
| |||
282 | 284 |
| |
283 | 285 |
| |
284 | 286 |
| |
285 |
| - | |
| 287 | + | |
| 288 | + | |
286 | 289 |
| |
287 | 290 |
| |
288 | 291 |
| |
289 | 292 |
| |
290 | 293 |
| |
291 | 294 |
| |
292 | 295 |
| |
293 |
| - | |
| 296 | + | |
| 297 | + | |
294 | 298 |
| |
295 | 299 |
| |
296 |
| - | |
| 300 | + | |
297 | 301 |
| |
298 | 302 |
| |
299 | 303 |
| |
| |||
304 | 308 |
| |
305 | 309 |
| |
306 | 310 |
| |
307 |
| - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
308 | 314 |
| |
309 | 315 |
| |
310 | 316 |
| |
|
Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
268 |
| - | |
269 |
| - | |
270 |
| - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 |
| |
272 | 275 |
| |
273 | 276 |
| |
|
0 commit comments
Comments
(0)