Time-Travel Mounting
The --atTime flag allows you to mount a flexFS volume as it existed at a specific point in the past. The mount is read-only, providing a consistent snapshot of the filesystem at the requested timestamp.
mount.flexfs start my-volume /mnt/snapshot \ --atTime 2025-06-15T14:30:00ZThe --atTime value must be in RFC 3339 format (e.g. 2025-06-15T14:30:00Z or 2025-06-15T14:30:00-04:00). The mount is automatically set to read-only (--ro is implied).
How it works
Section titled “How it works”When --atTime is provided:
- The mount client parses the RFC 3339 timestamp and converts it to nanoseconds since epoch.
- The mount is forced to read-only mode.
- The metadata server returns the filesystem state as it existed at the requested point in time, using its retained metadata history.
- Block data is read from object storage (blocks are immutable and retained for the configured retention period).
Retention window
Section titled “Retention window”Time-travel mounts are only possible within the volume’s configured retention window. If you request a point in time that falls outside the retention window, the mount will fail with an error indicating the earliest allowed time.
The retention window is set during volume creation or via configure.flexfs:
- A positive value (in seconds) defines a rolling retention window — for example,
604800retains 7 days of history. - A value of
-1means blocks are retained forever, enabling time-travel to any point since the volume was created. - A value of
0means no retention beyond the current state, effectively disabling time-travel.
Use cases
Section titled “Use cases”Data recovery
Section titled “Data recovery”Recover accidentally deleted or overwritten files by mounting the volume at a point before the deletion:
mount.flexfs start my-volume /mnt/recovery \ --atTime 2025-06-14T10:00:00Z
# Copy the needed filescp /mnt/recovery/important-data.csv /home/user/restored/Auditing and compliance
Section titled “Auditing and compliance”Provide auditors with a verifiable, read-only view of filesystem state at a specific date:
mount.flexfs start audit-volume /mnt/audit \ --atTime 2025-01-01T00:00:00ZDebugging
Section titled “Debugging”Compare the current state of a volume with a historical state to understand what changed:
# Mount the current statemount.flexfs start my-volume /mnt/current
# Mount a historical statemount.flexfs start my-volume /mnt/yesterday \ --atTime 2025-06-14T00:00:00Z
# Comparediff -r /mnt/current/config/ /mnt/yesterday/config/Limitations
Section titled “Limitations”- Time-travel mounts are read-only. Write operations will return
EROFS. - The available history depends on the volume’s retention configuration. Blocks that have been garbage-collected are no longer accessible.
- Time-travel mounts still consume a metadata server session and count toward active mount limits.