list.rst.inc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_list:
  3. borg list
  4. ---------
  5. ::
  6. borg list <options> REPOSITORY_OR_ARCHIVE PATH
  7. positional arguments
  8. REPOSITORY_OR_ARCHIVE
  9. repository/archive to list contents of
  10. PATH
  11. paths to list; patterns are supported
  12. optional arguments
  13. ``--short``
  14. | only print file/directory names, nothing else
  15. ``--format``, ``--list-format``
  16. | specify format for file listing
  17. | (default: "{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NL}")
  18. ``--json``
  19. | 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.
  20. `Common options`_
  21. |
  22. filters
  23. ``-P``, ``--prefix``
  24. | only consider archive names starting with this prefix
  25. ``--sort-by``
  26. | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  27. ``--first N``
  28. | consider first N archives after other filters were applied
  29. ``--last N``
  30. | consider last N archives after other filters were applied
  31. Exclusion options
  32. ``-e PATTERN``, ``--exclude PATTERN``
  33. | exclude paths matching PATTERN
  34. ``--exclude-from EXCLUDEFILE``
  35. | read exclude patterns from EXCLUDEFILE, one per line
  36. ``--exclude-caches``
  37. | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
  38. ``--exclude-if-present NAME``
  39. | exclude directories that are tagged by containing a filesystem object with the given NAME
  40. ``--keep-exclude-tags``, ``--keep-tag-files``
  41. | if tag objects are specified with --exclude-if-present, don't omit the tag objects themselves from the backup archive
  42. ``--pattern PATTERN``
  43. | include/exclude paths matching PATTERN
  44. ``--patterns-from PATTERNFILE``
  45. | read include/exclude patterns from PATTERNFILE, one per line
  46. Description
  47. ~~~~~~~~~~~
  48. This command lists the contents of a repository or an archive.
  49. See the "borg help patterns" command for more help on exclude patterns.
  50. .. man NOTES
  51. The following keys are available for --format:
  52. - NEWLINE: OS dependent line separator
  53. - NL: alias of NEWLINE
  54. - NUL: NUL character for creating print0 / xargs -0 like output, see barchive/bpath
  55. - SPACE
  56. - TAB
  57. - CR
  58. - LF
  59. Keys for listing repository archives:
  60. - archive, name: archive name interpreted as text (might be missing non-text characters, see barchive)
  61. - barchive: verbatim archive name, can contain any character except NUL
  62. - time: time of creation of the archive
  63. - id: internal ID of the archive
  64. Keys for listing archive files:
  65. - type
  66. - mode
  67. - uid
  68. - gid
  69. - user
  70. - group
  71. - path: path interpreted as text (might be missing non-text characters, see bpath)
  72. - bpath: verbatim POSIX path, can contain any character except NUL
  73. - source: link target for links (identical to linktarget)
  74. - linktarget
  75. - flags
  76. - size
  77. - csize: compressed size
  78. - dsize: deduplicated size
  79. - dcsize: deduplicated compressed size
  80. - num_chunks: number of chunks in this file
  81. - unique_chunks: number of unique chunks in this file
  82. - mtime
  83. - ctime
  84. - atime
  85. - isomtime
  86. - isoctime
  87. - isoatime
  88. - md5
  89. - sha1
  90. - sha224
  91. - sha256
  92. - sha384
  93. - sha512
  94. - archiveid
  95. - archivename
  96. - extra: prepends {source} with " -> " for soft links and " link to " for hard links
  97. - health: either "healthy" (file ok) or "broken" (if file has all-zero replacement chunks)