PostgreSQL பல backup முறைகளை வழங்குகிறது — logical backups (pg_dump) மற்றும் physical backups (base backup + WAL for point-in-time recovery). தரமான backup-and-recovery strategy தரவு இழப்பிலிருந்து பாதுகாப்பதற்கு அপরிहार்யம், மற்றும் முக்கியமாக, backups கட்டாயம் சோதிக்கப்பட வேண்டும்.
Logical backups — pg_dump
pg_dump -U user -d mydb -F c -f backup.dump
pg_dump -U user -d mydb > backup.sql
pg_dumpall > all.sql
pg_restore -U user -d mydb backup.dump
psql -U user -d mydb -f backup.sql
