list.rst.inc 2.2 KB

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