list.rst.inc 2.1 KB

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