borg-list.1 5.4 KB

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