borg-list.1 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BORG-LIST 1 "2017-04-29" "" "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 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/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 \-\-short
  57. only print file/directory names, nothing else
  58. .TP
  59. .B \-\-format\fP,\fB \-\-list\-format
  60. specify format for file listing
  61. (default: "{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NL}")
  62. .TP
  63. .B \-\-json
  64. format output as JSON. The form of \-\-format 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.
  65. .UNINDENT
  66. .SS filters
  67. .INDENT 0.0
  68. .TP
  69. .B \-P\fP,\fB \-\-prefix
  70. only consider archive names starting with this prefix
  71. .TP
  72. .B \-\-sort\-by
  73. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  74. .TP
  75. .BI \-\-first \ N
  76. consider first N archives after other filters were applied
  77. .TP
  78. .BI \-\-last \ N
  79. consider last N archives after other filters were applied
  80. .UNINDENT
  81. .SS Exclusion options
  82. .INDENT 0.0
  83. .TP
  84. .BI \-e \ PATTERN\fP,\fB \ \-\-exclude \ PATTERN
  85. exclude paths matching PATTERN
  86. .TP
  87. .BI \-\-exclude\-from \ EXCLUDEFILE
  88. read exclude patterns from EXCLUDEFILE, one per line
  89. .TP
  90. .B \-\-exclude\-caches
  91. exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.brynosaurus.com/cachedir/spec.html\fP)
  92. .TP
  93. .BI \-\-exclude\-if\-present \ NAME
  94. exclude directories that are tagged by containing a filesystem object with the given NAME
  95. .TP
  96. .B \-\-keep\-exclude\-tags\fP,\fB \-\-keep\-tag\-files
  97. if tag objects are specified with \-\-exclude\-if\-present, don\(aqt omit the tag objects themselves from the backup archive
  98. .TP
  99. .BI \-\-pattern \ PATTERN
  100. include/exclude paths matching PATTERN
  101. .TP
  102. .BI \-\-patterns\-from \ PATTERNFILE
  103. read include/exclude patterns from PATTERNFILE, one per line
  104. .UNINDENT
  105. .SH EXAMPLES
  106. .INDENT 0.0
  107. .INDENT 3.5
  108. .sp
  109. .nf
  110. .ft C
  111. $ borg list /path/to/repo
  112. Monday Mon, 2016\-02\-15 19:15:11
  113. repo Mon, 2016\-02\-15 19:26:54
  114. root\-2016\-02\-15 Mon, 2016\-02\-15 19:36:29
  115. newname Mon, 2016\-02\-15 19:50:19
  116. \&...
  117. $ borg list /path/to/repo::root\-2016\-02\-15
  118. drwxr\-xr\-x root root 0 Mon, 2016\-02\-15 17:44:27 .
  119. drwxrwxr\-x root root 0 Mon, 2016\-02\-15 19:04:49 bin
  120. \-rwxr\-xr\-x root root 1029624 Thu, 2014\-11\-13 00:08:51 bin/bash
  121. lrwxrwxrwx root root 0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff
  122. \-rwxr\-xr\-x root root 2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff
  123. \&...
  124. $ borg list /path/to/repo::archiveA \-\-list\-format="{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}"
  125. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 .
  126. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code
  127. drwxrwxr\-x user user 0 Sun, 2015\-02\-01 11:00:00 code/myproject
  128. \-rw\-rw\-r\-\- user user 1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext
  129. \&...
  130. .ft P
  131. .fi
  132. .UNINDENT
  133. .UNINDENT
  134. .SH NOTES
  135. .sp
  136. The following keys are available for \-\-format:
  137. .INDENT 0.0
  138. .INDENT 3.5
  139. .INDENT 0.0
  140. .IP \(bu 2
  141. NEWLINE: OS dependent line separator
  142. .IP \(bu 2
  143. NL: alias of NEWLINE
  144. .IP \(bu 2
  145. NUL: NUL character for creating print0 / xargs \-0 like output, see barchive/bpath
  146. .IP \(bu 2
  147. SPACE
  148. .IP \(bu 2
  149. TAB
  150. .IP \(bu 2
  151. CR
  152. .IP \(bu 2
  153. LF
  154. .UNINDENT
  155. .UNINDENT
  156. .UNINDENT
  157. .sp
  158. Keys for listing repository archives:
  159. .INDENT 0.0
  160. .INDENT 3.5
  161. .INDENT 0.0
  162. .IP \(bu 2
  163. archive, name: archive name interpreted as text (might be missing non\-text characters, see barchive)
  164. .IP \(bu 2
  165. barchive: verbatim archive name, can contain any character except NUL
  166. .IP \(bu 2
  167. time: time of creation of the archive
  168. .IP \(bu 2
  169. id: internal ID of the archive
  170. .UNINDENT
  171. .UNINDENT
  172. .UNINDENT
  173. .sp
  174. Keys for listing archive files:
  175. .INDENT 0.0
  176. .INDENT 3.5
  177. .INDENT 0.0
  178. .IP \(bu 2
  179. type
  180. .IP \(bu 2
  181. mode
  182. .IP \(bu 2
  183. uid
  184. .IP \(bu 2
  185. gid
  186. .IP \(bu 2
  187. user
  188. .IP \(bu 2
  189. group
  190. .IP \(bu 2
  191. path: path interpreted as text (might be missing non\-text characters, see bpath)
  192. .IP \(bu 2
  193. bpath: verbatim POSIX path, can contain any character except NUL
  194. .IP \(bu 2
  195. source: link target for links (identical to linktarget)
  196. .IP \(bu 2
  197. linktarget
  198. .IP \(bu 2
  199. flags
  200. .IP \(bu 2
  201. size
  202. .IP \(bu 2
  203. csize: compressed size
  204. .IP \(bu 2
  205. dsize: deduplicated size
  206. .IP \(bu 2
  207. dcsize: deduplicated compressed size
  208. .IP \(bu 2
  209. num_chunks: number of chunks in this file
  210. .IP \(bu 2
  211. unique_chunks: number of unique chunks in this file
  212. .IP \(bu 2
  213. mtime
  214. .IP \(bu 2
  215. ctime
  216. .IP \(bu 2
  217. atime
  218. .IP \(bu 2
  219. isomtime
  220. .IP \(bu 2
  221. isoctime
  222. .IP \(bu 2
  223. isoatime
  224. .IP \(bu 2
  225. md5
  226. .IP \(bu 2
  227. sha1
  228. .IP \(bu 2
  229. sha224
  230. .IP \(bu 2
  231. sha256
  232. .IP \(bu 2
  233. sha384
  234. .IP \(bu 2
  235. sha512
  236. .IP \(bu 2
  237. archiveid
  238. .IP \(bu 2
  239. archivename
  240. .IP \(bu 2
  241. extra: prepends {source} with " \-> " for soft links and " link to " for hard links
  242. .IP \(bu 2
  243. health: either "healthy" (file ok) or "broken" (if file has all\-zero replacement chunks)
  244. .UNINDENT
  245. .UNINDENT
  246. .UNINDENT
  247. .SH SEE ALSO
  248. .sp
  249. \fIborg\-common(1)\fP, \fIborg\-info(1)\fP, \fIborg\-diff(1)\fP, \fIborg\-prune(1)\fP, \fIborg\-patterns(1)\fP
  250. .SH AUTHOR
  251. The Borg Collective
  252. .\" Generated by docutils manpage writer.
  253. .