Glossary
Data versioning
Recording changes to data so that earlier versions of files, folders or datasets can be retrieved, compared and restored.
Data versioning is the practice of recording changes to data so that earlier states can be retrieved, compared and restored. Applied to individual documents it is usually called file versioning: each save creates a new version and the old ones stay available. Applied to a whole dataset or filesystem, it means any past state can be read back by version ID or by time.
How data versioning works
There are three common approaches. The simplest keeps a full copy of each version, which is easy to reason about and expensive at scale. Delta-based systems store only the differences between versions and rebuild a version when it is read. Content-addressed systems such as Git store each unique piece of content once under a hash and describe each version as a set of pointers, so unchanged data is shared between versions. Copy-on-write storage applies the same sharing idea at the block level.
Whatever the storage model, each version needs an identifier and some metadata: when it was made, by whom and, ideally, why. That metadata is what turns a pile of old copies into a usable history and an audit trail.
File versioning and dataset versioning
File versioning tracks one item at a time. Cloud drives keep previous versions of each document, and object storage services such as Amazon S3 can keep every version of an object in a bucket. This works well for recovering a single overwritten file. It says much less about how a set of files related to each other at a given moment, or where a file sat before it was moved.
Dataset versioning tracks a collection as one unit. Git does this for code, and tools such as DVC and lakeFS bring commits and branches to large data files and data lakes. Table formats such as Delta Lake and Apache Iceberg support time travel queries against earlier table versions. Filesystem snapshots do the same for a directory tree, and point-in-time recovery lets you pick any moment rather than a named version.
Why data versioning matters for AI systems
Machine learning teams version data so that a model can be traced back to the exact training set that produced it. Retrieval systems have a related need. When a document in a knowledge base changes, the index has to reflect the new version, or the agent keeps answering from stale knowledge. Knowing which version was indexed, and when, is the basis of incremental indexing and of debugging a wrong RAG answer.
Agents add a further reason. An AI agent that writes to its own file system produces artifacts, edits notes and reorganises folders. Versioning that workspace means a reviewer can see what changed during a run, and agent rollback becomes possible when a run goes wrong. Our post on why agents need an audit trail makes the case in more depth.
Data versioning in Exabase
Exabase versions agent workspaces at two levels. Bases support filesystem snapshotting, which records the state of every resource and space in the Base (name, description, kind, icon, folder and deletion state) once it is switched on. You can then query the Base as it was at any time in the last seven days by passing a snapshotAt timestamp to the resource filter endpoint, and the results include resources that have since been deleted. History is kept at hourly granularity for the last 24 hours and in six-hour windows after that.
Snapshots record metadata, not file content. For content, notes stored through Resources keep their own version history, which you can list and read through the notepad snapshots endpoints.
Snapshotting is off by default, enabled per Base and included on paid plans. Each Base keeps its own history, which suits multi-tenant products where one customer’s state should be restored without touching another’s. The agent undo solution walks through comparing a Base before and after a run, and the snapshotting guide covers settings and limits. If you need versioning of file content across a data lake, the Exabase vs lakeFS and Exabase vs AWS S3 comparisons set out where each tool fits.
FAQs
What is the difference between data versioning and a backup?
Data versioning keeps many retrievable states of the data, usually alongside it, while a backup is a separate copy kept for disaster recovery. Versioning suits frequent, fine-grained recovery, and backups protect against losing the whole system. Most teams use both.
What is file versioning?
File versioning keeps previous versions of a single file each time it changes, so you can open or restore an older one. It is the per-item form of data versioning, and version history is the usual name for the list of versions a user sees.
Is Git a data versioning tool?
Yes, for code and small text files. Git handles large binary files and datasets poorly, which is why Git LFS, DVC and lakeFS exist to version data at larger scale.
Does data versioning use a lot of storage?
That depends on the method. Full copies grow quickly, while delta and content-addressed systems store only what changed. Pruning old versions under a data retention policy keeps the cost bounded.
Does Exabase version file content?
Partly. Filesystem snapshots in a Base record resource metadata, such as names, folders and deletion state, and do not capture file content. Notes keep a separate content version history.
How do I turn on versioning for an Exabase Base?
Send PATCH /v2/snapshots/settings with {"enabled": true} for the Base, or call api.resourceHistory.patchSettings({ enabled: true }) in the TypeScript SDK. Recording starts straight away, with no backfill, so each existing resource is first recorded on its next change.
Related pages: Point-in-time recovery, Filesystem snapshot, Version history, Copy-on-write, Agent rollback, Snapshot vs backup, Agent context versioning, Agent undo, Why we built Bases as filesystems, Bases, Virtual file system, Deduplication.