mem: règle backup Docker avant update + désactivation cron

This commit is contained in:
Nox
2026-02-23 11:28:20 +00:00
parent 154e4eec70
commit 0a3e73bd57
2 changed files with 21 additions and 0 deletions
+8
View File
@@ -180,6 +180,14 @@ send({ type: 'lovelace/config', url_path: 'vue-par-pieces' })
- **LXC 139** (`mini-pc`) → **Frigate** (NVR) - **LXC 139** (`mini-pc`) → **Frigate** (NVR)
- **VM 109** (`z820`) → **PBS** (Proxmox Backup Server, 192.168.1.91) - **VM 109** (`z820`) → **PBS** (Proxmox Backup Server, 192.168.1.91)
## Docker — Règles de mise à jour
- **Toujours exécuter `docker-backup.js` avant toute mise à jour d'un conteneur Docker**
- Script : `node /home/node/.openclaw/workspace/docker-backup.js <nom_conteneur>`
- Exemple : `node docker-backup.js vaultwarden` avant de puller une nouvelle image
- Services configurés : vaultwarden, vikunja, nocodb, freshrss
- Le cron hebdo a été créé mais **désactivé** à la demande de Christophe (2026-02-23)
- Réactiver si besoin : `node /app/dist/index.js cron add ...`
## Leçons apprises ## Leçons apprises
- **Toujours prendre un snapshot du LXC 145** (`mini-pc`) avant toute modification de config ou installation qui pourrait casser OpenClaw - **Toujours prendre un snapshot du LXC 145** (`mini-pc`) avant toute modification de config ou installation qui pourrait casser OpenClaw
- Commande : `curl -sk -X POST -H "Authorization: PVEAPIToken=$PVE_TOKEN" -H "Content-Type: application/json" -d '{"snapname":"<nom>","description":"<desc>"}' "$PVE_URL/api2/json/nodes/mini-pc/lxc/145/snapshot"` - Commande : `curl -sk -X POST -H "Authorization: PVEAPIToken=$PVE_TOKEN" -H "Content-Type: application/json" -d '{"snapname":"<nom>","description":"<desc>"}' "$PVE_URL/api2/json/nodes/mini-pc/lxc/145/snapshot"`
+13
View File
@@ -0,0 +1,13 @@
## Inventaire Infrastructure Complet (matin)
- Inventaire exhaustif de toute l'infra de Christophe
- 13 VMs/LXC actifs, 35 éteints, 28 docker actifs, 5 en erreur/éteints
- Page créée dans Anytype : ID `bafyreierouqsotfituqnbs2tohem7z2wq2sehz3xkf7kikl5sllcqy4yu4`
- Fichier local : `/home/node/.openclaw/workspace/infra_inventory.md`
- Notable: VM 107 "arium11" (z820, 32GB RAM) et LXC 132 "Camino2" à usage inconnu
- Docker vikunja et sync-in en état "restarting/error"
## Docker Backup
- Script créé : `docker-backup.js` — backup via Portainer exec avant chaque update Docker
- Cron créé puis supprimé (désactivé à la demande)
- Règle : utiliser le script AVANT toute mise à jour Docker