rlist.rst.inc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_rlist:
  3. borg rlist
  4. ----------
  5. .. code-block:: none
  6. borg [common options] rlist [options]
  7. .. only:: html
  8. .. class:: borg-options-table
  9. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  10. | **options** |
  11. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  12. | | ``--consider-checkpoints`` | Show checkpoint archives in the repository contents list (default: hidden). |
  13. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  14. | | ``--short`` | only print the archive names, nothing else |
  15. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  16. | | ``--format FORMAT`` | specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}") |
  17. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  18. | | ``--json`` | 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. |
  19. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | .. class:: borg-common-opt-ref |
  21. | |
  22. | :ref:`common_options` |
  23. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | **Archive filters** — Archive filters can be applied to repository targets. |
  25. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. | | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archive names matching the pattern. see "borg help match-archives". |
  27. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  29. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | | ``--first N`` | consider first N archives after other filters were applied |
  31. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | | ``--last N`` | consider last N archives after other filters were applied |
  33. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m. |
  35. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m. |
  37. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g. 7d oder 12m. |
  39. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g. 7d or 12m. |
  41. +-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. .. raw:: html
  43. <script type='text/javascript'>
  44. $(document).ready(function () {
  45. $('.borg-options-table colgroup').remove();
  46. })
  47. </script>
  48. .. only:: latex
  49. options
  50. --consider-checkpoints Show checkpoint archives in the repository contents list (default: hidden).
  51. --short only print the archive names, nothing else
  52. --format FORMAT specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}")
  53. --json 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.
  54. :ref:`common_options`
  55. |
  56. Archive filters
  57. -a PATTERN, --match-archives PATTERN only consider archive names matching the pattern. see "borg help match-archives".
  58. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  59. --first N consider first N archives after other filters were applied
  60. --last N consider last N archives after other filters were applied
  61. --oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
  62. --newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
  63. --older TIMESPAN consider archives older than (now - TIMESPAN), e.g. 7d oder 12m.
  64. --newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
  65. Description
  66. ~~~~~~~~~~~
  67. This command lists the archives contained in a repository.
  68. .. man NOTES
  69. The FORMAT specifier syntax
  70. +++++++++++++++++++++++++++
  71. The ``--format`` option uses python's `format string syntax
  72. <https://docs.python.org/3.9/library/string.html#formatstrings>`_.
  73. Examples:
  74. ::
  75. $ borg rlist --format '{archive}{NL}'
  76. ArchiveFoo
  77. ArchiveBar
  78. ...
  79. # {VAR:NUMBER} - pad to NUMBER columns.
  80. # Strings are left-aligned, numbers are right-aligned.
  81. # Note: time columns except ``isomtime``, ``isoctime`` and ``isoatime`` cannot be padded.
  82. $ borg rlist --format '{archive:36} {time} [{id}]{NL}' /path/to/repo
  83. ArchiveFoo Thu, 2021-12-09 10:22:28 [0b8e9...3b274]
  84. ...
  85. The following keys are always available:
  86. - NEWLINE: OS dependent line separator
  87. - NL: alias of NEWLINE
  88. - NUL: NUL character for creating print0 / xargs -0 like output
  89. - SPACE: space character
  90. - TAB: tab character
  91. - CR: carriage return character
  92. - LF: line feed character
  93. Keys available only when listing archives in a repository:
  94. - archive: archive name
  95. - name: alias of "archive"
  96. - comment: archive comment
  97. - id: internal ID of the archive
  98. - tam: TAM authentication state of this archive
  99. - start: time (start) of creation of the archive
  100. - time: alias of "start"
  101. - end: time (end) of creation of the archive
  102. - command_line: command line which was used to create the archive
  103. - hostname: hostname of host on which this archive was created
  104. - username: username of user who created this archive
  105. - size: size of this archive (data plus metadata, not considering compression and deduplication)
  106. - nfiles: count of files in this archive