PITR
PITR, or point-in-time recovery, is a database restore technique that allows reconstructing a database to a specific moment in time, using a combination of full backups and a continuous stream of transaction logs or redo logs. The goal is to recover from data corruption, user error, or other incidents with minimal data loss.
Mechanism: A base backup provides a snapshot of the database at a known time. Ongoing transaction logs
Common workflows: On a disaster, stop writes, restore to a new instance, apply logs to the target
Implementation: Different databases implement PITR in different ways. PostgreSQL uses base backups with continuous WAL archiving
Limitations: PITR requires timely backups and log retention, storage costs, and a plan for validating restores.