borg-rlist.1 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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-RLIST" 1 "2022-06-26" "" "borg backup tool"
  31. .SH NAME
  32. borg-rlist \- List the archives contained in a repository
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] rlist [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 \-\-consider\-checkpoints
  46. Show checkpoint archives in the repository contents list (default: hidden).
  47. .TP
  48. .B \-\-short
  49. only print the archive names, nothing else
  50. .TP
  51. .BI \-\-format \ FORMAT
  52. specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}")
  53. .TP
  54. .B \-\-json
  55. 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. A "barchive" key is therefore not available.
  56. .UNINDENT
  57. .SS Archive filters
  58. .INDENT 0.0
  59. .TP
  60. .BI \-P \ PREFIX\fR,\fB \ \-\-prefix \ PREFIX
  61. only consider archive names starting with this prefix.
  62. .TP
  63. .BI \-a \ GLOB\fR,\fB \ \-\-glob\-archives \ GLOB
  64. only consider archive names matching the glob. sh: rules apply, see "borg help patterns". \fB\-\-prefix\fP and \fB\-\-glob\-archives\fP are mutually exclusive.
  65. .TP
  66. .BI \-\-sort\-by \ KEYS
  67. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  68. .TP
  69. .BI \-\-first \ N
  70. consider first N archives after other filters were applied
  71. .TP
  72. .BI \-\-last \ N
  73. consider last N archives after other filters were applied
  74. .UNINDENT
  75. .SH EXAMPLES
  76. .INDENT 0.0
  77. .INDENT 3.5
  78. .sp
  79. .nf
  80. .ft C
  81. $ borg rlist
  82. Monday Mon, 2016\-02\-15 19:15:11
  83. repo Mon, 2016\-02\-15 19:26:54
  84. root\-2016\-02\-15 Mon, 2016\-02\-15 19:36:29
  85. newname Mon, 2016\-02\-15 19:50:19
  86. \&...
  87. .ft P
  88. .fi
  89. .UNINDENT
  90. .UNINDENT
  91. .SH NOTES
  92. .SS The FORMAT specifier syntax
  93. .sp
  94. The \fB\-\-format\fP option uses python\(aqs \fI\%format string syntax\fP\&.
  95. .sp
  96. Examples:
  97. .INDENT 0.0
  98. .INDENT 3.5
  99. .sp
  100. .nf
  101. .ft C
  102. $ borg rlist \-\-format \(aq{archive}{NL}\(aq
  103. ArchiveFoo
  104. ArchiveBar
  105. \&...
  106. # {VAR:NUMBER} \- pad to NUMBER columns.
  107. # Strings are left\-aligned, numbers are right\-aligned.
  108. # Note: time columns except \(ga\(gaisomtime\(ga\(ga, \(ga\(gaisoctime\(ga\(ga and \(ga\(gaisoatime\(ga\(ga cannot be padded.
  109. $ borg rlist \-\-format \(aq{archive:36} {time} [{id}]{NL}\(aq /path/to/repo
  110. ArchiveFoo Thu, 2021\-12\-09 10:22:28 [0b8e9a312bef3f2f6e2d0fc110c196827786c15eba0188738e81697a7fa3b274]
  111. \&...
  112. .ft P
  113. .fi
  114. .UNINDENT
  115. .UNINDENT
  116. .sp
  117. The following keys are always available:
  118. \- NEWLINE: OS dependent line separator
  119. \- NL: alias of NEWLINE
  120. \- NUL: NUL character for creating print0 / xargs \-0 like output, see barchive and bpath keys below
  121. \- SPACE
  122. \- TAB
  123. \- CR
  124. \- LF
  125. .sp
  126. Keys available only when listing archives in a repository:
  127. .INDENT 0.0
  128. .IP \(bu 2
  129. archive: archive name interpreted as text (might be missing non\-text characters, see barchive)
  130. .IP \(bu 2
  131. name: alias of "archive"
  132. .IP \(bu 2
  133. barchive: verbatim archive name, can contain any character except NUL
  134. .IP \(bu 2
  135. comment: archive comment interpreted as text (might be missing non\-text characters, see bcomment)
  136. .IP \(bu 2
  137. bcomment: verbatim archive comment, can contain any character except NUL
  138. .IP \(bu 2
  139. id: internal ID of the archive
  140. .IP \(bu 2
  141. start: time (start) of creation of the archive
  142. .IP \(bu 2
  143. time: alias of "start"
  144. .IP \(bu 2
  145. end: time (end) of creation of the archive
  146. .IP \(bu 2
  147. command_line: command line which was used to create the archive
  148. .IP \(bu 2
  149. hostname: hostname of host on which this archive was created
  150. .IP \(bu 2
  151. username: username of user who created this archive
  152. .UNINDENT
  153. .SH SEE ALSO
  154. .sp
  155. \fIborg\-common(1)\fP
  156. .SH AUTHOR
  157. The Borg Collective
  158. .\" Generated by docutils manpage writer.
  159. .