borg-list.1 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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-LIST" 1 "2023-01-02" "" "borg backup tool"
  31. .SH NAME
  32. borg-list \- List archive contents
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] list [options] NAME [PATH...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command lists the contents of an archive.
  39. .sp
  40. For more help on include/exclude patterns, see the \fIborg_patterns\fP command output.
  41. .SH OPTIONS
  42. .sp
  43. See \fIborg\-common(1)\fP for common options of Borg commands.
  44. .SS arguments
  45. .INDENT 0.0
  46. .TP
  47. .B NAME
  48. specify the archive name
  49. .TP
  50. .B PATH
  51. paths to list; patterns are supported
  52. .UNINDENT
  53. .SS options
  54. .INDENT 0.0
  55. .TP
  56. .B \-\-short
  57. only print file/directory names, nothing else
  58. .TP
  59. .BI \-\-format \ FORMAT
  60. specify format for file listing (default: \(dq{mode} {user:6} {group:6} {size:8} {mtime} {path}{extra}{NL}\(dq)
  61. .TP
  62. .B \-\-json\-lines
  63. Format output as JSON Lines. 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.
  64. .UNINDENT
  65. .SS Exclusion options
  66. .INDENT 0.0
  67. .TP
  68. .BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
  69. exclude paths matching PATTERN
  70. .TP
  71. .BI \-\-exclude\-from \ EXCLUDEFILE
  72. read exclude patterns from EXCLUDEFILE, one per line
  73. .TP
  74. .BI \-\-pattern \ PATTERN
  75. include/exclude paths matching PATTERN
  76. .TP
  77. .BI \-\-patterns\-from \ PATTERNFILE
  78. read include/exclude patterns from PATTERNFILE, one per line
  79. .UNINDENT
  80. .SH EXAMPLES
  81. .INDENT 0.0
  82. .INDENT 3.5
  83. .sp
  84. .nf
  85. .ft C
  86. $ borg list root\-2016\-02\-15
  87. drwxr\-xr\-x root root 0 Mon, 2016\-02\-15 17:44:27 .
  88. drwxrwxr\-x root root 0 Mon, 2016\-02\-15 19:04:49 bin
  89. \-rwxr\-xr\-x root root 1029624 Thu, 2014\-11\-13 00:08:51 bin/bash
  90. lrwxrwxrwx root root 0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff
  91. \-rwxr\-xr\-x root root 2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff
  92. \&...
  93. $ borg list root\-2016\-02\-15 \-\-pattern \(dq\- bin/ba*\(dq
  94. drwxr\-xr\-x root root 0 Mon, 2016\-02\-15 17:44:27 .
  95. drwxrwxr\-x root root 0 Mon, 2016\-02\-15 19:04:49 bin
  96. lrwxrwxrwx root root 0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff
  97. \-rwxr\-xr\-x root root 2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff
  98. \&...
  99. $ borg list archiveA \-\-format=\(dq{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}\(dq
  100. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 .
  101. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code
  102. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code/myproject
  103. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext
  104. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.text
  105. \&...
  106. $ borg list archiveA \-\-pattern \(aqre:\e.ext$\(aq
  107. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext
  108. \&...
  109. $ borg list archiveA \-\-pattern \(aqre:.ext$\(aq
  110. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext
  111. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.text
  112. \&...
  113. .ft P
  114. .fi
  115. .UNINDENT
  116. .UNINDENT
  117. .SH NOTES
  118. .SS The FORMAT specifier syntax
  119. .sp
  120. The \fB\-\-format\fP option uses python\(aqs \fI\%format string syntax\fP\&.
  121. .sp
  122. Examples:
  123. .INDENT 0.0
  124. .INDENT 3.5
  125. .sp
  126. .nf
  127. .ft C
  128. $ borg list \-\-format \(aq{mode} {user:6} {group:6} {size:8} {mtime} {path}{extra}{NL}\(aq ArchiveFoo
  129. \-rw\-rw\-r\-\- user user 1024 Thu, 2021\-12\-09 10:22:17 file\-foo
  130. \&...
  131. # {VAR:<NUMBER} \- pad to NUMBER columns left\-aligned.
  132. # {VAR:>NUMBER} \- pad to NUMBER columns right\-aligned.
  133. $ borg list \-\-format \(aq{mode} {user:>6} {group:>6} {size:<8} {mtime} {path}{extra}{NL}\(aq ArchiveFoo
  134. \-rw\-rw\-r\-\- user user 1024 Thu, 2021\-12\-09 10:22:17 file\-foo
  135. \&...
  136. .ft P
  137. .fi
  138. .UNINDENT
  139. .UNINDENT
  140. .sp
  141. The following keys are always available:
  142. .INDENT 0.0
  143. .IP \(bu 2
  144. NEWLINE: OS dependent line separator
  145. .IP \(bu 2
  146. NL: alias of NEWLINE
  147. .IP \(bu 2
  148. NUL: NUL character for creating print0 / xargs \-0 like output
  149. .IP \(bu 2
  150. SPACE
  151. .IP \(bu 2
  152. TAB
  153. .IP \(bu 2
  154. CR
  155. .IP \(bu 2
  156. LF
  157. .UNINDENT
  158. .sp
  159. Keys available only when listing files in an archive:
  160. .INDENT 0.0
  161. .IP \(bu 2
  162. type
  163. .IP \(bu 2
  164. mode
  165. .IP \(bu 2
  166. uid
  167. .IP \(bu 2
  168. gid
  169. .IP \(bu 2
  170. user
  171. .IP \(bu 2
  172. group
  173. .IP \(bu 2
  174. path: file path
  175. .IP \(bu 2
  176. source: link target for symlinks (identical to linktarget)
  177. .IP \(bu 2
  178. linktarget
  179. .IP \(bu 2
  180. hlid: hard link identity (same if hardlinking same fs object)
  181. .IP \(bu 2
  182. flags
  183. .IP \(bu 2
  184. size
  185. .IP \(bu 2
  186. dsize: deduplicated size
  187. .IP \(bu 2
  188. num_chunks: number of chunks in this file
  189. .IP \(bu 2
  190. unique_chunks: number of unique chunks in this file
  191. .IP \(bu 2
  192. mtime
  193. .IP \(bu 2
  194. ctime
  195. .IP \(bu 2
  196. atime
  197. .IP \(bu 2
  198. isomtime
  199. .IP \(bu 2
  200. isoctime
  201. .IP \(bu 2
  202. isoatime
  203. .IP \(bu 2
  204. blake2b
  205. .IP \(bu 2
  206. blake2s
  207. .IP \(bu 2
  208. md5
  209. .IP \(bu 2
  210. sha1
  211. .IP \(bu 2
  212. sha224
  213. .IP \(bu 2
  214. sha256
  215. .IP \(bu 2
  216. sha384
  217. .IP \(bu 2
  218. sha3_224
  219. .IP \(bu 2
  220. sha3_256
  221. .IP \(bu 2
  222. sha3_384
  223. .IP \(bu 2
  224. sha3_512
  225. .IP \(bu 2
  226. sha512
  227. .IP \(bu 2
  228. xxh64: XXH64 checksum of this file (note: this is NOT a cryptographic hash!)
  229. .IP \(bu 2
  230. archiveid
  231. .IP \(bu 2
  232. archivename
  233. .IP \(bu 2
  234. extra: prepends {source} with \(dq \-> \(dq for soft links and \(dq link to \(dq for hard links
  235. .IP \(bu 2
  236. health: either \(dqhealthy\(dq (file ok) or \(dqbroken\(dq (if file has all\-zero replacement chunks)
  237. .UNINDENT
  238. .SH SEE ALSO
  239. .sp
  240. \fIborg\-common(1)\fP, \fIborg\-info(1)\fP, \fIborg\-diff(1)\fP, \fIborg\-prune(1)\fP, \fIborg\-patterns(1)\fP, \fIborg\-rlist(1)\fP
  241. .SH AUTHOR
  242. The Borg Collective
  243. .\" Generated by docutils manpage writer.
  244. .