borg-match-archives.1 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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-MATCH-ARCHIVES" "1" "2025-05-22" "" "borg backup tool"
  31. .SH NAME
  32. borg-match-archives \- Details regarding match-archives
  33. .SH DESCRIPTION
  34. .sp
  35. The \fB\-\-match\-archives\fP option matches a given pattern against the list of all archives
  36. in the repository. It can be given multiple times.
  37. .sp
  38. The patterns can have a prefix of:
  39. .INDENT 0.0
  40. .IP \(bu 2
  41. name: pattern match on the archive name (default)
  42. .IP \(bu 2
  43. aid: prefix match on the archive id (only one result allowed)
  44. .IP \(bu 2
  45. user: exact match on the username who created the archive
  46. .IP \(bu 2
  47. host: exact match on the hostname where the archive was created
  48. .IP \(bu 2
  49. tags: match on the archive tags
  50. .UNINDENT
  51. .sp
  52. In case of a name pattern match,
  53. it uses pattern styles similar to the ones described by \fBborg help patterns\fP:
  54. .INDENT 0.0
  55. .TP
  56. .B Identical match pattern, selector \fBid:\fP (default)
  57. Simple string match, must fully match exactly as given.
  58. .TP
  59. .B Shell\-style patterns, selector \fBsh:\fP
  60. Match like on the shell, wildcards like \fI*\fP and \fI?\fP work.
  61. .TP
  62. .B Regular expressions <https://docs.python.org/3/library/re.html>
  63. , selector \fBre:\fP
  64. Full regular expression support.
  65. This is very powerful, but can also get rather complicated.
  66. .UNINDENT
  67. .sp
  68. Examples:
  69. .INDENT 0.0
  70. .INDENT 3.5
  71. .sp
  72. .EX
  73. # name match, id: style
  74. borg delete \-\-match\-archives \(aqid:archive\-with\-crap\(aq
  75. borg delete \-a \(aqid:archive\-with\-crap\(aq # same, using short option
  76. borg delete \-a \(aqarchive\-with\-crap\(aq # same, because \(aqid:\(aq is the default
  77. # name match, sh: style
  78. borg delete \-a \(aqsh:home\-kenny\-*\(aq
  79. # name match, re: style
  80. borg delete \-a \(aqre:pc[123]\-home\-(user1|user2)\-2022\-09\-.*\(aq
  81. # archive id prefix match:
  82. borg delete \-a \(aqaid:d34db33f\(aq
  83. # host or user match
  84. borg delete \-a \(aquser:kenny\(aq
  85. borg delete \-a \(aqhost:kenny\-pc\(aq
  86. # tags match
  87. borg delete \-a \(aqtags:TAG1\(aq \-a \(aqtags:TAG2\(aq
  88. .EE
  89. .UNINDENT
  90. .UNINDENT
  91. .SH AUTHOR
  92. The Borg Collective
  93. .\" Generated by docutils manpage writer.
  94. .