borg-compression.1 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-COMPRESSION 1 "2017-06-18" "" "borg backup tool"
  4. .SH NAME
  5. borg-compression \- Details regarding compression
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  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. High speed, low compression. (default)
  54. .TP
  55. .B zlib[,L]
  56. Use zlib ("gz") compression. Medium speed, medium compression.
  57. If you do not explicitely give the compression level L (ranging from 0
  58. to 9), it will use level 6.
  59. Giving level 0 (means "no compression", but still has zlib protocol
  60. overhead) is usually pointless, you better use "none" compression.
  61. .TP
  62. .B lzma[,L]
  63. Use lzma ("xz") compression. Low speed, high compression.
  64. If you do not explicitely give the compression level L (ranging from 0
  65. to 9), it will use level 6.
  66. Giving levels above 6 is pointless and counterproductive because it does
  67. not compress better due to the buffer size used by borg \- but it wastes
  68. lots of CPU cycles and RAM.
  69. .TP
  70. .B auto,C[,L]
  71. Use a built\-in heuristic to decide per chunk whether to compress or not.
  72. The heuristic tries with lz4 whether the data is compressible.
  73. For incompressible data, it will not use compression (uses "none").
  74. For compressible data, it uses the given C[,L] compression \- with C[,L]
  75. being any valid compression specifier.
  76. .UNINDENT
  77. .sp
  78. Examples:
  79. .INDENT 0.0
  80. .INDENT 3.5
  81. .sp
  82. .nf
  83. .ft C
  84. borg create \-\-compression lz4 REPO::ARCHIVE data
  85. borg create \-\-compression zlib REPO::ARCHIVE data
  86. borg create \-\-compression zlib,1 REPO::ARCHIVE data
  87. borg create \-\-compression auto,lzma,6 REPO::ARCHIVE data
  88. borg create \-\-compression auto,lzma ...
  89. .ft P
  90. .fi
  91. .UNINDENT
  92. .UNINDENT
  93. .SH AUTHOR
  94. The Borg Collective
  95. .\" Generated by docutils manpage writer.
  96. .