list.rst.inc 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. .. _borg_list:
  2. borg list
  3. ---------
  4. ::
  5. usage: borg list [-h] [-v] [--debug] [--lock-wait N] [--show-version]
  6. [--show-rc] [--no-files-cache] [--umask M]
  7. [--remote-path PATH] [--short] [--format FORMAT] [-P PREFIX]
  8. [-e PATTERN] [--exclude-from EXCLUDEFILE]
  9. [REPOSITORY_OR_ARCHIVE] [PATH [PATH ...]]
  10. List archive or repository contents
  11. positional arguments:
  12. REPOSITORY_OR_ARCHIVE
  13. repository/archive to list contents of
  14. PATH paths to list; patterns are supported
  15. optional arguments:
  16. -h, --help show this help message and exit
  17. -v, --verbose, --info
  18. enable informative (verbose) output, work on log level
  19. INFO
  20. --debug enable debug output, work on log level DEBUG
  21. --lock-wait N wait for the lock, but max. N seconds (default: 1).
  22. --show-version show/log the borg version
  23. --show-rc show/log the return code (rc)
  24. --no-files-cache do not load/update the file metadata cache used to
  25. detect unchanged files
  26. --umask M set umask to M (local and remote, default: 0077)
  27. --remote-path PATH set remote path to executable (default: "borg")
  28. --short only print file/directory names, nothing else
  29. --format FORMAT, --list-format FORMAT
  30. specify format for file listing (default: "{mode}
  31. {user:6} {group:6} {size:8d} {isomtime}
  32. {path}{extra}{NL}")
  33. -P PREFIX, --prefix PREFIX
  34. only consider archive names starting with this prefix
  35. -e PATTERN, --exclude PATTERN
  36. exclude paths matching PATTERN
  37. --exclude-from EXCLUDEFILE
  38. read exclude patterns from EXCLUDEFILE, one per line
  39. Description
  40. ~~~~~~~~~~~
  41. This command lists the contents of a repository or an archive.
  42. See the "borg help patterns" command for more help on exclude patterns.
  43. The following keys are available for --format when listing 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. - 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
  73. - NEWLINE: OS dependent line separator
  74. - NL: alias of NEWLINE
  75. - NUL: NUL character for creating print0 / xargs -0 like ouput, see bpath
  76. - SPACE
  77. - TAB
  78. - CR
  79. - LF