From 8e06d05cf4b88b3477ee315985dae99a06636254 Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Tue, 10 Nov 2026 09:39:12 +0100 Subject: [PATCH] Roadmap 1.2.0: restore only the database from a restore point, with occ --- PLAN.md | 11 +++++++++++ README.md | 3 +++ 2 files changed, 14 insertions(+) diff --git a/PLAN.md b/PLAN.md index cf31fa6..5e0f101 100644 --- a/PLAN.md +++ b/PLAN.md @@ -638,6 +638,17 @@ in README "Known limitations": to hear how NG Backup works for you ... Share your experience" in de beheerpagina blijft tot dan staan. Er komt weinig feedback bij zo'n 150 downloads per versie; geen bericht is goed bericht. Het formulier (`experience.yml`) in de issues blijft. + 10. **Alleen de database terughalen, CLI-only** (besluit 2026-11-10). Aanleiding: op nc01 liep + de automatische AIO-update 34 → 35 vast op een migratie van de (uitgeschakelde) app + files_archive; AIO had alle apps uitgezet en hun status alleen in het geheugen bewaard, dus + wat aan stond (en voor welke groepen) was weg. Uit de database in het restorepunt van 02:45 + is `oc_appconfig` (rijen `enabled`) met een eenmalig script gelezen. Te bouwen: + `occ backup:restore:db ` met `--tables=` (één of meer tabellen) en + `--to-directory=DIR` (per tabel een leesbaar bestand, zonder iets aan de database te doen), + of zonder `--to-directory` de gekozen tabellen terugzetten in de draaiende instantie, in + onderhoudsmodus, met dezelfde controles als `restore:full` (schema, eigen ngb-rijen blijven). + Eventueel `--where` voor alleen sommige rijen (zoals `configkey = 'enabled'`). Geen web-UI: + daar kan een beheerder weinig mee. - **Bevindingen DR-test op PVE02 (2026-10-17, snapshot van nc01, 1 TB, AIO → gewone NC 34 met PostgreSQL 18)** — voor **1.0.0-rc.2**: 1. Tabellen van apps die bij de backup **niet aanstonden** (restanten: Deck, ONLYOFFICE, diff --git a/README.md b/README.md index b2a1699..75f795f 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,9 @@ a 👍 on its issue helps decide what comes first. **1.2.0** - Faster backups over a long line: several uploads at the same time, with a setting (2 by default) to suit the server and the size of the backup. +- Only the database from a restore point, with `occ` (no web interface): export one or more + tables to a local directory to look something up, or put chosen tables back into the running + instance in maintenance mode. For example the app settings after an update that went wrong. **Later** - A full restore onto the existing installation, without first installing a fresh Nextcloud, in a