borg-repo-space.1 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-SPACE" "1" "2025-05-19" "" "borg backup tool"
  31. .SH NAME
  32. borg-repo-space \- Manage reserved space in repository
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] repo\-space [options]
  36. .SH DESCRIPTION
  37. .sp
  38. This command manages reserved space in a repository.
  39. .sp
  40. Borg can not work in disk\-full conditions (can not lock a repo and thus can
  41. not run prune/delete or compact operations to free disk space).
  42. .sp
  43. To avoid running into dead\-end situations like that, you can put some objects
  44. into a repository that take up some disk space. If you ever run into a
  45. disk\-full situation, you can free that space and then borg will be able to
  46. run normally, so you can free more disk space by using prune/delete/compact.
  47. After that, don\(aqt forget to reserve space again, in case you run into that
  48. situation again at a later time.
  49. .sp
  50. Examples:
  51. .INDENT 0.0
  52. .INDENT 3.5
  53. .sp
  54. .EX
  55. # Create a new repository:
  56. $ borg repo\-create ...
  57. # Reserve approx. 1GB of space for emergencies:
  58. $ borg repo\-space \-\-reserve 1G
  59. # Check amount of reserved space in the repository:
  60. $ borg repo\-space
  61. # EMERGENCY! Free all reserved space to get things back to normal:
  62. $ borg repo\-space \-\-free
  63. $ borg prune ...
  64. $ borg delete ...
  65. $ borg compact \-v # only this actually frees space of deleted archives
  66. $ borg repo\-space \-\-reserve 1G # reserve space again for next time
  67. .EE
  68. .UNINDENT
  69. .UNINDENT
  70. .sp
  71. Reserved space is always rounded up to use full reservation blocks of 64MiB.
  72. .SH OPTIONS
  73. .sp
  74. See \fIborg\-common(1)\fP for common options of Borg commands.
  75. .SS options
  76. .INDENT 0.0
  77. .TP
  78. .BI \-\-reserve \ SPACE
  79. Amount of space to reserve (e.g. 100M, 1G). Default: 0.
  80. .TP
  81. .B \-\-free
  82. Free all reserved space. Don\(aqt forget to reserve space later again.
  83. .UNINDENT
  84. .SH SEE ALSO
  85. .sp
  86. \fIborg\-common(1)\fP
  87. .SH AUTHOR
  88. The Borg Collective
  89. .\" Generated by docutils manpage writer.
  90. .