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
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
#!/bin/bash
|
|
# Content-Only Backup Script for WorkRoot Website
|
|
# Quick incremental backup of content files (blog posts, markdown)
|
|
|
|
set -e
|
|
|
|
# Configuration
|
|
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
BACKUP_DIR="$PROJECT_ROOT/backups/incremental"
|
|
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
|
|
BACKUP_FILE="$BACKUP_DIR/content-$TIMESTAMP.tar.gz"
|
|
LOG_FILE="$PROJECT_ROOT/backups/backup.log"
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
|
|
log() {
|
|
echo "[$(date +"%Y-%m-%d %H:%M:%S")] $1" | tee -a "$LOG_FILE"
|
|
}
|
|
|
|
mkdir -p "$BACKUP_DIR"
|
|
|
|
log "${GREEN}Starting content backup...${NC}"
|
|
|
|
# Content directories to backup
|
|
CONTENT_ITEMS=(
|
|
"src/content/"
|
|
"public/images/"
|
|
"public/assets/"
|
|
)
|
|
|
|
# Create backup
|
|
cd "$PROJECT_ROOT"
|
|
tar -czf "$BACKUP_FILE" "${CONTENT_ITEMS[@]}" 2>/dev/null || {
|
|
log "${YELLOW}Warning: Some content directories may not exist${NC}"
|
|
}
|
|
|
|
# Verify backup
|
|
if [ ! -f "$BACKUP_FILE" ]; then
|
|
log "ERROR: Content backup failed"
|
|
exit 1
|
|
fi
|
|
|
|
BACKUP_SIZE=$(du -h "$BACKUP_FILE" | cut -f1)
|
|
log "${GREEN}Content backup completed${NC}"
|
|
log "Location: $BACKUP_FILE"
|
|
log "Size: $BACKUP_SIZE"
|
|
|
|
# Create latest symlink
|
|
ln -sf "$BACKUP_FILE" "$BACKUP_DIR/latest-content.tar.gz"
|
|
|
|
# Cleanup old incremental backups (keep last 72 hours)
|
|
find "$BACKUP_DIR" -name "content-*.tar.gz" -type f -mtime +3 -delete 2>/dev/null || true
|
|
log "Old backups cleaned up"
|
|
|
|
echo -e "${GREEN}✓ Content backup completed${NC}"
|
|
echo -e " Location: $BACKUP_FILE"
|
|
echo -e " Size: $BACKUP_SIZE"
|