Use the pg_dump
command for backup and pg_restore
for restoration. For example, pg_dump -U username -d dbname > backup.sql
for backup and psql -U username -d dbname < backup.sql
for restore.
Saturday, 27 January 2024
How can you perform a backup and restore in PostgreSQL?

Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment