Commit 62d547b
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 31c7aa4 commit 62d547b
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 | | |
| |||
645 | 649 | | |
646 | 650 | | |
647 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
648 | 676 | | |
649 | 677 | | |
650 | 678 | | |
| |||
691 | 719 | | |
692 | 720 | | |
693 | 721 | | |
| 722 | + | |
694 | 723 | | |
695 | 724 | | |
696 | 725 | | |
| |||
1116 | 1145 | | |
1117 | 1146 | | |
1118 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1119 | 1152 | | |
1120 | 1153 | | |
1121 | 1154 | | |
| |||
1244 | 1277 | | |
1245 | 1278 | | |
1246 | 1279 | | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1247 | 1284 | | |
1248 | 1285 | | |
1249 | 1286 | | |
| |||
2131 | 2168 | | |
2132 | 2169 | | |
2133 | 2170 | | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
2134 | 2192 | | |
2135 | 2193 | | |
2136 | 2194 | | |
| |||
0 commit comments