╔════════════════════════════════════════════════════════════════════╗ ║ ║ ║ 🆘 COPILOT CLI+ DISASTER RECOVERY - QUICK START ║ ║ ║ ║ Lost the host? Restore in under 5 minutes! ║ ║ ║ ╚════════════════════════════════════════════════════════════════════╝ ⚡ 3-STEP RECOVERY 1️⃣ Get bootstrap script git clone cd copilot-backup 2️⃣ Get API key from secure storage (1Password, LastPass, Vault, etc) 3️⃣ Run recovery on new system bash RECOVERY.sh "sk-your-api-key" ✅ Done! Everything is restored! ──────────────────────────────────────────────────────────────────── ⏱️ TIMING Bootstrap time: 3-5 minutes Tests time: 1-2 minutes Total: ~5 minutes ──────────────────────────────────────────────────────────────────── ✅ WHAT GETS RESTORED ✓ API Server (port 8888) ✓ DeepSeek Integration ✓ Ollama (port 11434) ✓ SSH Service ✓ Ansible Playbooks ✓ All Configurations ✓ Security Settings ✓ Systemd Services ──────────────────────────────────────────────────────────────────── 🔍 VERIFY RECOVERY curl http://localhost:8888/health # Should return: {"status":"healthy",...} systemctl status local-agent-api # Should show: active (running) copilot /mcp # Should list: local-agent ──────────────────────────────────────────────────────────────────── 🆘 TROUBLESHOOTING If API not responding: systemctl restart local-agent-api curl http://localhost:8888/health If DeepSeek fails: # Check API key is correct systemctl show local-agent-api -p Environment If MCP not connecting: cat ~/.copilot/mcp-config.json # Verify path exists ──────────────────────────────────────────────────────────────────── 📂 BACKUP STRUCTURE backup/ ├── bootstrap.sh ← Main setup script ├── RECOVERY.sh ← Auto-recovery script ├── BACKUP_METADATA.txt ← Info & timestamps ├── config/ ← Configurations ├── bin/ ← All Python scripts ├── docs/ ← Documentation └── systemd/ ← Service configs ──────────────────────────────────────────────────────────────────── 💾 BEFORE DISASTER STRIKES 1. Create backup NOW bash /opt/local-agent/backup.sh 2. Store safely - git commit & push - S3 / cloud storage - USB drive - Encrypted file 3. Test monthly On staging: bash RECOVERY.sh "sk-test-key" 4. Document - Location of bootstrap - Location of API key - Recovery contact info ──────────────────────────────────────────────────────────────────── 🎯 NEXT STEPS During normal operations: ✓ Regular backups ✓ Monthly recovery tests ✓ Updated documentation If emergency: ✓ Get bootstrap from backup ✓ Get API key from secure storage ✓ Run RECOVERY.sh ✓ Verify with curl/copilot ──────────────────────────────────────────────────────────────────── 📞 KEY FILES Start recovery: bash RECOVERY.sh Full setup: bash bootstrap.sh Create backup: bash backup.sh Full documentation: cat BOOTSTRAP_README.md Recovery guide: cat DISASTER_RECOVERY.md Detailed setup: cat COMPLETE_SETUP.md ──────────────────────────────────────────────────────────────────── 🚀 YOU'RE PROTECTED! Before: 30-40 minutes manual setup ❌ Now: ~5 minutes automated recovery ✅ That's 6-8x faster and infinitely more reliable! ──────────────────────────────────────────────────────────────────── Version: 1.0 Ready for: Complete disaster recovery Status: Production ready Last Updated: 2026-03-25 Remember: Hope for the best, prepare for the worst! 🛡️