2
0

borg-delete.1 2.9 KB

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