> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/datasets/dataset-versions-and-history.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Dataset versions and history

Publish dataset versions, view older versions, and restore or duplicate them.

Every time you publish a dataset, Unitlab saves a **version** (v1, v2, v3...). A version is read-only: its list of files never changes. This lets you reproduce exactly which data a project or model used.

## Publish a new version

1. Open the dataset from **Datasets**.
2. Add or remove files with **Attach Data** or the file actions. The badge shows **Draft vN**.
3. Select **Publish version** and describe what changed.

Renames, folder moves and tag changes also count as changes, not only added or removed files.

## View an older version

Open the dataset and select the version button at the top right (for example **v2**). The menu lists each version with its note, file count and date. The newest is marked **LATEST**.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FuWz26ml7d8WFSnOHqiBn%2Fdataset-version-selector.webp?alt=media" alt="Version menu listing v2 Add mobile manipulator grasp marked LATEST and v1, with View all versions at the bottom" width="400"><figcaption></figcaption></figure>

Pick a version to open it read-only with a **Read only** label. Select **Back to current** to return to the draft.

## Compare all versions

Select **View all versions** at the bottom of the menu to open **Dataset history**. Expand a version to see who published it, when, and how many files were added or removed.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FTRNFtkCvwy75DrlIjZPe%2Fdataset-history.webp?alt=media" alt="Dataset history dialog listing v2 and v1, each with View version, Restore to working draft and Duplicate as new dataset" width="600"><figcaption></figcaption></figure>

Each version has these actions:

| Action                       | What it does                                                                                           |
| ---------------------------- | ------------------------------------------------------------------------------------------------------ |
| **View version**             | Opens the version read-only.                                                                           |
| **Restore to working draft** | Copies that version's files into the draft. Nothing is published until you select **Publish version**. |
| **Duplicate as new dataset** | Starts a new dataset from that version.                                                                |

**Restore** is not available for datasets that follow a live folder or a project's own uploads, because their draft always follows the source. Their versions are published automatically and their note starts with **Auto-published**.

## Example

A grasp model got worse after retraining. The team opens **Dataset history**, sees that v4 added 300 frames from a new camera, and restores v3 to the draft to retrain on the old data while they check the new frames.

## Tips

* Write a short note when you publish, such as *Added 200 night images from camera 4*.
* Attach an exact version to a project, not "whatever is latest".
* Record the version number with your training run.

## Related

[Create a dataset](https://docs.unitlab.ai/documentation/datasets/create-a-dataset.md) · [Attach datasets to projects](https://docs.unitlab.ai/documentation/datasets/attach-datasets-to-projects.md) · [Archive and restore datasets](https://docs.unitlab.ai/documentation/datasets/dataset-lifecycle-and-recovery.md)
