backfill

command
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL