borg-benchmark-crud(1)
π borg-benchmark-crud
okay bestie, so this is a page from the borg backup tool manuals, and it's literally about flexing on your hardware. it's called borg-benchmark-crud, and it's the "how fast is my computer actually doing stuff" vibe check for your repos. let's get into it π
β¨ SYNOPSIS β¨
borg [common options] benchmark crud [options] PATH
that's it. that's the whole entry. borg, some common options, benchmark crud, some options again, and a PATH. slay. π
π¦ DESCRIPTION π¦
so what does this do?? this command benchmarks borg CRUD operations β that's Create, Read, Update, Delete, the four horsemen of literally any data thing ever. π₯
it creates input data down below the PATH you give it, and backs that data up into the repository you point at with -r/--repo (or, if you're feeling fancy and don't wanna type it, the BORG_REPO environment variable). the repo has to already exist β no, it will not make one for you. it can be a fresh empty repo or an existing one, doesn't matter, because the command is gonna create / read / update / delete some archives named borg-benchmark-crud* in there. that's the whole bit. π«
make sure you have free space there!! you will need about 1 GB each (+ overhead). not me being dramatic, that's just what the man page says. π«
if your repo is encrypted and borg needs a passphrase to unlock the key, do this:
BORG_PASSPHRASE=mysecret borg -r REPO benchmark crud PATH
measurements are done with different input file sizes and counts, so it's giving variety. but β and this is the important tea β the file contents are very artificial (either all zero or all random), so the results do not necessarily reflect performance with real data. also, because of the kind of content used, no compression is used in these benchmarks. periodt. π
now let's break down what each little test actually is, because the naming is lowkey cryptic:
C-==borg create(1st archive creation, no compression, do not use files cache)C-Z-== all-zero files. full dedup, so this is primarily measuring reader/chunker/hasher. πC-R-== random files. no dedup, measuring throughput through all processing stages. π
R-==borg extract(extract archive, dry-run, do everything, but do not write files to disk)R-Z-== all zero files. measuring heavily duplicated files.R-R-== random files. no duplication here, measuring throughput through all processing stages, except writing to disk. πΎ
U-==borg create(2nd archive creation of unchanged input files, measure files cache speed)- the throughput value is kind of virtual here, it does not actually read the file. iconic behaviour honestly.
U-Z-== needs to check the 2 all-zero chunks' existence in the repo.U-R-== needs to check existence of a lot of different chunks in the repo. π
D-==borg delete archive(soft-delete the last remaining archive, measure deletion)- deletion only removes the archive from the archives list, it does not free any repository space β that is what
borg compactdoes (and that's not measured here, so don't come for it). D-Z-== all-zero files archive.D-R-== random files archive.
- deletion only removes the archive from the archives list, it does not free any repository space β that is what
please note that there might be quite some variance in these measurements. try multiple measurements and having an otherwise idle machine (and network, if you use it). your wifi doing its little dance mid-benchmark WILL show up in the numbers, no cap. π
π OPTIONS π
see borg-common(1) for common options of Borg commands. that's where all the shared stuff lives, iykyk. π
πΈ arguments πΈ
PATHβ the path where you wanna create the benchmark input data. that's it, that's the girl. π
π options π
--json-linesβ format output as JSON Lines. for the girlies who want their numbers machine-readable. β¨
π SEE ALSO π
β Author β
The Borg Collective π«Ά
and that's the whole page bestie!! this was borg-benchmark-crud(1) from the borg backup tool, dated 2026-10-07. go benchmark something and have the day you deserve ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: borgbackup2 2.0.0b25-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms