borg-delete.1 2.8 KB

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