borg-compression.1 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-COMPRESSION" 1 "2022-06-25" "" "borg backup tool"
  31. .SH NAME
  32. borg-compression \- Details regarding compression
  33. .SH DESCRIPTION
  34. .sp
  35. It is no problem to mix different compression methods in one repo,
  36. deduplication is done on the source data chunks (not on the compressed
  37. or encrypted data).
  38. .sp
  39. If some specific chunk was once compressed and stored into the repo, creating
  40. another backup that also uses this chunk will not change the stored chunk.
  41. So if you use different compression specs for the backups, whichever stores a
  42. chunk first determines its compression. See also borg recreate.
  43. .sp
  44. Compression is lz4 by default. If you want something else, you have to specify what you want.
  45. .sp
  46. Valid compression specifiers are:
  47. .INDENT 0.0
  48. .TP
  49. .B none
  50. Do not compress.
  51. .TP
  52. .B lz4
  53. Use lz4 compression. Very high speed, very low compression. (default)
  54. .TP
  55. .B zstd[,L]
  56. Use zstd ("zstandard") compression, a modern wide\-range algorithm.
  57. If you do not explicitly give the compression level L (ranging from 1
  58. to 22), it will use level 3.
  59. Archives compressed with zstd are not compatible with borg < 1.1.4.
  60. .TP
  61. .B zlib[,L]
  62. Use zlib ("gz") compression. Medium speed, medium compression.
  63. If you do not explicitly give the compression level L (ranging from 0
  64. to 9), it will use level 6.
  65. Giving level 0 (means "no compression", but still has zlib protocol
  66. overhead) is usually pointless, you better use "none" compression.
  67. .TP
  68. .B lzma[,L]
  69. Use lzma ("xz") compression. Low speed, high compression.
  70. If you do not explicitly give the compression level L (ranging from 0
  71. to 9), it will use level 6.
  72. Giving levels above 6 is pointless and counterproductive because it does
  73. not compress better due to the buffer size used by borg \- but it wastes
  74. lots of CPU cycles and RAM.
  75. .TP
  76. .B auto,C[,L]
  77. Use a built\-in heuristic to decide per chunk whether to compress or not.
  78. The heuristic tries with lz4 whether the data is compressible.
  79. For incompressible data, it will not use compression (uses "none").
  80. For compressible data, it uses the given C[,L] compression \- with C[,L]
  81. being any valid compression specifier.
  82. .TP
  83. .B obfuscate,SPEC,C[,L]
  84. Use compressed\-size obfuscation to make fingerprinting attacks based on
  85. the observable stored chunk size more difficult.
  86. Note:
  87. \- you must combine this with encryption or it won\(aqt make any sense.
  88. \- your repo size will be bigger, of course.
  89. .sp
  90. The SPEC value will determine how the size obfuscation will work:
  91. .sp
  92. Relative random reciprocal size variation:
  93. Size will increase by a factor, relative to the compressed data size.
  94. Smaller factors are often used, larger factors rarely.
  95. 1: factor 0.01 .. 100.0
  96. 2: factor 0.1 .. 1000.0
  97. 3: factor 1.0 .. 10000.0
  98. 4: factor 10.0 .. 100000.0
  99. 5: factor 100.0 .. 1000000.0
  100. 6: factor 1000.0 .. 10000000.0
  101. .sp
  102. Add a randomly sized padding up to the given size:
  103. 110: 1kiB
  104. \&...
  105. 120: 1MiB
  106. \&...
  107. 123: 8MiB (max.)
  108. .UNINDENT
  109. .sp
  110. Examples:
  111. .INDENT 0.0
  112. .INDENT 3.5
  113. .sp
  114. .nf
  115. .ft C
  116. borg create \-\-compression lz4 REPO::ARCHIVE data
  117. borg create \-\-compression zstd REPO::ARCHIVE data
  118. borg create \-\-compression zstd,10 REPO::ARCHIVE data
  119. borg create \-\-compression zlib REPO::ARCHIVE data
  120. borg create \-\-compression zlib,1 REPO::ARCHIVE data
  121. borg create \-\-compression auto,lzma,6 REPO::ARCHIVE data
  122. borg create \-\-compression auto,lzma ...
  123. borg create \-\-compression obfuscate,3,none ...
  124. borg create \-\-compression obfuscate,3,auto,zstd,10 ...
  125. borg create \-\-compression obfuscate,2,zstd,6 ...
  126. .ft P
  127. .fi
  128. .UNINDENT
  129. .UNINDENT
  130. .SH AUTHOR
  131. The Borg Collective
  132. .\" Generated by docutils manpage writer.
  133. .