restic: judge the night by its health tool again beside an awake process, and keep each item's last good night as its own state good (issue 1955, ADR 0571)

This commit is contained in:
2026-10-29 23:46:57 +01:00
parent 9d0ebe556e
commit b1fa4855e6
5 changed files with 146 additions and 3 deletions
+29
View File
@@ -138,6 +138,32 @@
"MESH_BACKUP_STATE": "${dir:state}",
"MESH_BACKUP_DATA": "${dir:state}/data.conf"
},
"health": {
"kind": "tool",
"tool": "backup_health",
"interval": "60s",
"timeout": "20s",
"looks": 2,
"grace": "60s"
}
},
{
"id": "awake",
"type": "process",
"name": "restic-awake",
"artifact": "tools",
"run": [
"./restic-backups",
"awake"
],
"user": "${machine:account}",
"env": {
"MESH_BACKUP_DECLARED": "${dir:state}/backups.conf",
"MESH_BACKUP_REPOSITORY": "${dir:repository}",
"MESH_BACKUP_PASSWORD_FILE": "${dir:state}/repository.secret",
"MESH_BACKUP_STATE": "${dir:state}",
"MESH_BACKUP_DATA": "${dir:state}/data.conf"
},
"health": {
"kind": "unit"
}
@@ -172,5 +198,8 @@
},
"reads": [
"disk-load.readings"
],
"state": [
"good"
]
}