borg-repo-list.1 4.5 KB

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