Commit 5da86a7
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 e8e9d44 commit 5da86a7
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 | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
646 | 650 | | |
647 | 651 | | |
648 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
649 | 677 | | |
650 | 678 | | |
651 | 679 | | |
| |||
692 | 720 | | |
693 | 721 | | |
694 | 722 | | |
| 723 | + | |
695 | 724 | | |
696 | 725 | | |
697 | 726 | | |
| |||
1118 | 1147 | | |
1119 | 1148 | | |
1120 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1121 | 1154 | | |
1122 | 1155 | | |
1123 | 1156 | | |
| |||
1246 | 1279 | | |
1247 | 1280 | | |
1248 | 1281 | | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
1249 | 1286 | | |
1250 | 1287 | | |
1251 | 1288 | | |
| |||
2140 | 2177 | | |
2141 | 2178 | | |
2142 | 2179 | | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
2143 | 2201 | | |
2144 | 2202 | | |
2145 | 2203 | | |
| |||
0 commit comments