Glossary

Filesystem snapshot

A record of a filesystem’s state at a point in time, used to read or restore earlier versions of files and folders.

A filesystem snapshot is a record of a filesystem’s state at a specific moment, which you can read from or restore to later. Most snapshot systems avoid copying every file. They record what changes after the snapshot is taken, so creating one is fast and the storage cost grows with the volume of changes rather than the size of the filesystem.


How filesystem snapshots work

Filesystems such as ZFS and Btrfs, and most cloud block storage, build snapshots with copy-on-write. When a snapshot is taken, the system marks the current blocks as shared. A later write goes to a new block and the snapshot keeps pointing at the old one, so reading the snapshot gives you the filesystem as it stood while the live copy carries on changing.

Some systems work at a higher level and record changes to files and folders in history tables. You lose block-level detail, but you can ask useful questions, such as which files existed at 14:00 yesterday or where a document sat before it was moved. Both approaches give you point-in-time recovery: pick a timestamp, then read or restore the state from that moment.


Snapshots, backups and version history

A backup is a separate copy, usually stored elsewhere and taken on a schedule such as nightly. It protects you if the whole system is lost, and restoring one generally rolls everything back to the time of the copy, including unrelated work done since. A snapshot sits alongside the data, is cheap to take often and can be scoped to a single directory or workspace, which makes it the better tool for short-range recovery. Most teams run both.

Version history tracks the revisions of individual files. A snapshot covers the whole tree at once, so it also captures moves, renames and deletions that per-file history can miss. Data versioning is the broader practice of keeping every state of a dataset addressable, and snapshots are one common way to implement it.


Why snapshots matter for AI agents

Agents that can write to files, notes and records will sometimes get things wrong. An instruction is misread, a tool call overwrites the wrong document, or a clean-up step deletes more than intended. Without a snapshot, recovery means rebuilding the previous state by hand from logs, assuming the logs are detailed enough.

With snapshots on the agent’s workspace, you can record the state before a run, let the agent work with full write access, compare the result against the snapshot and restore it if the run went badly. That pattern is the basis of agent rollback, and it lets teams grant write permissions they would otherwise hold back. Snapshots cover only the data inside the storage they track. Emails sent, payments taken and calls to third-party APIs happen elsewhere and need their own safeguards.


Filesystem snapshots in Exabase

Exabase Bases give agents a filesystem of their own, and each Base can record its history through filesystem snapshotting. Once enabled, recording is continuous: every write to a resource or space is captured, at one-hour granularity for the last 24 hours and six-hour granularity from one to seven days, after which records are pruned. You can set a shorter retention window per Base.

Snapshotting is off by default and is switched on per Base through the snapshot settings endpoint. It records resource metadata such as name, location, kind and deletion state, and it does not copy file content. To read a Base as it was, pass a snapshotAt timestamp to the resource endpoints; the results can include resources that have since been deleted. Items moved to the bin are soft-deleted and stay recoverable for 30 days.

The snapshotting guide covers the settings and limits, and the agent undo page shows how teams use snapshots to review and reverse agent runs. Because snapshots are scoped to a Base, each customer’s state in a multi-tenant product can be restored on its own.


FAQs


Does a snapshot copy all of my data?

Usually not. Copy-on-write snapshots share unchanged blocks with the live filesystem and store only what changes afterwards, so a new snapshot takes very little space. Exabase snapshotting records resource metadata and leaves file content where it is.


How long should snapshots be kept?

Long enough to notice a problem and act on it. For agent workloads the useful window is usually short, since mistakes tend to surface when someone reviews the run. Keep backups for longer-term protection.


Can a snapshot undo an agent’s external actions?

No. A snapshot restores the data it tracks. Messages sent, payments made and changes in external systems need idempotent design, staged approvals or compensating actions, which we cover in what can’t be undone.


What is the difference between a snapshot and a backup?

A snapshot is a point-in-time view stored alongside the live data, and a backup is a separate copy usually kept somewhere else. Snapshots suit quick, frequent recovery, while backups protect you if the whole system is lost. Our snapshot vs backup entry compares them in more detail.


Are snapshots read-only?

Usually, yes. You read from a snapshot or restore from it, and the snapshot itself stays unchanged. Some filesystems allow writable copies: Btrfs snapshots are writable unless created as read-only, and ZFS lets you create a writable clone from a snapshot.


How often should snapshots be taken?

Often enough that the gap between two snapshots is a loss you can accept. Agent workloads can make many changes in a single run, so frequent or continuous capture works best. Exabase records every write to a Base and keeps hourly granularity for the first 24 hours.


Do snapshots use extra storage?

Yes, but only for data that changes after the snapshot is taken. Copy-on-write snapshots share unchanged blocks with the live filesystem, so their storage grows with the volume of changes. Keeping many long-lived snapshots on fast-changing data uses the most space.


How do I turn on snapshotting in Exabase?

Send a PATCH request to /v2/snapshots/settings for the Base with {"enabled": true}. Recording starts straight away but does not backfill, so each resource is first recorded on its next update. The snapshotting guide covers retention settings and limits.

Related pages: Point-in-time recovery, Snapshot vs backup, Agent rollback, Version history, Agent undo, Exabase vs E2B, Read-only agents are a dead end, Bases, Agent sandbox.

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.