borg-benchmark-crud
Benchmark Create, Read, Update, Delete for archives.
- Provided by: borgbackup2 (Version: 2.0.0b25-4)
- Report a bug
Benchmark Create, Read, Update, Delete for archives.
borg [common options] benchmark crud [options] PATH
This command benchmarks borg CRUD (create, read, update, delete) operations.
It creates input data below the given PATH and backs up this data into the repository given via -r/--repo (or the BORG_REPO environment variable). The repository must already exist (it could be a fresh empty repo or an existing repo, the command will create / read / update / delete some archives named borg-benchmark-crud* there.
Make sure you have free space there; you will need about 1 GB each (+ overhead).
If your repository is encrypted and borg needs a passphrase to unlock the key, use:
BORG_PASSPHRASE=mysecret borg -r REPO benchmark crud PATH
Measurements are done with different input file sizes and counts. The file contents are very artificial (either all zero or all random), thus the measurement results do not necessarily reflect performance with real data. Also, due to the kind of content used, no compression is used in these benchmarks.
Please note that there might be quite some variance in these measurements. Try multiple measurements and having a otherwise idle machine (and network, if you use it).
See borg-common(1) for common options of Borg commands.
The Borg Collective