borg-delete.1 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 "2023-09-14" "" "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 \(dqDeleted data\(dq deduplicated size there is most interesting as
  47. that is how much your repository will shrink.
  48. Please note that the \(dqAll archives\(dq stats refer to the state after deletion.
  49. .sp
  50. You can delete multiple archives by specifying a matching pattern,
  51. using the \fB\-\-match\-archives PATTERN\fP option (for more info on these patterns,
  52. see \fIborg_patterns\fP).
  53. .sp
  54. Always first use \fB\-\-dry\-run \-\-list\fP to see what would be deleted.
  55. .SH OPTIONS
  56. .sp
  57. See \fIborg\-common(1)\fP for common options of Borg commands.
  58. .SS options
  59. .INDENT 0.0
  60. .TP
  61. .B \-n\fP,\fB \-\-dry\-run
  62. do not change repository
  63. .TP
  64. .B \-\-list
  65. output verbose list of archives
  66. .TP
  67. .B \-\-consider\-checkpoints
  68. consider checkpoint archives for deletion (default: not considered).
  69. .TP
  70. .B \-s\fP,\fB \-\-stats
  71. print statistics for the deleted archive
  72. .TP
  73. .B \-\-force
  74. force deletion of corrupted archives, use \fB\-\-force \-\-force\fP in case \fB\-\-force\fP does not work.
  75. .TP
  76. .BI \-c \ SECONDS\fR,\fB \ \-\-checkpoint\-interval \ SECONDS
  77. write checkpoint every SECONDS seconds (Default: 1800)
  78. .UNINDENT
  79. .SS Archive filters
  80. .INDENT 0.0
  81. .TP
  82. .BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERN
  83. only consider archive names matching the pattern. see \(dqborg help match\-archives\(dq.
  84. .TP
  85. .BI \-\-sort\-by \ KEYS
  86. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  87. .TP
  88. .BI \-\-first \ N
  89. consider first N archives after other filters were applied
  90. .TP
  91. .BI \-\-last \ N
  92. consider last N archives after other filters were applied
  93. .TP
  94. .BI \-\-oldest \ TIMESPAN
  95. consider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  96. .TP
  97. .BI \-\-newest \ TIMESPAN
  98. consider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g. 7d or 12m.
  99. .TP
  100. .BI \-\-older \ TIMESPAN
  101. consider archives older than (now \- TIMESPAN), e.g. 7d oder 12m.
  102. .TP
  103. .BI \-\-newer \ TIMESPAN
  104. consider archives newer than (now \- TIMESPAN), e.g. 7d or 12m.
  105. .UNINDENT
  106. .SH EXAMPLES
  107. .INDENT 0.0
  108. .INDENT 3.5
  109. .sp
  110. .nf
  111. .ft C
  112. # delete a single backup archive:
  113. $ borg delete \-a Monday
  114. # actually free disk space:
  115. $ borg compact
  116. # delete all archives whose names begin with the machine\(aqs hostname followed by \(dq\-\(dq
  117. $ borg delete \-a \(aqsh:{hostname}\-*\(aq
  118. # delete all archives whose names contain \(dq\-2012\-\(dq
  119. $ borg delete \-a \(aqsh:*\-2012\-*\(aq
  120. # see what would be deleted if delete was run without \-\-dry\-run
  121. $ borg delete \-\-list \-\-dry\-run \-a \(aqsh:*\-May\-*\(aq
  122. .ft P
  123. .fi
  124. .UNINDENT
  125. .UNINDENT
  126. .SH SEE ALSO
  127. .sp
  128. \fIborg\-common(1)\fP, \fIborg\-compact(1)\fP, \fIborg\-rdelete(1)\fP
  129. .SH AUTHOR
  130. The Borg Collective
  131. .\" Generated by docutils manpage writer.
  132. .