borg-compression.1 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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-04" "" "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 explicitely 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 explicitely 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 explicitely 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. .UNINDENT
  83. .sp
  84. Examples:
  85. .INDENT 0.0
  86. .INDENT 3.5
  87. .sp
  88. .nf
  89. .ft C
  90. borg create \-\-compression lz4 REPO::ARCHIVE data
  91. borg create \-\-compression zstd REPO::ARCHIVE data
  92. borg create \-\-compression zstd,10 REPO::ARCHIVE data
  93. borg create \-\-compression zlib REPO::ARCHIVE data
  94. borg create \-\-compression zlib,1 REPO::ARCHIVE data
  95. borg create \-\-compression auto,lzma,6 REPO::ARCHIVE data
  96. borg create \-\-compression auto,lzma ...
  97. .ft P
  98. .fi
  99. .UNINDENT
  100. .UNINDENT
  101. .SH AUTHOR
  102. The Borg Collective
  103. .\" Generated by docutils manpage writer.
  104. .