rlist.rst.inc 13 KB

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