First Init
Deploy to Production / Build & Verify (push) Failing after 5m56s
Ping Search Engines / Notify Search Engines (push) Successful in 2s
Deploy to Production / Pre-Deploy Tests (push) Has been skipped
Deploy to Production / Deploy to Railway (push) Has been skipped
Deploy to Production / Deploy to Render (push) Has been skipped
Deploy to Production / Deploy to VPS (PM2) (push) Has been skipped
Deploy to Production / Deploy to Fly.io (push) Has been skipped
Deploy to Production / Post-Deploy Verification (push) Has been skipped
Deploy to Production / Notify on Failure (push) Successful in 2s
E2E Test Suite / Critical User Journeys (push) Has been skipped
E2E Test Suite / API Integration Tests (push) Has been skipped
E2E Test Suite / Smoke Tests (P0) (push) Failing after 11m26s
E2E Test Suite / Form Interaction Tests (push) Failing after 11m42s
E2E Test Suite / Destructive & Chaos Tests (push) Failing after 12m2s
E2E Test Suite / Cross-Browser Regression (chromium) (push) Failing after 16m14s
E2E Test Suite / Cross-Browser Regression (webkit) (push) Failing after 17m45s
E2E Test Suite / Cross-Browser Regression (firefox) (push) Failing after 25m23s
E2E Test Suite / Security Header Tests (push) Failing after 7m55s
E2E Test Suite / Test Report Summary (push) Failing after 20s
E2E Test Suite / Mobile Device Tests (push) Failing after 2h49m9s
Uptime Monitor / Health & Response Time (push) Failing after 2s
Uptime Monitor / SSL Certificate (push) Successful in 2s
Uptime Monitor / Send Alerts (push) Failing after 3s
Uptime Monitor / Record Uptime Success (push) Has been skipped
Deploy to Production / Build & Verify (push) Failing after 5m56s
Ping Search Engines / Notify Search Engines (push) Successful in 2s
Deploy to Production / Pre-Deploy Tests (push) Has been skipped
Deploy to Production / Deploy to Railway (push) Has been skipped
Deploy to Production / Deploy to Render (push) Has been skipped
Deploy to Production / Deploy to VPS (PM2) (push) Has been skipped
Deploy to Production / Deploy to Fly.io (push) Has been skipped
Deploy to Production / Post-Deploy Verification (push) Has been skipped
Deploy to Production / Notify on Failure (push) Successful in 2s
E2E Test Suite / Critical User Journeys (push) Has been skipped
E2E Test Suite / API Integration Tests (push) Has been skipped
E2E Test Suite / Smoke Tests (P0) (push) Failing after 11m26s
E2E Test Suite / Form Interaction Tests (push) Failing after 11m42s
E2E Test Suite / Destructive & Chaos Tests (push) Failing after 12m2s
E2E Test Suite / Cross-Browser Regression (chromium) (push) Failing after 16m14s
E2E Test Suite / Cross-Browser Regression (webkit) (push) Failing after 17m45s
E2E Test Suite / Cross-Browser Regression (firefox) (push) Failing after 25m23s
E2E Test Suite / Security Header Tests (push) Failing after 7m55s
E2E Test Suite / Test Report Summary (push) Failing after 20s
E2E Test Suite / Mobile Device Tests (push) Failing after 2h49m9s
Uptime Monitor / Health & Response Time (push) Failing after 2s
Uptime Monitor / SSL Certificate (push) Successful in 2s
Uptime Monitor / Send Alerts (push) Failing after 3s
Uptime Monitor / Record Uptime Success (push) Has been skipped
This commit is contained in:
@@ -0,0 +1,186 @@
|
||||
# Backup System - Quick Reference Card
|
||||
|
||||
## 🚀 Quick Commands
|
||||
|
||||
```bash
|
||||
# Setup (first time only)
|
||||
bash scripts/backup/setup.sh
|
||||
|
||||
# Daily operations
|
||||
npm run backup:full # Full backup
|
||||
npm run backup:content # Content only (quick)
|
||||
npm run backup:verify # Check health
|
||||
|
||||
# Emergency
|
||||
npm run backup:list # Show all backups
|
||||
npm run backup:restore # Restore (interactive)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📁 Directory Structure
|
||||
|
||||
```
|
||||
backups/
|
||||
├── daily/ # Last 7 days
|
||||
├── weekly/ # Last 4 weeks
|
||||
├── monthly/ # Last 3 months
|
||||
├── pre-deploy/ # Last 10 deployments
|
||||
├── incremental/ # Last 72 hours
|
||||
└── safety/ # Pre-restore backups (30 days)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ⏰ Automated Schedule
|
||||
|
||||
| When | What | Retention |
|
||||
|------|------|-----------|
|
||||
| **Daily 2:00 AM** | Full backup | 7 days |
|
||||
| **Every 6 hours** | Incremental (content) | 72 hours |
|
||||
| **Sunday 3:00 AM** | Cleanup old backups | Auto |
|
||||
| **Daily 9:00 AM** | Verify backup health | N/A |
|
||||
|
||||
---
|
||||
|
||||
## 🔧 Setup Automation
|
||||
|
||||
### Linux/macOS
|
||||
```bash
|
||||
crontab -e
|
||||
# See scripts/backup/cron.example for template
|
||||
```
|
||||
|
||||
### Windows
|
||||
```powershell
|
||||
# Run as Administrator
|
||||
.\scripts\backup\windows-tasks.ps1
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🆘 Emergency Restore
|
||||
|
||||
```bash
|
||||
# 1. List backups
|
||||
npm run backup:list
|
||||
|
||||
# 2. Restore from specific backup
|
||||
npm run backup:restore backups/daily/full-backup-2026-03-21.tar.gz
|
||||
|
||||
# 3. Verify and rebuild
|
||||
npm install
|
||||
npm run build
|
||||
npm run test
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ✅ Health Check
|
||||
|
||||
```bash
|
||||
# Quick status
|
||||
npm run backup:verify
|
||||
|
||||
# Check what's in a backup
|
||||
tar -tzf backups/daily/latest-full.tar.gz | less
|
||||
|
||||
# Check backup age
|
||||
ls -lht backups/daily/
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📋 Pre-Deployment Checklist
|
||||
|
||||
- [ ] Run config backup: `npm run backup:config`
|
||||
- [ ] Verify backup created: `ls -lht backups/pre-deploy/`
|
||||
- [ ] Note backup location for potential rollback
|
||||
- [ ] Proceed with deployment
|
||||
|
||||
---
|
||||
|
||||
## 🔐 What Gets Backed Up
|
||||
|
||||
✅ **Included:**
|
||||
- `src/` - All source code
|
||||
- `public/` - Public assets
|
||||
- `src/content/` - Blog posts, content
|
||||
- Config files (astro, tailwind, etc.)
|
||||
- `.env` - Environment variables
|
||||
- `package.json` - Dependencies
|
||||
|
||||
❌ **Excluded:**
|
||||
- `node_modules/` - Reinstallable
|
||||
- `dist/` - Build artifacts
|
||||
- `.astro/` - Build cache
|
||||
- `test-results/` - Test outputs
|
||||
- `.git/` - Version control
|
||||
|
||||
---
|
||||
|
||||
## 🚨 Alert Thresholds
|
||||
|
||||
| Condition | Action |
|
||||
|-----------|--------|
|
||||
| Latest backup > 24h | ⚠️ Warning |
|
||||
| Latest backup > 48h | 🚨 Critical |
|
||||
| Corrupted backup | 🚨 Critical |
|
||||
| Storage > 80% | ⚠️ Cleanup needed |
|
||||
| Storage > 5GB | ⚠️ Review retention |
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Troubleshooting
|
||||
|
||||
### Backup fails
|
||||
```bash
|
||||
df -h # Check disk space
|
||||
ls -la backups/ # Check permissions
|
||||
npm run backup:verify # Verify system
|
||||
```
|
||||
|
||||
### Restore fails
|
||||
```bash
|
||||
tar -tzf backup.tar.gz # Verify integrity
|
||||
npm run backup:verify backup.tar.gz
|
||||
```
|
||||
|
||||
### Missing files after restore
|
||||
```bash
|
||||
tar -tzf backup.tar.gz | grep "filename"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📞 Emergency Contacts
|
||||
|
||||
| Issue | Contact |
|
||||
|-------|---------|
|
||||
| Backup system failure | DevOps Lead |
|
||||
| Cannot restore | Tech Lead |
|
||||
| Disk space full | Platform Admin |
|
||||
| Corrupted backup | DevOps Lead |
|
||||
|
||||
---
|
||||
|
||||
## 📚 Documentation
|
||||
|
||||
- **Full strategy:** `.agents/devops-engineer/BACKUP_STRATEGY.md`
|
||||
- **Scripts README:** `scripts/backup/README.md`
|
||||
- **Deployment:** `DEPLOYMENT.md`
|
||||
|
||||
---
|
||||
|
||||
## 💡 Best Practices
|
||||
|
||||
1. ✅ **Test restores monthly** - Verify backups work
|
||||
2. ✅ **Always backup before deployment** - Safety first
|
||||
3. ✅ **Monitor backup health** - Check verification output
|
||||
4. ✅ **Keep multiple backup types** - Redundancy
|
||||
5. ✅ **Secure environment files** - Encrypt if needed
|
||||
|
||||
---
|
||||
|
||||
**Last Updated:** 2026-03-21
|
||||
**Version:** 1.0
|
||||
Reference in New Issue
Block a user