borg-delete.1 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-DELETE 1 "2017-11-25" "" "borg backup tool"
  4. .SH NAME
  5. borg-delete \- Delete an existing repository or archives
  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] delete [options] [TARGET] [ARCHIVE...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command deletes an archive from the repository or the complete repository.
  39. Disk space is reclaimed accordingly. If you delete the complete repository, the
  40. local cache for it (if any) is also deleted.
  41. .sp
  42. When using \fB\-\-stats\fP, you will get some statistics about how much data was
  43. deleted \- the "Deleted data" deduplicated size there is most interesting as
  44. that is how much your repository will shrink.
  45. Please note that the "All archives" stats refer to the state after deletion.
  46. .SH OPTIONS
  47. .sp
  48. See \fIborg\-common(1)\fP for common options of Borg commands.
  49. .SS arguments
  50. .INDENT 0.0
  51. .TP
  52. .B TARGET
  53. archive or repository to delete
  54. .TP
  55. .B ARCHIVE
  56. archives to delete
  57. .UNINDENT
  58. .SS optional arguments
  59. .INDENT 0.0
  60. .TP
  61. .B \-s\fP,\fB \-\-stats
  62. print statistics for the deleted archive
  63. .TP
  64. .B \-\-cache\-only
  65. delete only the local cache for the given repository
  66. .TP
  67. .B \-\-force
  68. force deletion of corrupted archives, use \fB\-\-force \-\-force\fP in case \fB\-\-force\fP does not work.
  69. .TP
  70. .B \-\-save\-space
  71. work slower, but using less space
  72. .UNINDENT
  73. .SS Archive filters
  74. .INDENT 0.0
  75. .TP
  76. .BI \-P \ PREFIX\fP,\fB \ \-\-prefix \ PREFIX
  77. only consider archive names starting with this prefix.
  78. .TP
  79. .BI \-a \ GLOB\fP,\fB \ \-\-glob\-archives \ GLOB
  80. 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.
  81. .TP
  82. .BI \-\-sort\-by \ KEYS
  83. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  84. .TP
  85. .BI \-\-first \ N
  86. consider first N archives after other filters were applied
  87. .TP
  88. .BI \-\-last \ N
  89. consider last N archives after other filters were applied
  90. .UNINDENT
  91. .SH EXAMPLES
  92. .INDENT 0.0
  93. .INDENT 3.5
  94. .sp
  95. .nf
  96. .ft C
  97. # delete a single backup archive:
  98. $ borg delete /path/to/repo::Monday
  99. # delete the whole repository and the related local cache:
  100. $ borg delete /path/to/repo
  101. You requested to completely DELETE the repository *including* all archives it contains:
  102. repo Mon, 2016\-02\-15 19:26:54
  103. root\-2016\-02\-15 Mon, 2016\-02\-15 19:36:29
  104. newname Mon, 2016\-02\-15 19:50:19
  105. Type \(aqYES\(aq if you understand this and want to continue: YES
  106. .ft P
  107. .fi
  108. .UNINDENT
  109. .UNINDENT
  110. .SH SEE ALSO
  111. .sp
  112. \fIborg\-common(1)\fP
  113. .SH AUTHOR
  114. The Borg Collective
  115. .\" Generated by docutils manpage writer.
  116. .