borg-list.1 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-LIST 1 "2020-12-06" "" "borg backup tool"
  4. .SH NAME
  5. borg-list \- List archive or repository contents
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] list [options] [REPOSITORY_OR_ARCHIVE] [PATH...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command lists the contents of a repository or an archive.
  39. .sp
  40. See the "borg help patterns" command for more help on exclude patterns.
  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 REPOSITORY_OR_ARCHIVE
  48. repository or archive to list contents of
  49. .TP
  50. .B PATH
  51. paths to list; patterns are supported
  52. .UNINDENT
  53. .SS optional arguments
  54. .INDENT 0.0
  55. .TP
  56. .B \-\-consider\-checkpoints
  57. Show checkpoint archives in the repository contents list (default: hidden).
  58. .TP
  59. .B \-\-short
  60. only print file/directory names, nothing else
  61. .TP
  62. .BI \-\-format \ FORMAT\fR,\fB \ \-\-list\-format \ FORMAT
  63. specify format for file listing (default: "{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NL}")
  64. .TP
  65. .B \-\-json
  66. Only valid for listing repository contents. 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.
  67. .TP
  68. .B \-\-json\-lines
  69. Only valid for listing archive contents. 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. A "bpath" key is therefore not available.
  70. .UNINDENT
  71. .SS Archive filters
  72. .INDENT 0.0
  73. .TP
  74. .BI \-P \ PREFIX\fR,\fB \ \-\-prefix \ PREFIX
  75. only consider archive names starting with this prefix.
  76. .TP
  77. .BI \-a \ GLOB\fR,\fB \ \-\-glob\-archives \ GLOB
  78. 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.
  79. .TP
  80. .BI \-\-sort\-by \ KEYS
  81. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  82. .TP
  83. .BI \-\-first \ N
  84. consider first N archives after other filters were applied
  85. .TP
  86. .BI \-\-last \ N
  87. consider last N archives after other filters were applied
  88. .UNINDENT
  89. .SS Exclusion options
  90. .INDENT 0.0
  91. .TP
  92. .BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
  93. exclude paths matching PATTERN
  94. .TP
  95. .BI \-\-exclude\-from \ EXCLUDEFILE
  96. read exclude patterns from EXCLUDEFILE, one per line
  97. .TP
  98. .BI \-\-pattern \ PATTERN
  99. experimental: include/exclude paths matching PATTERN
  100. .TP
  101. .BI \-\-patterns\-from \ PATTERNFILE
  102. experimental: read include/exclude patterns from PATTERNFILE, one per line
  103. .UNINDENT
  104. .SH EXAMPLES
  105. .INDENT 0.0
  106. .INDENT 3.5
  107. .sp
  108. .nf
  109. .ft C
  110. $ borg list /path/to/repo
  111. Monday Mon, 2016\-02\-15 19:15:11
  112. repo Mon, 2016\-02\-15 19:26:54
  113. root\-2016\-02\-15 Mon, 2016\-02\-15 19:36:29
  114. newname Mon, 2016\-02\-15 19:50:19
  115. \&...
  116. $ borg list /path/to/repo::root\-2016\-02\-15
  117. drwxr\-xr\-x root root 0 Mon, 2016\-02\-15 17:44:27 .
  118. drwxrwxr\-x root root 0 Mon, 2016\-02\-15 19:04:49 bin
  119. \-rwxr\-xr\-x root root 1029624 Thu, 2014\-11\-13 00:08:51 bin/bash
  120. lrwxrwxrwx root root 0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff
  121. \-rwxr\-xr\-x root root 2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff
  122. \&...
  123. $ borg list /path/to/repo::root\-2016\-02\-15 \-\-pattern "\- bin/ba*"
  124. drwxr\-xr\-x root root 0 Mon, 2016\-02\-15 17:44:27 .
  125. drwxrwxr\-x root root 0 Mon, 2016\-02\-15 19:04:49 bin
  126. lrwxrwxrwx root root 0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff
  127. \-rwxr\-xr\-x root root 2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff
  128. \&...
  129. $ borg list /path/to/repo::archiveA \-\-format="{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}"
  130. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 .
  131. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code
  132. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code/myproject
  133. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext
  134. \&...
  135. .ft P
  136. .fi
  137. .UNINDENT
  138. .UNINDENT
  139. .SH NOTES
  140. .sp
  141. The following keys are available for \fB\-\-format\fP:
  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, see barchive/bpath
  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 for listing repository archives:
  160. .INDENT 0.0
  161. .IP \(bu 2
  162. archive: archive name interpreted as text (might be missing non\-text characters, see barchive)
  163. .IP \(bu 2
  164. name: alias of "archive"
  165. .IP \(bu 2
  166. barchive: verbatim archive name, can contain any character except NUL
  167. .IP \(bu 2
  168. comment: archive comment interpreted as text (might be missing non\-text characters, see bcomment)
  169. .IP \(bu 2
  170. bcomment: verbatim archive comment, can contain any character except NUL
  171. .IP \(bu 2
  172. id: internal ID of the archive
  173. .IP \(bu 2
  174. start: time (start) of creation of the archive
  175. .IP \(bu 2
  176. time: alias of "start"
  177. .IP \(bu 2
  178. end: time (end) of creation of the archive
  179. .IP \(bu 2
  180. hostname: hostname of host on which this archive was created
  181. .IP \(bu 2
  182. username: username of user who created this archive
  183. .UNINDENT
  184. .sp
  185. Keys for listing archive files:
  186. .INDENT 0.0
  187. .IP \(bu 2
  188. type
  189. .IP \(bu 2
  190. mode
  191. .IP \(bu 2
  192. uid
  193. .IP \(bu 2
  194. gid
  195. .IP \(bu 2
  196. user
  197. .IP \(bu 2
  198. group
  199. .IP \(bu 2
  200. path: path interpreted as text (might be missing non\-text characters, see bpath)
  201. .IP \(bu 2
  202. bpath: verbatim POSIX path, can contain any character except NUL
  203. .IP \(bu 2
  204. source: link target for links (identical to linktarget)
  205. .IP \(bu 2
  206. linktarget
  207. .IP \(bu 2
  208. flags
  209. .IP \(bu 2
  210. size
  211. .IP \(bu 2
  212. csize: compressed size
  213. .IP \(bu 2
  214. dsize: deduplicated size
  215. .IP \(bu 2
  216. dcsize: deduplicated compressed size
  217. .IP \(bu 2
  218. num_chunks: number of chunks in this file
  219. .IP \(bu 2
  220. unique_chunks: number of unique chunks in this file
  221. .IP \(bu 2
  222. mtime
  223. .IP \(bu 2
  224. ctime
  225. .IP \(bu 2
  226. atime
  227. .IP \(bu 2
  228. isomtime
  229. .IP \(bu 2
  230. isoctime
  231. .IP \(bu 2
  232. isoatime
  233. .IP \(bu 2
  234. blake2b
  235. .IP \(bu 2
  236. blake2s
  237. .IP \(bu 2
  238. md5
  239. .IP \(bu 2
  240. sha1
  241. .IP \(bu 2
  242. sha224
  243. .IP \(bu 2
  244. sha256
  245. .IP \(bu 2
  246. sha384
  247. .IP \(bu 2
  248. sha3_224
  249. .IP \(bu 2
  250. sha3_256
  251. .IP \(bu 2
  252. sha3_384
  253. .IP \(bu 2
  254. sha3_512
  255. .IP \(bu 2
  256. sha512
  257. .IP \(bu 2
  258. shake_128
  259. .IP \(bu 2
  260. shake_256
  261. .IP \(bu 2
  262. xxh64: XXH64 checksum of this file (note: this is NOT a cryptographic hash!)
  263. .IP \(bu 2
  264. archiveid
  265. .IP \(bu 2
  266. archivename
  267. .IP \(bu 2
  268. extra: prepends {source} with " \-> " for soft links and " link to " for hard links
  269. .IP \(bu 2
  270. health: either "healthy" (file ok) or "broken" (if file has all\-zero replacement chunks)
  271. .UNINDENT
  272. .SH SEE ALSO
  273. .sp
  274. \fIborg\-common(1)\fP, \fIborg\-info(1)\fP, \fIborg\-diff(1)\fP, \fIborg\-prune(1)\fP, \fIborg\-patterns(1)\fP
  275. .SH AUTHOR
  276. The Borg Collective
  277. .\" Generated by docutils manpage writer.
  278. .