borg-delete.1 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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-DELETE" 1 "2022-06-25" "" "borg backup tool"
  31. .SH NAME
  32. borg-delete \- Delete archives
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] delete [options]
  36. .SH DESCRIPTION
  37. .sp
  38. This command deletes archives from the repository.
  39. .sp
  40. Important: When deleting archives, repository disk space is \fBnot\fP freed until
  41. you run \fBborg compact\fP\&.
  42. .sp
  43. When in doubt, use \fB\-\-dry\-run \-\-list\fP to see what would be deleted.
  44. .sp
  45. When using \fB\-\-stats\fP, you will get some statistics about how much data was
  46. deleted \- the "Deleted data" deduplicated size there is most interesting as
  47. that is how much your repository will shrink.
  48. Please note that the "All archives" stats refer to the state after deletion.
  49. .sp
  50. You can delete multiple archives by specifying their common prefix, if they
  51. have one, using the \fB\-\-prefix PREFIX\fP option. You can also specify a shell
  52. pattern to match multiple archives using the \fB\-\-glob\-archives GLOB\fP option
  53. (for more info on these patterns, see \fIborg_patterns\fP). Note that these
  54. two options are mutually exclusive.
  55. .sp
  56. Always first use \fB\-\-dry\-run \-\-list\fP to see what would be deleted.
  57. .SH OPTIONS
  58. .sp
  59. See \fIborg\-common(1)\fP for common options of Borg commands.
  60. .SS optional arguments
  61. .INDENT 0.0
  62. .TP
  63. .B \-n\fP,\fB \-\-dry\-run
  64. do not change repository
  65. .TP
  66. .B \-\-list
  67. output verbose list of archives
  68. .TP
  69. .B \-\-consider\-checkpoints
  70. consider checkpoint archives for deletion (default: not considered).
  71. .TP
  72. .B \-s\fP,\fB \-\-stats
  73. print statistics for the deleted archive
  74. .TP
  75. .B \-\-cache\-only
  76. delete only the local cache for the given repository
  77. .TP
  78. .B \-\-force
  79. force deletion of corrupted archives, use \fB\-\-force \-\-force\fP in case \fB\-\-force\fP does not work.
  80. .TP
  81. .B \-\-keep\-security\-info
  82. keep the local security info when deleting a repository
  83. .TP
  84. .B \-\-save\-space
  85. work slower, but using less space
  86. .UNINDENT
  87. .SS Archive filters
  88. .INDENT 0.0
  89. .TP
  90. .BI \-P \ PREFIX\fR,\fB \ \-\-prefix \ PREFIX
  91. only consider archive names starting with this prefix.
  92. .TP
  93. .BI \-a \ GLOB\fR,\fB \ \-\-glob\-archives \ GLOB
  94. only consider archive names matching the glob. sh: rules apply, see "borg help patterns". \fB\-\-prefix\fP and \fB\-\-glob\-archives\fP are mutually exclusive.
  95. .TP
  96. .BI \-\-sort\-by \ KEYS
  97. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  98. .TP
  99. .BI \-\-first \ N
  100. consider first N archives after other filters were applied
  101. .TP
  102. .BI \-\-last \ N
  103. consider last N archives after other filters were applied
  104. .UNINDENT
  105. .SH EXAMPLES
  106. .INDENT 0.0
  107. .INDENT 3.5
  108. .sp
  109. .nf
  110. .ft C
  111. # delete a single backup archive:
  112. $ borg delete Monday
  113. # actually free disk space:
  114. $ borg compact
  115. # delete all archives whose names begin with the machine\(aqs hostname followed by "\-"
  116. $ borg delete \-\-prefix \(aq{hostname}\-\(aq
  117. # delete all archives whose names contain "\-2012\-"
  118. $ borg delete \-a \(aq*\-2012\-*\(aq
  119. # see what would be deleted if delete was run without \-\-dry\-run
  120. $ borg delete \-\-list \-\-dry\-run \-a \(aq*\-May\-*\(aq
  121. .ft P
  122. .fi
  123. .UNINDENT
  124. .UNINDENT
  125. .SH SEE ALSO
  126. .sp
  127. \fIborg\-common(1)\fP, \fIborg\-compact(1)\fP
  128. .SH AUTHOR
  129. The Borg Collective
  130. .\" Generated by docutils manpage writer.
  131. .