list.rst.inc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_list:
  3. borg list
  4. ---------
  5. .. code-block:: none
  6. borg [common options] list [options] [REPOSITORY_OR_ARCHIVE] [PATH...]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  10. | **positional arguments** |
  11. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | | ``REPOSITORY_OR_ARCHIVE`` | repository or archive to list contents of |
  13. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | | ``PATH`` | paths to list; patterns are supported |
  15. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | **optional arguments** |
  17. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | | ``--consider-checkpoints`` | Show checkpoint archives in the repository contents list (default: hidden). |
  19. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | | ``--short`` | only print file/directory names, nothing else |
  21. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | | ``--format FORMAT``, ``--list-format FORMAT`` | specify format for file listing (default: "{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NL}") |
  23. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | | ``--json`` | Only valid for listing repository contents. 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 "barchive" key is therefore not available. |
  25. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | | ``--json-lines`` | Only valid for listing archive contents. Format output as JSON Lines. 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. |
  27. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | .. class:: borg-common-opt-ref |
  29. | |
  30. | :ref:`common_options` |
  31. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | **Archive filters** — Archive filters can be applied to repository targets. |
  33. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | | ``-P PREFIX``, ``--prefix PREFIX`` | only consider archive names starting with this prefix. |
  35. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive. |
  37. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  39. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | | ``--first N`` | consider first N archives after other filters were applied |
  41. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | | ``--last N`` | consider last N archives after other filters were applied |
  43. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | **Exclusion options** |
  45. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. | | ``-e PATTERN``, ``--exclude PATTERN`` | exclude paths matching PATTERN |
  47. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  48. | | ``--exclude-from EXCLUDEFILE`` | read exclude patterns from EXCLUDEFILE, one per line |
  49. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  50. | | ``--pattern PATTERN`` | experimental: include/exclude paths matching PATTERN |
  51. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  52. | | ``--patterns-from PATTERNFILE`` | experimental: read include/exclude patterns from PATTERNFILE, one per line |
  53. +-----------------------------------------------------------------------------+-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  54. .. raw:: html
  55. <script type='text/javascript'>
  56. $(document).ready(function () {
  57. $('.borg-options-table colgroup').remove();
  58. })
  59. </script>
  60. .. only:: latex
  61. REPOSITORY_OR_ARCHIVE
  62. repository or archive to list contents of
  63. PATH
  64. paths to list; patterns are supported
  65. optional arguments
  66. --consider-checkpoints Show checkpoint archives in the repository contents list (default: hidden).
  67. --short only print file/directory names, nothing else
  68. --format FORMAT, --list-format FORMAT specify format for file listing (default: "{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NL}")
  69. --json Only valid for listing repository contents. 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 "barchive" key is therefore not available.
  70. --json-lines Only valid for listing archive contents. Format output as JSON Lines. 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.
  71. :ref:`common_options`
  72. |
  73. Archive filters
  74. -P PREFIX, --prefix PREFIX only consider archive names starting with this prefix.
  75. -a GLOB, --glob-archives GLOB only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive.
  76. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  77. --first N consider first N archives after other filters were applied
  78. --last N consider last N archives after other filters were applied
  79. Exclusion options
  80. -e PATTERN, --exclude PATTERN exclude paths matching PATTERN
  81. --exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
  82. --pattern PATTERN experimental: include/exclude paths matching PATTERN
  83. --patterns-from PATTERNFILE experimental: read include/exclude patterns from PATTERNFILE, one per line
  84. Description
  85. ~~~~~~~~~~~
  86. This command lists the contents of a repository or an archive.
  87. See the "borg help patterns" command for more help on exclude patterns.
  88. .. man NOTES
  89. The following keys are available for ``--format``:
  90. - NEWLINE: OS dependent line separator
  91. - NL: alias of NEWLINE
  92. - NUL: NUL character for creating print0 / xargs -0 like output, see barchive/bpath
  93. - SPACE
  94. - TAB
  95. - CR
  96. - LF
  97. Keys for listing repository archives:
  98. - archive: archive name interpreted as text (might be missing non-text characters, see barchive)
  99. - name: alias of "archive"
  100. - barchive: verbatim archive name, can contain any character except NUL
  101. - comment: archive comment interpreted as text (might be missing non-text characters, see bcomment)
  102. - bcomment: verbatim archive comment, can contain any character except NUL
  103. - id: internal ID of the archive
  104. - start: time (start) of creation of the archive
  105. - time: alias of "start"
  106. - end: time (end) of creation of the archive
  107. - hostname: hostname of host on which this archive was created
  108. - username: username of user who created this archive
  109. Keys for listing archive files:
  110. - type
  111. - mode
  112. - uid
  113. - gid
  114. - user
  115. - group
  116. - path: path interpreted as text (might be missing non-text characters, see bpath)
  117. - bpath: verbatim POSIX path, can contain any character except NUL
  118. - source: link target for links (identical to linktarget)
  119. - linktarget
  120. - flags
  121. - size
  122. - csize: compressed size
  123. - dsize: deduplicated size
  124. - dcsize: deduplicated compressed size
  125. - num_chunks: number of chunks in this file
  126. - unique_chunks: number of unique chunks in this file
  127. - mtime
  128. - ctime
  129. - atime
  130. - isomtime
  131. - isoctime
  132. - isoatime
  133. - blake2b
  134. - blake2s
  135. - md5
  136. - sha1
  137. - sha224
  138. - sha256
  139. - sha384
  140. - sha3_224
  141. - sha3_256
  142. - sha3_384
  143. - sha3_512
  144. - sha512
  145. - shake_128
  146. - shake_256
  147. - xxh64: XXH64 checksum of this file (note: this is NOT a cryptographic hash!)
  148. - archiveid
  149. - archivename
  150. - extra: prepends {source} with " -> " for soft links and " link to " for hard links
  151. - health: either "healthy" (file ok) or "broken" (if file has all-zero replacement chunks)