#!/bin/bash
# 测试备份恢复流程
set -e
echo "=== Testing database backup ==="
./scripts/backup-db.sh
LATEST_BACKUP=$(ls -t backups/db_backup_*.sql.gz | head -1)
echo "=== Latest backup: $LATEST_BACKUP ==="
echo "=== Backup test passed ==="
