Commit 75af9a2
committed
Amazon S3 backup support
Uses amazonka-s3, which auto discovers credentials.
Did some manual testing:
```
glean --tier test --db-root ~/glean backup myrepo/0 s3:mybucket/jade-test
glean --tier test --db-root ~/glean2 restore s3:mybucket/jade-test/myrepo.0
```
Configuration ~/.config/glean/server/test, though I think this doesn't
actually matter?
```
{
"backup": {
"allowed": ["myrepo"],
"location": "s3:mybucket/jade-test"
},
"restore": {
"enabled": true
}
}
```
This feature really needs some documentation (especially given I don't
know if fb expected anyone external to immediately go and use it so it's
probably in a wiki somewhere?); I would appreciate the docs that exist
getting released, or I can maybe write some.1 parent 59789d8 commit 75af9a2
File tree
6 files changed
+511
-24
lines changed- glean
- db/backup/s3/Glean/Database/Backup
- server/Glean
- test/tests
- tools/gleancli
- website/docs
6 files changed
+511
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
666 | 670 | | |
667 | 671 | | |
668 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
669 | 697 | | |
670 | 698 | | |
671 | 699 | | |
| |||
712 | 740 | | |
713 | 741 | | |
714 | 742 | | |
| 743 | + | |
715 | 744 | | |
716 | 745 | | |
717 | 746 | | |
| |||
1138 | 1167 | | |
1139 | 1168 | | |
1140 | 1169 | | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1141 | 1174 | | |
1142 | 1175 | | |
1143 | 1176 | | |
| |||
1266 | 1299 | | |
1267 | 1300 | | |
1268 | 1301 | | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1269 | 1306 | | |
1270 | 1307 | | |
1271 | 1308 | | |
| |||
2160 | 2197 | | |
2161 | 2198 | | |
2162 | 2199 | | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
2163 | 2221 | | |
2164 | 2222 | | |
2165 | 2223 | | |
| |||
0 commit comments