| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 | .\" Man page generated from reStructuredText....nr rst2man-indent-level 0..de1 rstReportMargin\\$1 \\n[an-margin]level \\n[rst2man-indent-level]level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]-\\n[rst2man-indent0]\\n[rst2man-indent1]\\n[rst2man-indent2]...de1 INDENT.\" .rstReportMargin pre:. RS \\$1. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]. nr rst2man-indent-level +1.\" .rstReportMargin post:...de UNINDENT. RE.\" indent \\n[an-margin].\" old: \\n[rst2man-indent\\n[rst2man-indent-level]].nr rst2man-indent-level -1.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]].in \\n[rst2man-indent\\n[rst2man-indent-level]]u...TH "BORG-COMPRESSION" 1 "2023-02-26" "" "borg backup tool".SH NAMEborg-compression \- Details regarding compression.SH DESCRIPTION.spIt is no problem to mix different compression methods in one repo,deduplication is done on the source data chunks (not on the compressedor encrypted data)..spIf some specific chunk was once compressed and stored into the repo, creatinganother backup that also uses this chunk will not change the stored chunk.So if you use different compression specs for the backups, whichever stores achunk first determines its compression. See also borg recreate..spCompression is lz4 by default. If you want something else, you have to specify what you want..spValid compression specifiers are:.INDENT 0.0.TP.B noneDo not compress..TP.B lz4Use lz4 compression. Very high speed, very low compression. (default).TP.B zstd[,L]Use zstd (\(dqzstandard\(dq) compression, a modern wide\-range algorithm.If you do not explicitly give the compression level L (ranging from 1to 22), it will use level 3.Archives compressed with zstd are not compatible with borg < 1.1.4..TP.B zlib[,L]Use zlib (\(dqgz\(dq) compression. Medium speed, medium compression.If you do not explicitly give the compression level L (ranging from 0to 9), it will use level 6.Giving level 0 (means \(dqno compression\(dq, but still has zlib protocoloverhead) is usually pointless, you better use \(dqnone\(dq compression..TP.B lzma[,L]Use lzma (\(dqxz\(dq) compression. Low speed, high compression.If you do not explicitly give the compression level L (ranging from 0to 9), it will use level 6.Giving levels above 6 is pointless and counterproductive because it doesnot compress better due to the buffer size used by borg \- but it wasteslots of CPU cycles and RAM..TP.B auto,C[,L]Use a built\-in heuristic to decide per chunk whether to compress or not.The heuristic tries with lz4 whether the data is compressible.For incompressible data, it will not use compression (uses \(dqnone\(dq).For compressible data, it uses the given C[,L] compression \- with C[,L]being any valid compression specifier..TP.B obfuscate,SPEC,C[,L]Use compressed\-size obfuscation to make fingerprinting attacks based onthe observable stored chunk size more difficult.Note:\- you must combine this with encryption or it won\(aqt make any sense.\- your repo size will be bigger, of course..spThe SPEC value will determine how the size obfuscation will work:.spRelative random reciprocal size variation:Size will increase by a factor, relative to the compressed data size.Smaller factors are often used, larger factors rarely.1: factor 0.01 .. 100.02: factor 0.1 .. 1000.03: factor 1.0 .. 10000.04: factor 10.0 .. 100000.05: factor 100.0 .. 1000000.06: factor 1000.0 .. 10000000.0.spAdd a randomly sized padding up to the given size:110: 1kiB\&...120: 1MiB\&...123: 8MiB (max.).UNINDENT.spExamples:.INDENT 0.0.INDENT 3.5.sp.nf.ft Cborg create \-\-compression lz4 REPO::ARCHIVE databorg create \-\-compression zstd REPO::ARCHIVE databorg create \-\-compression zstd,10 REPO::ARCHIVE databorg create \-\-compression zlib REPO::ARCHIVE databorg create \-\-compression zlib,1 REPO::ARCHIVE databorg create \-\-compression auto,lzma,6 REPO::ARCHIVE databorg create \-\-compression auto,lzma ...borg create \-\-compression obfuscate,3,none ...borg create \-\-compression obfuscate,3,auto,zstd,10 ...borg create \-\-compression obfuscate,2,zstd,6 ....ft P.fi.UNINDENT.UNINDENT.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |