Files
Clintchiz d402256547
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
First Init
2026-03-21 16:46:46 +05:30

2.5 KiB

Backup Scripts

Automated backup system for WorkRoot website.

Quick Start

# First-time setup
mkdir -p backups/{daily,weekly,monthly,pre-deploy,incremental,safety}

# Create your first backup
npm run backup:full

# Verify it worked
npm run backup:verify

Available Commands

Command Description
npm run backup:full Full backup of all critical files
npm run backup:content Quick backup of content only
npm run backup:config Backup configs and env files
npm run backup:verify Check backup health and integrity
npm run backup:list List all available backups
npm run backup:restore Restore from backup (interactive)
npm run backup:cleanup Remove old backups per retention policy

Automation Setup

Linux/macOS (cron)

# Edit crontab
crontab -e

# Daily backup at 2 AM
0 2 * * * cd /path/to/project && npm run backup:full

# Cleanup weekly on Sunday at 3 AM
0 3 * * 0 cd /path/to/project && npm run backup:cleanup

Windows (Task Scheduler)

# Daily backup
schtasks /create /tn "WorkRoot-DailyBackup" /tr "npm run backup:full" /sc daily /st 02:00

# Weekly cleanup
schtasks /create /tn "WorkRoot-CleanupBackup" /tr "npm run backup:cleanup" /sc weekly /d SUN /st 03:00

Restore Examples

# List available backups
npm run backup:list

# Restore from latest
npm run backup:restore backups/daily/latest-full.tar.gz

# Verify specific backup
npm run backup:verify backups/daily/full-backup-2026-03-21.tar.gz

Storage Structure

backups/
├── daily/          # 7 days retention
├── weekly/         # 4 weeks retention
├── monthly/        # 3 months retention
├── incremental/    # 72 hours retention
├── pre-deploy/     # Last 10 deployments
└── safety/         # Pre-restore backups (30 days)

Pre-Deployment

Always backup before deployment:

# Manual
npm run backup:config

# Automatic (in deployment script)
npm run deploy  # Includes automatic config backup

Troubleshooting

Backup fails

# Check disk space
df -h

# Check permissions
ls -la backups/

# Make scripts executable
chmod +x scripts/backup/*.sh

Restore fails

# Verify backup integrity
npm run backup:verify backups/daily/backup-file.tar.gz

# Check backup contents
tar -tzf backups/daily/backup-file.tar.gz

Documentation

See BACKUP_STRATEGY.md for complete documentation.