borg-list.1 5.4 KB

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