borg-repo-list.1 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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-REPO-LIST" "1" "2025-05-22" "" "borg backup tool"
  31. .SH NAME
  32. borg-repo-list \- List the archives contained in a repository
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] repo\-list [options]
  36. .SH DESCRIPTION
  37. .sp
  38. This command lists the archives contained in a repository.
  39. .SH OPTIONS
  40. .sp
  41. See \fIborg\-common(1)\fP for common options of Borg commands.
  42. .SS options
  43. .INDENT 0.0
  44. .TP
  45. .B \-\-short
  46. only print the archive IDs, nothing else
  47. .TP
  48. .BI \-\-format \ FORMAT
  49. specify format for archive listing (default: \(dq{archive:<36} {time} [{id}]{NL}\(dq)
  50. .TP
  51. .B \-\-json
  52. Format output as JSON. The form of \fB\-\-format\fP is ignored, but keys used in it are added to the JSON output. Some keys are always present. Note: JSON can only represent text.
  53. .UNINDENT
  54. .SS Archive filters
  55. .INDENT 0.0
  56. .TP
  57. .BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERN
  58. only consider archives matching all patterns. see \(dqborg help match\-archives\(dq.
  59. .TP
  60. .BI \-\-sort\-by \ KEYS
  61. Comma\-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
  62. .TP
  63. .BI \-\-first \ N
  64. consider first N archives after other filters were applied
  65. .TP
  66. .BI \-\-last \ N
  67. consider last N archives after other filters were applied
  68. .TP
  69. .BI \-\-oldest \ TIMESPAN
  70. consider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  71. .TP
  72. .BI \-\-newest \ TIMESPAN
  73. consider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g. 7d or 12m.
  74. .TP
  75. .BI \-\-older \ TIMESPAN
  76. consider archives older than (now \- TIMESPAN), e.g. 7d or 12m.
  77. .TP
  78. .BI \-\-newer \ TIMESPAN
  79. consider archives newer than (now \- TIMESPAN), e.g. 7d or 12m.
  80. .TP
  81. .B \-\-deleted
  82. consider only soft\-deleted archives.
  83. .UNINDENT
  84. .SH EXAMPLES
  85. .INDENT 0.0
  86. .INDENT 3.5
  87. .sp
  88. .EX
  89. $ borg repo\-list
  90. 151b1a57 Mon, 2024\-09\-23 22:57:11 +0200 docs tw MacBook\-Pro this is a comment
  91. 3387a079 Thu, 2024\-09\-26 09:07:07 +0200 scripts tw MacBook\-Pro
  92. ca774425 Thu, 2024\-09\-26 10:05:23 +0200 scripts tw MacBook\-Pro
  93. ba56c4a5 Thu, 2024\-09\-26 10:12:45 +0200 src tw MacBook\-Pro
  94. 7567b79a Thu, 2024\-09\-26 10:15:07 +0200 scripts tw MacBook\-Pro
  95. 21ab3600 Thu, 2024\-09\-26 10:15:17 +0200 docs tw MacBook\-Pro
  96. \&...
  97. .EE
  98. .UNINDENT
  99. .UNINDENT
  100. .SH NOTES
  101. .SS The FORMAT specifier syntax
  102. .sp
  103. The \fB\-\-format\fP option uses python\(aqs format string syntax <https://docs.python.org/3.9/library/string.html#formatstrings>
  104. \&.
  105. .sp
  106. Examples:
  107. .INDENT 0.0
  108. .INDENT 3.5
  109. .sp
  110. .EX
  111. $ borg repo\-list \-\-format \(aq{archive}{NL}\(aq
  112. ArchiveFoo
  113. ArchiveBar
  114. \&...
  115. # {VAR:NUMBER} \- pad to NUMBER columns.
  116. # Strings are left\-aligned, numbers are right\-aligned.
  117. # Note: time columns except \(ga\(gaisomtime\(ga\(ga, \(ga\(gaisoctime\(ga\(ga and \(ga\(gaisoatime\(ga\(ga cannot be padded.
  118. $ borg repo\-list \-\-format \(aq{archive:36} {time} [{id}]{NL}\(aq /path/to/repo
  119. ArchiveFoo Thu, 2021\-12\-09 10:22:28 [0b8e9...3b274]
  120. \&...
  121. .EE
  122. .UNINDENT
  123. .UNINDENT
  124. .sp
  125. The following keys are always available:
  126. .INDENT 0.0
  127. .IP \(bu 2
  128. NEWLINE: OS dependent line separator
  129. .IP \(bu 2
  130. NL: alias of NEWLINE
  131. .IP \(bu 2
  132. NUL: NUL character for creating print0 / xargs \-0 like output
  133. .IP \(bu 2
  134. SPACE: space character
  135. .IP \(bu 2
  136. TAB: tab character
  137. .IP \(bu 2
  138. CR: carriage return character
  139. .IP \(bu 2
  140. LF: line feed character
  141. .UNINDENT
  142. .sp
  143. Keys available only when listing archives in a repository:
  144. .INDENT 0.0
  145. .IP \(bu 2
  146. archive: archive name
  147. .IP \(bu 2
  148. name: alias of \(dqarchive\(dq
  149. .IP \(bu 2
  150. comment: archive comment
  151. .IP \(bu 2
  152. id: internal ID of the archive
  153. .IP \(bu 2
  154. tags: archive tags
  155. .IP \(bu 2
  156. start: time (start) of creation of the archive
  157. .IP \(bu 2
  158. time: alias of \(dqstart\(dq
  159. .IP \(bu 2
  160. end: time (end) of creation of the archive
  161. .IP \(bu 2
  162. command_line: command line which was used to create the archive
  163. .IP \(bu 2
  164. hostname: hostname of host on which this archive was created
  165. .IP \(bu 2
  166. username: username of user who created this archive
  167. .IP \(bu 2
  168. size: size of this archive (data plus metadata, not considering compression and deduplication)
  169. .IP \(bu 2
  170. nfiles: count of files in this archive
  171. .UNINDENT
  172. .SH SEE ALSO
  173. .sp
  174. \fIborg\-common(1)\fP
  175. .SH AUTHOR
  176. The Borg Collective
  177. .\" Generated by docutils manpage writer.
  178. .