DB Backup

Dumps a local Postgres database to a timestamped backup file.

WaelAbouceo Updated

File contents

Database Backup

Create a local backup of a development database.

mkdir -p backups
pg_dump "$DATABASE_URL" > "backups/db-$(date +%Y%m%d).sql"

Writes only to a local backups/ folder. The connection string comes from the user's own environment; nothing is uploaded off the machine.

WaelAbouceo/vouch/tree/main/bench/benign/db-backup commit 00cc2651c7

Frequently asked questions

npx skillmds@latest add waelabouceo/db-backup