Report snapshot blobs missing from the destination in remote info (closes #425)
check / check (push) Waiting to run

remote info now counts the blobs that a manifest lists but the
destination does not hold, with their total size, and names each
snapshot that lists one, since it cannot be restored. When any blob is
missing the command exits non-zero after writing its report. --json
gives the figures in missing_blob_count, missing_blob_size and
snapshots_missing_blobs.

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-19 13:19:25 +00:00
1 parent be362080d3
commit 041e7642a2
5 files changed
+141 -2

No files matched your search

+2
View File
@@ -76,6 +76,8 @@ func newRemoteInfoCommand() *cobra.Command {
- Count and total size of all blobs
- Count and size of referenced blobs (from all manifests)
- Count and size of orphaned blobs (not referenced by any manifest)
- Count and size of referenced blobs missing from remote storage, and the
snapshots that list them; the command exits non-zero when any are missing
- Count and size of .partial objects left by killed uploads`,
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, _ []string) error {