PITR and Clone: Point-in-Time Recovery and Zero-Copy
Beyond “read a snapshot”, a data version system has two very practical abilities: point-in-time recovery (PITR) and zero-copy clone. This post covers the trade-offs in implementing them. 1. PITR: find the newest reference not later than T A reference (snapshot or branch) is essentially “a name plus a commit id (pin)”. PITR needs no extra log; it does: given time T: find references with created <= T take the one with the largest created restore to it That is recovery based on the reference sequence, not WAL replay. The upside is simplicity and consistency with the snapshot system; the downside is precision tied to how often you create references — if two references are an hour apart, you can only restore to before that hour. ...