borg-repo-list.1 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 "2024-11-16" "" "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 optional arguments
  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. .nf
  89. .ft C
  90. $ borg repo\-list
  91. 151b1a57 Mon, 2024\-09\-23 22:57:11 +0200 docs tw MacBook\-Pro this is a comment
  92. 3387a079 Thu, 2024\-09\-26 09:07:07 +0200 scripts tw MacBook\-Pro
  93. ca774425 Thu, 2024\-09\-26 10:05:23 +0200 scripts tw MacBook\-Pro
  94. ba56c4a5 Thu, 2024\-09\-26 10:12:45 +0200 src tw MacBook\-Pro
  95. 7567b79a Thu, 2024\-09\-26 10:15:07 +0200 scripts tw MacBook\-Pro
  96. 21ab3600 Thu, 2024\-09\-26 10:15:17 +0200 docs tw MacBook\-Pro
  97. \&...
  98. .ft P
  99. .fi
  100. .UNINDENT
  101. .UNINDENT
  102. .SH NOTES
  103. .SS The FORMAT specifier syntax
  104. .sp
  105. The \fB\-\-format\fP option uses python\(aqs \fI\%format string syntax\fP\&.
  106. .sp
  107. Examples:
  108. .INDENT 0.0
  109. .INDENT 3.5
  110. .sp
  111. .nf
  112. .ft C
  113. $ borg repo\-list \-\-format \(aq{archive}{NL}\(aq
  114. ArchiveFoo
  115. ArchiveBar
  116. \&...
  117. # {VAR:NUMBER} \- pad to NUMBER columns.
  118. # Strings are left\-aligned, numbers are right\-aligned.
  119. # Note: time columns except \(ga\(gaisomtime\(ga\(ga, \(ga\(gaisoctime\(ga\(ga and \(ga\(gaisoatime\(ga\(ga cannot be padded.
  120. $ borg repo\-list \-\-format \(aq{archive:36} {time} [{id}]{NL}\(aq /path/to/repo
  121. ArchiveFoo Thu, 2021\-12\-09 10:22:28 [0b8e9...3b274]
  122. \&...
  123. .ft P
  124. .fi
  125. .UNINDENT
  126. .UNINDENT
  127. .sp
  128. The following keys are always available:
  129. .INDENT 0.0
  130. .IP \(bu 2
  131. NEWLINE: OS dependent line separator
  132. .IP \(bu 2
  133. NL: alias of NEWLINE
  134. .IP \(bu 2
  135. NUL: NUL character for creating print0 / xargs \-0 like output
  136. .IP \(bu 2
  137. SPACE: space character
  138. .IP \(bu 2
  139. TAB: tab character
  140. .IP \(bu 2
  141. CR: carriage return character
  142. .IP \(bu 2
  143. LF: line feed character
  144. .UNINDENT
  145. .sp
  146. Keys available only when listing archives in a repository:
  147. .INDENT 0.0
  148. .IP \(bu 2
  149. archive: archive name
  150. .IP \(bu 2
  151. name: alias of \(dqarchive\(dq
  152. .IP \(bu 2
  153. comment: archive comment
  154. .IP \(bu 2
  155. id: internal ID of the archive
  156. .IP \(bu 2
  157. tags: archive tags
  158. .IP \(bu 2
  159. start: time (start) of creation of the archive
  160. .IP \(bu 2
  161. time: alias of \(dqstart\(dq
  162. .IP \(bu 2
  163. end: time (end) of creation of the archive
  164. .IP \(bu 2
  165. command_line: command line which was used to create the archive
  166. .IP \(bu 2
  167. hostname: hostname of host on which this archive was created
  168. .IP \(bu 2
  169. username: username of user who created this archive
  170. .IP \(bu 2
  171. size: size of this archive (data plus metadata, not considering compression and deduplication)
  172. .IP \(bu 2
  173. nfiles: count of files in this archive
  174. .UNINDENT
  175. .SH SEE ALSO
  176. .sp
  177. \fIborg\-common(1)\fP
  178. .SH AUTHOR
  179. The Borg Collective
  180. .\" Generated by docutils manpage writer.
  181. .