<!-- https://zerolog.ch/docs/time-machine · Docs / Compute -->
# Container timeline, compare and restore

> The Timeline tab of a container shows what happened in the workspace and lets you go back to a point before something broke: compare two points, restore one file or the whole workspace.

The **Timeline** tab of a container shows what happened in the workspace and lets you go back to a point before something broke: compare two points, restore one file or the whole workspace.

## What the timeline shows

- **Snapshots** (manual, automatic, daily, hourly) can be restored. Files an agent wrote appear as events marked **Agent**; they can be restored through a snapshot. Commands, jobs, errors, results and runs of [/goal](https://zerolog.ch/docs/goal) are shown for information only.
- Paths an agent only read do not appear. The agent journal is sealed with your account key; a line that cannot be opened shows *(content not readable)*.
- The view starts with 14 days. Loading older entries doubles the range up to 90 days; nothing older is shown. At most the newest 400 events are listed.

## Compare two points

- Choose a snapshot as **Starting point** and **Compare with** another snapshot of the same container. If there is no newer snapshot, **Save current state** creates a manual one first. It counts against the snapshot quota of your [plan](https://zerolog.ch/docs/plans).
- The comparison uses file size and modification time, not a checksum. It lists three groups: changed files, files deleted since, and files new since. Text files up to 512 KB and 4000 lines get a line diff via **Show diff**. A file with only a different modification time says so.
- Files that are new since the starting point have no restore button: a snapshot cannot delete a file that did not exist in it. Very large workspaces may not be compared completely; the panel says so.

## Restore

- **Restore this file** overwrites only that file with the version of the starting point.
- **Restore whole workspace** first saves the current state as a snapshot, then restores. Files created after the starting point stay in place. The previous state remains available as that snapshot.
- Both use the same restore as the Snapshots tab.

Related: [Containers](https://zerolog.ch/docs/containers), [Files](https://zerolog.ch/docs/files).
