borg-compact.1 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-COMPACT 1 "2019-03-21" "" "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.
  42. .sp
  43. borg compact does not need a key, so it is possible to invoke it from the
  44. client or also from the server.
  45. .sp
  46. Depending on the amount of segments that need compaction, it may take a while.
  47. .sp
  48. See \fIseparate_compaction\fP in Additional Notes for more details.
  49. .SH OPTIONS
  50. .sp
  51. See \fIborg\-common(1)\fP for common options of Borg commands.
  52. .SS arguments
  53. .INDENT 0.0
  54. .TP
  55. .B REPOSITORY
  56. repository to compact
  57. .UNINDENT
  58. .SS optional arguments
  59. .INDENT 0.0
  60. .TP
  61. .B \-\-cleanup\-commits
  62. cleanup commit\-only 17\-byte segment files
  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 /path/to/repo
  72. # same as above plus clean up 17byte commit\-only segments,
  73. # use this one time after upgrading borg (server) to 1.2+
  74. # to clean up the tiny segments files created by borg 1.1:
  75. $ borg compact \-\-cleanup\-commits /path/to/repo
  76. .ft P
  77. .fi
  78. .UNINDENT
  79. .UNINDENT
  80. .SH SEE ALSO
  81. .sp
  82. \fIborg\-common(1)\fP
  83. .SH AUTHOR
  84. The Borg Collective
  85. .\" Generated by docutils manpage writer.
  86. .