PostgreSQL
Backup/Restore Commands
PostgreSQL provides robust backup tools. Learn to create consistent backups and restore them efficiently using pg_dump and pg_restore.
11 commands
Pro Tips
Use -Fc (custom format) for smaller, faster, and parallel-restorable backups.
Use -j N with pg_restore for parallel restore, significantly faster on large DBs.
Common Mistakes
pg_dump creates consistent snapshots, but large databases may affect performance.