point-in-time recovery
termKept in this browser · My desk
Restoring data to a chosen moment, typically just before a deletion or corruption, by replaying logs on top of an earlier full backup.
Replicas copy a mistake within seconds, so recovering from one needs a copy from before it. Point-in-time recovery combines periodic full or differential backups with frequent log backups so that any moment inside a retention window can be rebuilt: Azure SQL Database takes log backups every 5 to 10 minutes and allows restores up to 35 days back, and Atlassian restored its deleted sites to five minutes before each deletion. Google's SRE book notes the outside name and its internal one, time-travel, and warns that low-grade corruption is often found weeks later, so retention must outlive the discovery delay.
Mechanism. A full backup sets a base; transaction log or write-ahead log records after it are kept and replayed up to the chosen moment. The finer the log backups, the smaller the recovery point objective (RPO) for errors that replication would copy. Evidence. Microsoft documents weekly full, 12- or 24-hourly differential and 5- to 10-minute log backups for Azure SQL Database, with point-in-time restore for up to 35 days to recover from corruption caused by human error. Atlassian's April 2022 review describes full and incremental backups allowing any point within 30 days; it met a one-hour RPO with at most five minutes lost. GitLab's January 2017 post-mortem shows the absence: without write-ahead log archiving the newest usable copy was a snapshot six hours old, and point-in-time recovery with continuous archiving was among the remedies. Limits. Google's data integrity chapter says recovering many artefacts, each to its own point in time, across several data stores is the hardest case, and that backups should be kept long enough to cover bugs discovered weeks or months after release.
Also known as: pitr, point-in-time restore, time travel, recuperação para um ponto no tempo
Sources
- Google, Site Reliability Engineering, chapter 26, Data Integrity (read 2026-11-16): recovering artefacts to a unique point in time is called point-in-time recovery outside Google and time-travel inside; replication and redundancy are not recoverability; snapshots deeper in the stack are older
- Microsoft Learn, Overview of business continuity with Azure SQL Database, updated 2 April 2026 (read 2026-11-16): weekly full, 12- or 24-hourly differential and 5- to 10-minute log backups; point-in-time restore for up to 35 days to recover from corruption caused by human error
- Atlassian, Post-Incident Review on the Atlassian April 2022 outage, 29 April 2022 (read 2026-11-16): full and incremental backups allow any point within 30 days; main data stores restored to five minutes before each deletion; RPO of one hour met
- GitLab, Postmortem of database outage of January 31, 10 February 2017 (read 2026-11-16): without WAL archiving the newest usable copy was a six-hour-old snapshot; remedies included point-in-time recovery with continuous archiving