Commit b83cb6e
authored
feat: Add bendsave which can backup and restore databend data (#17503)
* squash commits
Signed-off-by: Xuanwo <[email protected]>
* Fix force load
Signed-off-by: Xuanwo <[email protected]>
* backup works!
Signed-off-by: Xuanwo <[email protected]>
* Fully test
Signed-off-by: Xuanwo <[email protected]>
* Fix test
Signed-off-by: Xuanwo <[email protected]>
* Fix actions
Signed-off-by: Xuanwo <[email protected]>
* Try fix ci
Signed-off-by: Xuanwo <[email protected]>
* Fix insert in epochfs
Signed-off-by: Xuanwo <[email protected]>
* allow more time
Signed-off-by: Xuanwo <[email protected]>
* Add readme
Signed-off-by: Xuanwo <[email protected]>
* fix typo
Signed-off-by: Xuanwo <[email protected]>
* Update cargo.lock
Signed-off-by: Xuanwo <[email protected]>
* remove unneeded changes
Signed-off-by: Xuanwo <[email protected]>
* Add license check to backup tool bendsave
* Replace epochfs with new backup implementation
The commit switches from using epochfs to a new direct storage-to-storage
backup implementation for bendsave, removing the checkpoint-based approach.
The main changes:
- Remove epochfs dependency and checkpoint-based backup/restore
- Add direct storage copy util function
- Update command line interface to remove checkpoint flag
- Rename storage functions for clarity
* Remove checkpoint flag from bendsave restore
* Fix typo
Signed-off-by: Xuanwo <[email protected]>
* Avoid check license while restore
Signed-off-by: Xuanwo <[email protected]>
* Init query first
Signed-off-by: Xuanwo <[email protected]>
* Fix build
Signed-off-by: Xuanwo <[email protected]>
* Fix init query
Signed-off-by: Xuanwo <[email protected]>
* Fix clippy
Signed-off-by: Xuanwo <[email protected]>
---------
Signed-off-by: Xuanwo <[email protected]>1 parent a948fba commit b83cb6e
File tree
24 files changed
+1129
-86
lines changed- .github
- actions
- build_linux
- test_sqllogic_standalone_linux_minio_with_bendsave
- workflows
- scripts/ci
- deploy
- config
- src
- bendsave
- src
- tests/fixtures
- meta/service/src/configs
- query
- config/src
- service/src
24 files changed
+1129
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
Lines changed: 93 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
144 | 160 | | |
145 | | - | |
| 161 | + | |
146 | 162 | | |
147 | 163 | | |
148 | 164 | | |
| |||
201 | 217 | | |
202 | 218 | | |
203 | 219 | | |
204 | | - | |
| 220 | + | |
205 | 221 | | |
206 | 222 | | |
207 | 223 | | |
| |||
230 | 246 | | |
231 | 247 | | |
232 | 248 | | |
233 | | - | |
| 249 | + | |
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
| |||
254 | 270 | | |
255 | 271 | | |
256 | 272 | | |
257 | | - | |
| 273 | + | |
258 | 274 | | |
259 | 275 | | |
260 | 276 | | |
| |||
0 commit comments