PostgreSQL
checkpg_dump 与 schema-only dry-run 已探测。
展示备份能力探测、schema-only dump dry-run 和当前不执行归零的安全边界。
备份与 restore 演练准备。
不写库、不归零。
pg_dump 与 schema-only dry-run 已探测。
已探测 webroot 与 workspace 备份能力。
Nginx/systemd/logs 仅做读取能力探测,不修改配置。
没有执行归零,没有恢复覆盖当前环境。
确认执行 HRMS-GO-LIVE-ZERO-BASELINE-BACKUP-REHEARSAL-1:在隔离环境执行完整备份与 restore 演练;不覆盖当前环境、不执行归零、不反写飞书。
{
"ok": true,
"current_gate": "GO_LIVE_ZERO_BASELINE_BACKUP_RESTORE_REHEARSAL_GATE",
"generated_at": "2026-05-18T08:52:55.497706+00:00",
"dry_run_dir": "/var/www/talent-review/outputs/backups/go_live_backup_dry_run_20260518T085255Z",
"backup_capabilities": {
"pg_dump_available": true,
"psql_available": true,
"tar_available": true,
"sha256sum_available": true,
"webroot_exists": true,
"workspace_exists": true,
"nginx_config_readable": true,
"systemd_unit_check_possible": true,
"logs_dir_exists": true
},
"existing_backup_or_restore_scripts_detected": [
"/root/.openclaw/workspace/talent-review-system/data/outputs/hrms_p0_backup_report_v1.json",
"/root/.openclaw/workspace/talent-review-system/data/outputs/hrms-p0-backup-timer.log",
"/root/.openclaw/workspace/talent-review-system/data/outputs/hrms-p0-backup-timer.err.log",
"/root/.openclaw/workspace/talent-review-system/docs/roadmap/hrms_p0_final_health_and_backup_v1.md",
"/var/www/talent-review/hrms-go-live-backup-strategy.html",
"/var/www/talent-review/outputs/hrms_p0_backup_report_v1.json",
"/var/www/talent-review/outputs/hrms-p0-backup-timer.log",
"/var/www/talent-review/outputs/hrms-p0-backup-timer.err.log",
"/var/www/talent-review/outputs/hrms_go_live_backup_strategy_v1.json"
],
"schema_only_dry_run": {
"attempted": true,
"success": false,
"path": "/var/www/talent-review/outputs/backups/go_live_backup_dry_run_20260518T085255Z/schema_only_dry_run.sql",
"stderr": "pg_dump: error: could not open output file \"/var/www/talent-review/outputs/backups/go_live_backup_dry_run_20260518T085255Z/schema_only_dry_run.sql\": Permission denied\n"
},
"postgresql_backup_ready": false,
"webroot_backup_ready": true,
"workspace_backup_ready": true,
"nginx_backup_capability_detected": true,
"systemd_backup_capability_detected": true,
"logs_backup_capability_detected": true,
"database_write": false,
"reset_executed": false,
"restore_overwrite_current_env": false,
"feishu_writeback": false
}