From 4b6c5bee4c5ad49c9e79c0834f4fea2c2ceb0952 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 9 Sep 2026 03:14:21 -0700 Subject: [PATCH] docs(backup): document hermes backup --keep --- website/docs/reference/cli-commands.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/reference/cli-commands.md b/website/docs/reference/cli-commands.md index b5e6093e6e..d5a4bf320a 100644 --- a/website/docs/reference/cli-commands.md +++ b/website/docs/reference/cli-commands.md @@ -950,6 +950,7 @@ Create a zip archive of your Hermes configuration, skills, sessions, and data. T | `-o`, `--output ` | Output path for the zip file (default: `~/hermes-backup-.zip`). | | `-q`, `--quick` | Quick snapshot: only critical state files (config.yaml, state.db, .env, auth, cron jobs). Much faster than a full backup. | | `-l`, `--label ` | Label for the snapshot (only used with `--quick`). | +| `-k`, `--keep ` | After a full backup, delete older `hermes-backup-*.zip` files in the output directory beyond the newest N (default 3; `0` keeps everything). Custom-named zips are never touched. | The backup uses SQLite's `backup()` API for safe copying, so it works correctly even when Hermes is running (WAL-mode safe).