borg-repo-space.1 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 "2024-09-26" "" "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. .nf
  55. .ft C
  56. # Create a new repository:
  57. $ borg repo\-create ...
  58. # Reserve approx. 1GB of space for emergencies:
  59. $ borg repo\-space \-\-reserve 1G
  60. # Check amount of reserved space in the repository:
  61. $ borg repo\-space
  62. # EMERGENCY! Free all reserved space to get things back to normal:
  63. $ borg repo\-space \-\-free
  64. $ borg prune ...
  65. $ borg delete ...
  66. $ borg compact \-v # only this actually frees space of deleted archives
  67. $ borg repo\-space \-\-reserve 1G # reserve space again for next time
  68. .ft P
  69. .fi
  70. .UNINDENT
  71. .UNINDENT
  72. .sp
  73. Reserved space is always rounded up to use full reservation blocks of 64MiB.
  74. .SH OPTIONS
  75. .sp
  76. See \fIborg\-common(1)\fP for common options of Borg commands.
  77. .SS optional arguments
  78. .INDENT 0.0
  79. .TP
  80. .BI \-\-reserve \ SPACE
  81. Amount of space to reserve (e.g. 100M, 1G). Default: 0.
  82. .TP
  83. .B \-\-free
  84. Free all reserved space. Don\(aqt forget to reserve space later again.
  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. .