Skip to main content

Context Database Maintenance Script

Performs integrity checks, statistics updates, and cleanup operations Usage: ./scripts/db-maintenance.sh # Full maintenance ./scripts/db-maintenance.sh --check # Integrity check only ./scripts/db-maintenance.sh --stats # Statistics only ./scripts/db-maintenance.sh --vacuum # Include VACUUM (slow) ./scripts/db-maintenance.sh --dry-run # Show what would be done

File: db-maintenance.sh

Type: Shell Script

Usage

bash db-maintenance.sh
# or
./db-maintenance.sh