Database Backup & Restore
Local PostgreSQL database backups stored on S3 (qa-assets-volare/db-backups/).
Use the Claude Code skills to create and restore backups:
/db-backup— Creates a dump and uploads it to S3/db-backup turkey-data— Same, with a description suffix in the filename/db-restore— Lists available backups, downloads one, and restores it
Prerequisites
Section titled “Prerequisites”- Sail running (
./vendor/bin/sail up -d) - AWS CLI installed and configured with access to the
qa-assets-volarebucket
When to Create a Backup
Section titled “When to Create a Backup”- Before running
artisan migrate:freshordb:wipe - After significant manual data entry in the backoffice
- Before running destructive test suites
- Before major migration changes
Naming Convention
Section titled “Naming Convention”Dump files are named after your DB_DATABASE value:
{DB_DATABASE}-YYYY-MM-DD.dump{DB_DATABASE}-YYYY-MM-DD-description.dumpExamples:
orbita-dev-2026-03-16.dump— daily snapshotvolare-dev-2026-03-16-turkey-data.dump— after adding Turkey supplier data
- Format: PostgreSQL custom format (
-Fc) — compressed, supports selective restore - Typical size: ~45 MB
- Storage: S3 bucket
qa-assets-volare/db-backups/(not in git —.dumpfiles are gitignored) - Credentials: reads
DB_USERNAMEandDB_DATABASEfrom yourbackend/.env - Restoring a dump from another developer works regardless of role differences (
--no-owner --no-privileges)