PostgreSQL 18 · Backup and restore
Back up a database
Write a compressed custom-format dump that pg_restore can restore selectively.
pg_dump -U postgres -d mydb -F c -f mydb.dump
Official PostgreSQL 18 documentation
PostgreSQL 18 · Backup and restore
Write a compressed custom-format dump that pg_restore can restore selectively.
pg_dump -U postgres -d mydb -F c -f mydb.dump
Official PostgreSQL 18 documentation
Was this page helpful?