Skip to main content
The Poolside deployment bundle includes scripts/db-snapshot.sh for database backup and restore operations. The required poolside-database-client container image is pre-bundled in containers/ and upload_images.sh uploads it to your registry. The script auto-detects your container registry from the core-api deployment. You can override this with --registry or --image flags.

Create a backup

# Auto-detect registry from core-api deployment
./scripts/db-snapshot.sh create

# Explicit registry
./scripts/db-snapshot.sh --registry=<registry-host> create

# Custom backup directory
./scripts/db-snapshot.sh --dir=<backup-directory> create

Restore from a backup

# Interactive restore
./scripts/db-snapshot.sh restore

# Restore a specific file
./scripts/db-snapshot.sh --file=<snapshot-file> restore

# Force drop and recreate
./scripts/db-snapshot.sh --drop restore

Additional commands

./scripts/db-snapshot.sh list
./scripts/db-snapshot.sh jump-create
./scripts/db-snapshot.sh jump-delete
./scripts/db-snapshot.sh --image=<custom-image> create