You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using the
pg_dump
andpg_restore
commands via babashka tasks to make backing up and restoring PostgreSQL databases easier.bb.edn
: https://gist.github.com/stelcodes/a8c3b8f4b9c07ef784675750ab91079eFeatures:
db-name
andbackup-dir
to your liking and you're good to gobackup-dir
if it doesn't exist yetbb backup
to create a "custom" format database backup with timestamp and database name in backup filenamebb restore
to restore the most recent backup with confirmation prompt to ensure the right backup is being usedPostgreSQL backing up and restoring docs:
https://www.postgresql.org/docs/current/backup-dump.html
Beta Was this translation helpful? Give feedback.
All reactions