Commit 6d746c9
committed
Fix --target Option Detection for Restores
A regex is now used to determine whether or not a "--target" flag
already exists in the options provided for a pgBackRest restore.
This avoids conflicts with other options containing the string "target"
(e.g. "--target-action"), therefore ensuring the PITR target is
properly injected into the pgBackRest options as needed.
Issue: [ch9162]1 parent ba2b53e commit 6d746c9
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | | - | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
0 commit comments