# Site Migration & Backup Toolkit (site-migration-toolkit) *🇨🇳 中文版在下方 | Chinese version below* Welcome to the **Site Migration & Backup Toolkit**. This repository provides the orchestrations, runbooks, and automated playbooks for managing the disaster recovery lifecycle of the AI Workspace infrastructure. ## Phase Roadmap This project is iteratively rolling out disaster recovery capabilities. Currently, we are heavily focused on **Phase 1**. ### Phase 1: Migration / Cold Backup / Offline Restore (Current) Implement only the foundation: * Ansible automated migration skeleton * File and configuration packaging * PostgreSQL dump / restore skeleton * Vault secret migration design placeholder * DNS cutover pre-check placeholder * GitHub Actions regression verification skeleton * Manual recovery fallback scripts and runbook ### Phase 2: Warm Standby / Scheduled Backup Only reserve documentation and interface placeholders for: * Scheduled backup * Incremental sync * Object storage archive * Restore drill * RPO / RTO report ### Phase 3: Hot Backup / DTS / Replication Only reserve roadmap placeholders for: * PostgreSQL streaming replication * Redis replication * DTS / CDC * Dual-write validation * Failover plan ### Phase 4: Multi-Active / DR Platform Only reserve roadmap placeholders for: * Multi-region deployment * Traffic routing * Data consistency strategy * Active-Active / Active-Passive * DR orchestration platform ### ⚠️ CI/CD Prerequisites (Important Notice) If you are running the GitHub Actions workflow (`deploy-env-migration.yaml`), please ensure that your Vault environment is correctly configured: - **Vault Role**: The required role name is `github-actions-site-migration-toolkit`. - **Role Binding**: Ensure the JWT `bound_claims` match the new repository name (`repo:ai-workspace-infra/site-migration-toolkit:ref:refs/heads/main` or similar). **Vault Role Provisioning Script**: To avoid CLI parsing issues, use the following JSON payload format to create or update the role: ```bash vault write auth/jwt/role/github-actions-site-migration-toolkit - <