Glossary

Point-in-time recovery

Restoring a database, filesystem or workspace to its exact state at a chosen moment within a retention window.

Point-in-time recovery (PITR) is the ability to restore a database, filesystem or workspace to the exact state it was in at a moment you choose, such as 14:05 yesterday, rather than only to the time of the last full backup. Systems that support it keep a continuous record of changes, so any timestamp inside the retention window can be reconstructed.

How point-in-time recovery works

Most implementations combine two things: a periodic base copy of the data and an ordered log of every change made since. To recover, the system starts from the most recent base copy before your target time and replays the log up to that moment. PostgreSQL does this with base backups and its write-ahead log, MySQL with binary logs, and managed databases such as Amazon RDS expose the same idea as a restore-to-time option.

Filesystems and storage layers often reach the same result in other ways. Copy-on-write systems keep old blocks alive when data changes, and frequent snapshots give you a dense series of restorable states.

Recovery point and recovery time

Two numbers describe how useful a recovery setup is. The recovery point objective is how much recent change you can afford to lose: with nightly backups it can be close to a full day, while continuous logging brings it down to minutes or seconds. The recovery time objective is how long a restore takes. PITR mainly improves the first number, because you no longer have to choose between the last good backup and the broken present.

The other limit is the retention window. Change logs grow with every write, so systems prune them after a set period, and a data retention policy decides how far back you can go. Longer-term protection is the job of backups, and our snapshot vs backup entry compares the two in more detail.

Point-in-time recovery, versioning and rollback

PITR is one form of data versioning: every past state stays addressable by time. Version history works at the level of a single file or note, and a soft delete keeps removed items recoverable for a period. PITR covers the whole dataset at once, which helps when many changes happened together.

For AI agents, the same capability underpins agent rollback. An AI agent with write access can rename, move or delete a lot of material in one run. If its workspace supports recovery to a timestamp, you can note the time before the run, compare the state afterwards and put things back. An audit log shows which steps ran, and recovering to a timestamp is what lets you reverse them without rebuilding the state by hand. The posts on what a bad agent run does to a workspace and why undo matters for agents go into the failure patterns.

Recovery has limits. It restores the data held in the system that records the history. Emails sent, payments taken and calls to external APIs need their own safeguards, such as idempotent operations or human approval for steps that cannot be reversed.

Point-in-time recovery in Exabase

Exabase Bases are isolated cloud filesystems for agents, and each Base can record its own history through filesystem snapshotting. Once enabled, Exabase continuously records the state of every resource and space in the Base: name, description, kind, icon, folder location and deletion state. Granularity is hourly for the last 24 hours and six-hourly from one to seven days, after which records are pruned. You can set a shorter retentionDays if you need one.

To read a Base as it was, pass a snapshotAt timestamp to the get resource endpoint or the resource filter endpoint. The results include resources that have since been deleted, so you can compare a folder before and after a run. Deleted resources stay in the bin for 30 days and can be recovered from there or through snapshot history.

Snapshotting records file metadata, not file content, and it is off by default. Turn it on per Base with the snapshot settings endpoint; recording starts immediately, with no backfill. It is included on paid plans at no extra cost (see pricing). Because history is kept per Base, each tenant in a multi-tenant product can be inspected and recovered on its own. The agent undo solution and the snapshotting guide show the full workflow, and the agent context versioning use case covers versioning agent state over time.

FAQs

What is the difference between point-in-time recovery and a backup?

A backup restores data as it was when the copy was taken, while point-in-time recovery restores it to any moment inside the retention window. PITR usually builds on backups by replaying a log of changes on top of the most recent one.

How far back can point-in-time recovery go?

As far back as the system keeps its change history. Databases typically keep days to weeks of logs. Exabase keeps snapshot history for up to seven days per Base, and you can shorten that window with retention settings.

Does point-in-time recovery lose data?

It discards changes made after the moment you restore to, which is the purpose of rolling back. Compare the two states first and copy out any later work you want to keep.

Is point-in-time recovery the same as a snapshot?

They are closely related. A snapshot captures one moment, and point-in-time recovery lets you choose any moment within a window. A dense series of snapshots or a continuous change log is how most systems provide it.

Can point-in-time recovery undo what an AI agent did?

Yes, for changes inside the system that records history. In an Exabase Base you can query the state before an agent run and recover deleted resources. Actions the agent took in other systems, such as sending messages, sit outside that history, and what can’t be undone covers how to guard against them.

Does Exabase snapshotting restore file content?

No. Exabase snapshots record resource metadata such as names, folders and deletion state. File content is not captured by snapshots, although notes keep their own content history through the notepads API.

Related pages: Filesystem snapshot, Data versioning, Agent rollback, Snapshot vs backup, Version history, Soft delete, Agent undo, Exabase vs lakeFS, Testing agents on real data without risking it, Bases.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.