Documentation
¶
Overview ¶
Command backfill copies existing objects from local storage into the archive.
It exists because archiving only applies to uploads made after it was turned on. Everything already sitting in MinIO has no archived copy, and until it does, retention and the /archive endpoint will both (correctly) refuse to free any of it. This is the one-time job that closes that gap.
It copies, it never moves ¶
There is no delete call anywhere in this program. Local copies are left exactly as they were. Freeing space is a separate, deliberate act performed later by the retention job or the /archive endpoint, both of which re-verify before removing anything.
It is safe to interrupt and rerun ¶
Each object is checked against the archive before being uploaded, so a rerun skips everything already done at the cost of one HeadObject per object. Kill it, reboot the host, run it again next week: it picks up where it stopped without any state of its own.
Usage ¶
backfill # report what would be uploaded, change nothing backfill -apply # do it backfill -apply -buckets photos # limit to one bucket backfill -apply -workers 16 # more concurrency