borg-match-archives.1 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 "2023-09-14" "" "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 archive
  36. names in the repository.
  37. .sp
  38. It uses pattern styles similar to the ones described by \fBborg help patterns\fP:
  39. .INDENT 0.0
  40. .TP
  41. .B Identical match pattern, selector \fBid:\fP (default)
  42. Simple string match, must fully match exactly as given.
  43. .TP
  44. .B Shell\-style patterns, selector \fBsh:\fP
  45. Match like on the shell, wildcards like \fI*\fP and \fI?\fP work.
  46. .TP
  47. .B \fI\%Regular expressions\fP, selector \fBre:\fP
  48. Full regular expression support.
  49. This is very powerful, but can also get rather complicated.
  50. .UNINDENT
  51. .sp
  52. Examples:
  53. .INDENT 0.0
  54. .INDENT 3.5
  55. .sp
  56. .nf
  57. .ft C
  58. # id: style
  59. borg delete \-\-match\-archives \(aqid:archive\-with\-crap\(aq
  60. borg delete \-a \(aqid:archive\-with\-crap\(aq # same, using short option
  61. borg delete \-a \(aqarchive\-with\-crap\(aq # same, because \(aqid:\(aq is the default
  62. # sh: style
  63. borg delete \-a \(aqsh:home\-kenny\-*\(aq
  64. # re: style
  65. borg delete \-a \(aqre:pc[123]\-home\-(user1|user2)\-2022\-09\-.*\(aq
  66. .ft P
  67. .fi
  68. .UNINDENT
  69. .UNINDENT
  70. .SH AUTHOR
  71. The Borg Collective
  72. .\" Generated by docutils manpage writer.
  73. .