lotus-land-story: exclude postgres from the files backup
The files phase swept the live cluster into restic every night, but a file-level copy of a running cluster cannot be restored; the pg_dumpall phase is the backup. The glob also covers the postgresql-15 path the bookworm upgrade moves to.
Assisted-by: GLM-5.3 via pi
diff --git a/lotus-land-story/templates/backup.sh b/lotus-land-story/templates/backup.sh
index 7acd6be..76ef5b0 100644
--- a/lotus-land-story/templates/backup.sh
+++ b/lotus-land-story/templates/backup.sh
@@ -95,9 +95,13 @@ ping_healthcheck /start
# which blocks every later prune. unlock only removes stale locks.
phase unlock restic unlock
+# A file-level copy of the running cluster isn't restorable; the postgres
+# phase's pg_dumpall is. The glob also covers the postgresql-15 path the
+# bookworm upgrade moves to.
phase files restic --verbose backup \
/mnt/lotus-land-story/ \
- --exclude=/mnt/lotus-land-story/docker
+ --exclude=/mnt/lotus-land-story/docker \
+ --exclude='/mnt/lotus-land-story/postgresql*'
phase postgres restic --verbose backup \
--stdin-filename lotus-land-story.sql \