From 102b9afe1dd7b0861b27482a2440762986d9d776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 28 Oct 2026 14:08:12 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20back=20up=20now=20from=20th?= =?UTF-8?q?e=20admin=20page=20while=20the=20server=20runs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++ crates/in-web/src/backup.rs | 60 +++++++++++++++++++- crates/in-web/src/boot.rs | 4 +- crates/in-web/src/i18n/admin.rs | 47 +++++++++++++++- crates/in-web/src/pages/admin.rs | 95 ++++++++++++++++++++++++++++++-- crates/in-web/src/state.rs | 3 + docs/architecture.md | 5 +- 7 files changed, 206 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c01e780..e951783 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,10 @@ directory, which you add to `ReadWritePaths`. With `[backup]` set, `in serve` writes a backup set every `interval_hours`, keeps the newest `keep` sets, and pings `healthcheck_url` after each good run (a failed ping is logged and nothing else). +While the server runs, the *Backups* section of `/admin` has a *Back up now* button that starts a run at once. It is +for administrators only and needs the form's CSRF token. At most one run is pending or running: a press made meanwhile +starts nothing. The press is written to the audit log (`backup.requested`). Without `[backup]` the button is refused. + A set is a directory `set-