filer.backup mirror retains .upload staging files — ~2x storage footprint #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every mirrored file is accompanied by a duplicate
<name>.uploadstaging file, roughly doubling the footprint on the Storage Box share.Measured 2026-09-30, ~25 min into the first run:
Each pair is byte-identical in size:
On a share sized at 2.5 TiB this halves effective capacity.
What it is not
weed/replication/sink/localsink/local_sink.gowrites viaos.CreateTemp(dir, ".seaweedfs-tmp-*")and thenos.Renames it into place. It never emits.upload.fs.ls /buckets/pvc-b2259b42-2ed4-45df-b66f-784b00784fd3/reports 3093 entries and zero matching*.upload.So the source creates
<name>.uploadtransiently (upload/import staging), the mirror copies it on the create event, and the later rename to the final name does not produce a delete the sink acts on — leaving the staging copy behind permanently. The 1:1 ratio for every file (not a scattered few) is consistent with a bulk import where each file was written the same way.Suggested fix
weed filer.backuphas-filerExcludeFileNames(comma-separated wildcards) for exactly this:Add it to each
run ...line in the filer-backup sidecar script (seaweed/main.go), alongside the existing-filerPath/-retentionDays.Cleanup
Exclusion only stops new ones — the already-mirrored
.uploadfiles need a one-off removal, or the share stays at 2x until retention catches up.Verify
Step 3 prints the current
.uploadcount and flags it.