borg-repo-compress.1 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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-REPO-COMPRESS" "1" "2025-05-19" "" "borg backup tool"
  31. .SH NAME
  32. borg-repo-compress \- Repository (re-)compression
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] repo\-compress [options]
  36. .SH DESCRIPTION
  37. .sp
  38. Repository (re\-)compression (and/or re\-obfuscation).
  39. .sp
  40. Reads all chunks in the repository and recompresses them if they are not already
  41. using the compression type/level and obfuscation level given via \fB\-\-compression\fP\&.
  42. .sp
  43. If the outcome of the chunk processing indicates a change in compression
  44. type/level or obfuscation level, the processed chunk is written to the repository.
  45. Please note that the outcome might not always be the desired compression
  46. type/level \- if no compression gives a shorter output, that might be chosen.
  47. .sp
  48. Please note that this command can not work in low (or zero) free disk space
  49. conditions.
  50. .sp
  51. If the \fBborg repo\-compress\fP process receives a SIGINT signal (Ctrl\-C), the repo
  52. will be committed and compacted and borg will terminate cleanly afterwards.
  53. .sp
  54. Both \fB\-\-progress\fP and \fB\-\-stats\fP are recommended when \fBborg repo\-compress\fP
  55. is used interactively.
  56. .sp
  57. You do \fBnot\fP need to run \fBborg compact\fP after \fBborg repo\-compress\fP\&.
  58. .SH OPTIONS
  59. .sp
  60. See \fIborg\-common(1)\fP for common options of Borg commands.
  61. .SS options
  62. .INDENT 0.0
  63. .TP
  64. .BI \-C \ COMPRESSION\fR,\fB \ \-\-compression \ COMPRESSION
  65. select compression algorithm, see the output of the \(dqborg help compression\(dq command for details.
  66. .TP
  67. .B \-s\fP,\fB \-\-stats
  68. print statistics
  69. .UNINDENT
  70. .SH EXAMPLES
  71. .INDENT 0.0
  72. .INDENT 3.5
  73. .sp
  74. .EX
  75. # recompress repo contents
  76. $ borg repo\-compress \-\-progress \-\-compression=zstd,3
  77. # recompress and obfuscate repo contents
  78. $ borg repo\-compress \-\-progress \-\-compression=obfuscate,1,zstd,3
  79. .EE
  80. .UNINDENT
  81. .UNINDENT
  82. .SH SEE ALSO
  83. .sp
  84. \fIborg\-common(1)\fP
  85. .SH AUTHOR
  86. The Borg Collective
  87. .\" Generated by docutils manpage writer.
  88. .