chore(spec): 归档 add-blog-infra——Phase 0 七任务收敛交付

- T1-T7 全部勾选,spec_verify --all 七项 exit=0 入 runs.jsonl
- check 门禁收敛;交付:备份三件套/gitea 28.2.0/Artalk 2.10.0/
  git.wait4x.online + /artalk 公网接入/发布链地基与回滚预案
- 生产 Halo 全程未动(healthy + 200 复查通过)
- 含 spec pre-commit/pre-push 门禁钩子入库

Spec: 2026-10-24_add-blog-infra

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-10-24 22:35:24 +08:00
1 parent f16b9487d3
commit 0f7c2dfe5b
8 files changed
+412 -26

No files matched your search

@@ -0,0 +1,15 @@
#!/bin/sh
# Phase 0 T1 备份验收:dump 与目录归档三件套存在、非空、结构可读
# 路径约定见 tasks.md T1;pg_restore 宿主缺失时经 postgres 容器兜底
set -e
B="$HOME/backups/blog/halo-20261024"
test -s "$B/halo_db_20261024.dump"
test -s "$B/halo2-dir-20261024.tar.gz"
if command -v pg_restore >/dev/null 2>&1; then
pg_restore --list "$B/halo_db_20261024.dump" >/dev/null
else
docker run --rm -v "$B:/b:ro" postgres:15.4 pg_restore --list /b/halo_db_20261024.dump >/dev/null
fi
N=$(tar tzf "$B/halo2-dir-20261024.tar.gz" | wc -l)
[ "$N" -gt 3000 ]
echo "backup verified: dump readable, tar entries=$N"