3 How much you can lose, and how long it takes
Set these with whoever owns the risk, then prove them in a drill. The table gives what each method can offer, not a measurement of your instance.
| Method | Data at risk (recovery point) | Time to restore (recovery time) |
|---|---|---|
Nightly deploy/backup.sh, copied off the host | Up to a day | Rebuild the host, restore the dump and unpack the archive. Grows with the data, so measure it |
| VM or volume snapshots, several times a day, copied off site | Up to the interval | Often quickest, as it brings back the whole machine. Depends on your platform |
| Continuous archiving (pgBackRest or WAL-G) with versioned files | Seconds to minutes | Base backup plus replay. Grows with the write volume since that base |
| Managed point-in-time recovery with versioning or soft delete | Minutes | The time the platform takes to build a new server, which grows with its size |
Keep at least one copy where someone with control of the server or the cloud account cannot delete it.