OurBigBook
Save the psql database state as per stackoverflow.com/questions/37984733/postgresql-database-export-to-sql-file with our web/bin/pg_dump helper:
web/bin/pg_dump -Fc -f tmp.dump
Then to restore it later with web/bin/pg_restore:
web/bin/pg_restore tmp.dump
stackoverflow.com/questions/2732474/restore-a-postgres-backup-file-using-the-command-line

Ancestors