borg-compact.1 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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-COMPACT" 1 "2023-09-14" "" "borg backup tool"
  31. .SH NAME
  32. borg-compact \- compact segment files in the repository
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] compact [options]
  36. .SH DESCRIPTION
  37. .sp
  38. This command frees repository space by compacting segments.
  39. .sp
  40. Use this regularly to avoid running out of space \- you do not need to use this
  41. after each borg command though. It is especially useful after deleting archives,
  42. because only compaction will really free repository space.
  43. .sp
  44. borg compact does not need a key, so it is possible to invoke it from the
  45. client or also from the server.
  46. .sp
  47. Depending on the amount of segments that need compaction, it may take a while,
  48. so consider using the \fB\-\-progress\fP option.
  49. .sp
  50. A segment is compacted if the amount of saved space is above the percentage value
  51. given by the \fB\-\-threshold\fP option. If omitted, a threshold of 10% is used.
  52. When using \fB\-\-verbose\fP, borg will output an estimate of the freed space.
  53. .sp
  54. See \fIseparate_compaction\fP in Additional Notes for more details.
  55. .SH OPTIONS
  56. .sp
  57. See \fIborg\-common(1)\fP for common options of Borg commands.
  58. .SS options
  59. .INDENT 0.0
  60. .TP
  61. .BI \-\-threshold \ PERCENT
  62. set minimum threshold for saved space in PERCENT (Default: 10)
  63. .UNINDENT
  64. .SH EXAMPLES
  65. .INDENT 0.0
  66. .INDENT 3.5
  67. .sp
  68. .nf
  69. .ft C
  70. # compact segments and free repo disk space
  71. $ borg compact
  72. .ft P
  73. .fi
  74. .UNINDENT
  75. .UNINDENT
  76. .SH SEE ALSO
  77. .sp
  78. \fIborg\-common(1)\fP
  79. .SH AUTHOR
  80. The Borg Collective
  81. .\" Generated by docutils manpage writer.
  82. .