~/talk

PostgreSQL Backup Strategies

Talkat Postgres Open 2012 · 2012-09-17..09-19· [databases]
slides:none on file

Replication does not replace backups: a real outage once nukes 5,000 VMs and takes months to recover. Concrete options: pg_dump (custom format) for logical backups (single-threaded, use compression level ~3–5, restore with pg_restore and optional parallel -j), pg_basebackup + WAL archiving for fast physical restores and PITR, use pg_receivexlog or archive_command to ship 16 MB WAL segments, and never forget fsync when speeding restores — turning it off helps performance but risks silent corruption. Test restores regularly.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Replication and Clustering
  3. 2:50Backup Planning
  4. 3:29Performance Impacts
  5. 5:43Logical Backups
  6. 12:18Formats
  7. 15:09PGDump
  8. 18:16Compression
  9. 21:21SSH Compression
  10. 22:19PG Restore
  11. 25:24Parallel PG Restore
  12. 27:32FSync
  13. 29:33PG Dump All
  14. 30:58PG Dump Limitations
  15. 33:37Snapshots
  16. 34:58Online Backups
  17. 37:02PostgreSQL Base Backup
  18. 38:58PostgreSQL Low Dark
  19. 43:08PostgreSQL Base Backups
  20. 44:48PostgreSQL Base Backup Impacts
  21. 47:31Backup Strategies
  22. 49:12Backup Retention
  23. 51:20Backup vs Replication
  24. 51:59Lag behind replicas
  25. 53:02Test your backups
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.