list.rst.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. ``-e PATTERN``, ``--exclude PATTERN``
  19. | exclude paths matching PATTERN
  20. ``--exclude-from EXCLUDEFILE``
  21. | read exclude patterns from EXCLUDEFILE, one per line
  22. `Common options`_
  23. |
  24. filters
  25. ``-P``, ``--prefix``
  26. | only consider archive names starting with this prefix
  27. ``--sort-by``
  28. | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  29. ``--first N``
  30. | consider first N archives after other filters were applied
  31. ``--last N``
  32. | consider last N archives after other filters were applied
  33. Description
  34. ~~~~~~~~~~~
  35. This command lists the contents of a repository or an archive.
  36. See the "borg help patterns" command for more help on exclude patterns.
  37. The following keys are available for --format:
  38. - NEWLINE: OS dependent line separator
  39. - NL: alias of NEWLINE
  40. - NUL: NUL character for creating print0 / xargs -0 like output, see barchive/bpath
  41. - SPACE
  42. - TAB
  43. - CR
  44. - LF
  45. Keys for listing repository archives:
  46. - archive: archive name interpreted as text (might be missing non-text characters, see barchive)
  47. - barchive: verbatim archive name, can contain any character except NUL
  48. - time: time of creation of the archive
  49. - id: internal ID of the archive
  50. Keys for listing archive files:
  51. - type
  52. - mode
  53. - uid
  54. - gid
  55. - user
  56. - group
  57. - path: path interpreted as text (might be missing non-text characters, see bpath)
  58. - bpath: verbatim POSIX path, can contain any character except NUL
  59. - source: link target for links (identical to linktarget)
  60. - linktarget
  61. - flags
  62. - size
  63. - csize: compressed size
  64. - num_chunks: number of chunks in this file
  65. - unique_chunks: number of unique chunks in this file
  66. - mtime
  67. - ctime
  68. - atime
  69. - isomtime
  70. - isoctime
  71. - isoatime
  72. - md5
  73. - sha1
  74. - sha224
  75. - sha256
  76. - sha384
  77. - sha512
  78. - archiveid
  79. - archivename
  80. - extra: prepends {source} with " -> " for soft links and " link to " for hard links
  81. - health: either "healthy" (file ok) or "broken" (if file has all-zero replacement chunks)