Expand description
MARS reflink snapshots with epoch-based version management and retention. Mirror & Archive Recovery System (MARS) – zero-cost reflink snapshots with epoch-based version management and retention policies.
Structs§
- File
Version - A single file version entry in the MARS versioning index.
- Version
Lookup - In-memory index mapping inodes and content hashes to version snapshots.
Functions§
- cleanup_
cli - CLI entry point for version cleanup with optional dry-run mode.
- cleanup_
versions - Removes old versions exceeding count or size limits, preserving the newest.
- copy_
version_ to_ path - Extracts a specific version epoch to a destination path.
- force_
version_ cli - CLI entry point for forcing a tagged version snapshot (not yet implemented).
- list_
versions - Lists all MARS versions for a live file by scanning the target root.
- print_
versions_ table - Prints a formatted table of file versions to stdout, showing the last
limitentries. - prune_
global_ history - Deletes oldest version snapshots globally until
bytes_to_freebytes are reclaimed. - revert_
file - Atomically reverts a live file to the specified version epoch via reflink.
- verify_
content_ match - Compares two files by sampling the first and last 64KB of content.