Man page - borg2-repo-compress(1)
Packages contas this manual
- borg2-prune(1)
- borg2-with-lock(1)
- borg2-delete(1)
- borg2-key(1)
- borg2-repo-space(1)
- borg2-mount(1)
- borg2-list(1)
- borg2-info(1)
- borg2-common(1)
- borg2-recreate(1)
- borg2-key-import(1)
- borg2-benchmark-crud(1)
- borg2-match-archives(1)
- borg2-repo-info(1)
- borg2-key-change-location(1)
- borg2-repo-delete(1)
- borg2-compression(1)
- borg2-compact(1)
- borg2-repo-create(1)
- borg2-version(1)
- borg2-key-export(1)
- borg2-break-lock(1)
- borg2-benchmark-cpu(1)
- borgfs2(1)
- borg2-tag(1)
- borgbackup2(1)
- borg2-benchmark(1)
- borg2-rename(1)
- borg2-umount(1)
- borg2-import-tar(1)
- borg2-repo-compress(1)
- borg2-serve(1)
- borg2-undelete(1)
- borg2-placeholders(1)
- borg2-transfer(1)
- borg2(1)
- borg2-analyze(1)
- borg2-export-tar(1)
- borg2-key-change-passphrase(1)
- borg2-extract(1)
- borg2-patterns(1)
- borg2-diff(1)
- borg2-repo-list(1)
- borg2-create(1)
- borg2-check(1)
apt-get install borgbackup2
Manual
| BORG-REPO-COMPRESS(1) | borg backup tool | BORG-REPO-COMPRESS(1) |
NAME
borg-repo-compress - Repository (re-)compression
SYNOPSIS
borg [common options] repo-compress [options]
DESCRIPTION
Repository (re-)compression (and/or re-obfuscation).
Reads all chunks in the repository and recompresses them if they are not already using the compression type/level and obfuscation level given via --compression.
If the outcome of the chunk processing indicates a change in compression type/level or obfuscation level, the processed chunk is written to the repository. Please note that the outcome might not always be the desired compression type/level - if no compression gives a shorter output, that might be chosen.
Please note that this command can not work in low (or zero) free disk space conditions.
If the borg repo-compress process receives a SIGINT signal (Ctrl-C), the repo will be committed and compacted and borg will terminate cleanly afterwards.
Both --progress and --stats are recommended when borg repo-compress is used interactively.
You do not need to run borg compact after borg repo-compress.
OPTIONS
See borg-common(1) for common options of Borg commands.
options
- -C COMPRESSION, --compression COMPRESSION
- select compression algorithm, see the output of the "borg help compression" command for details.
- -s, --stats
- print statistics
EXAMPLES
# recompress repo contents $ borg repo-compress --progress --compression=zstd,3 # recompress and obfuscate repo contents $ borg repo-compress --progress --compression=obfuscate,1,zstd,3
SEE ALSO
borg-common(1)
AUTHOR
The Borg Collective
| 2025-08-04 |