borg-compact.1 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-COMPACT 1 "2019-09-06" "" "borg backup tool"
  4. .SH NAME
  5. borg-compact \- compact segment files in the repository
  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 SYNOPSIS
  34. .sp
  35. borg [common options] compact [options] [REPOSITORY]
  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. When using \fB\-\-verbose\fP, borg will output an estimate of the freed space.
  51. .sp
  52. After upgrading borg (server) to 1.2+, you can use \fBborg compact \-\-cleanup\-commits\fP
  53. to clean up the numerous 17byte commit\-only segments that borg 1.1 did not clean up
  54. due to a bug. It is enough to do that once per repository.
  55. .sp
  56. See \fIseparate_compaction\fP in Additional Notes for more details.
  57. .SH OPTIONS
  58. .sp
  59. See \fIborg\-common(1)\fP for common options of Borg commands.
  60. .SS arguments
  61. .INDENT 0.0
  62. .TP
  63. .B REPOSITORY
  64. repository to compact
  65. .UNINDENT
  66. .SS optional arguments
  67. .INDENT 0.0
  68. .TP
  69. .B \-\-cleanup\-commits
  70. cleanup commit\-only 17\-byte segment files
  71. .UNINDENT
  72. .SH EXAMPLES
  73. .INDENT 0.0
  74. .INDENT 3.5
  75. .sp
  76. .nf
  77. .ft C
  78. # compact segments and free repo disk space
  79. $ borg compact /path/to/repo
  80. # same as above plus clean up 17byte commit\-only segments
  81. $ borg compact \-\-cleanup\-commits /path/to/repo
  82. .ft P
  83. .fi
  84. .UNINDENT
  85. .UNINDENT
  86. .SH SEE ALSO
  87. .sp
  88. \fIborg\-common(1)\fP
  89. .SH AUTHOR
  90. The Borg Collective
  91. .\" Generated by docutils manpage writer.
  92. .