snapdir diff
Compare two sides, each a set of manifests, reporting file-level differences.
diff reads MANIFESTS ONLY: it compares manifest entries without downloading
the content objects those manifests reference. That makes it useful for scheduled
inventory comparisons, release deltas, and audit workflows where object pools may
be large or remote.
Usage
snapdir diff [OPTIONS]
Options
Statuses are A for added, D for deleted, and M for modified. With --all,
unchanged paths are emitted as =.
Examples
Compare two manifest stores:
snapdir diff --from s3://inventory/prod --to gs://inventory/dr
Compare a single pinned manifest ID on each side and fail the command when any difference exists:
snapdir diff --id 1220abc... --from s3://inventory/a --to s3://inventory/b --exit-code
Emit JSON for tooling:
snapdir diff --from file:///srv/before --to file:///srv/after --json
Resolve same-path collisions within a side by letting the last repeated ref win:
snapdir diff --from s3://old-a --from s3://old-b --to s3://new --on-conflict last-wins
See also
snapdir manifest— print the manifest text being comparedsnapdir sync— copy snapshots between stores- Agentic vulnerability auditing