Declare every module's data; the backup holder measures it (hq ADR 0233)
Backup lines are derived from each module's data section instead of written by hand; the holder measures declared items, reads the array under them, and deletes a retired item only after a last restore point; the Go providers say each held consumer's size so an empty replacement is seen.
This commit is contained in:
@@ -58,6 +58,34 @@
|
||||
"binds": {
|
||||
"route": "${dir:state}/route.json"
|
||||
},
|
||||
"data": {
|
||||
"own": [
|
||||
{
|
||||
"id": "db",
|
||||
"path": "${dir:db-data}",
|
||||
"class": "valuable",
|
||||
"why": "every table; copied as live files, which may not restore \u2014 a dump is wanted"
|
||||
},
|
||||
{
|
||||
"id": "storage",
|
||||
"path": "${dir:storage}",
|
||||
"class": "valuable",
|
||||
"why": "uploaded objects"
|
||||
},
|
||||
{
|
||||
"id": "functions",
|
||||
"path": "${dir:functions}",
|
||||
"class": "valuable",
|
||||
"why": "the edge functions' code"
|
||||
},
|
||||
{
|
||||
"id": "db-config",
|
||||
"path": "${dir:db-config}",
|
||||
"class": "rebuildable",
|
||||
"why": "the database's configuration, seeded again"
|
||||
}
|
||||
]
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"id": "state",
|
||||
|
||||
Reference in New Issue
Block a user