rlist.rst.inc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. | | ``--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. A "barchive" key is therefore not available. |
  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. | | ``-P PREFIX``, ``--prefix PREFIX`` | only consider archive names starting with this prefix. |
  27. +-----------------------------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  28. | | ``-a GLOB``, ``--glob-archives GLOB`` | only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive. |
  29. +-----------------------------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  30. | | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
  31. +-----------------------------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | | ``--first N`` | consider first N archives after other filters were applied |
  33. +-----------------------------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | | ``--last N`` | consider last N archives after other filters were applied |
  35. +-----------------------------------------------------------------------------+---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. .. raw:: html
  37. <script type='text/javascript'>
  38. $(document).ready(function () {
  39. $('.borg-options-table colgroup').remove();
  40. })
  41. </script>
  42. .. only:: latex
  43. optional arguments
  44. --consider-checkpoints Show checkpoint archives in the repository contents list (default: hidden).
  45. --short only print the archive names, nothing else
  46. --format FORMAT specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}")
  47. --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. A "barchive" key is therefore not available.
  48. :ref:`common_options`
  49. |
  50. Archive filters
  51. -P PREFIX, --prefix PREFIX only consider archive names starting with this prefix.
  52. -a GLOB, --glob-archives GLOB only consider archive names matching the glob. sh: rules apply, see "borg help patterns". ``--prefix`` and ``--glob-archives`` are mutually exclusive.
  53. --sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  54. --first N consider first N archives after other filters were applied
  55. --last N consider last N archives after other filters were applied
  56. Description
  57. ~~~~~~~~~~~
  58. This command lists the archives contained in a repository.
  59. .. man NOTES
  60. The FORMAT specifier syntax
  61. +++++++++++++++++++++++++++
  62. The ``--format`` option uses python's `format string syntax
  63. <https://docs.python.org/3.9/library/string.html#formatstrings>`_.
  64. Examples:
  65. ::
  66. $ borg rlist --format '{archive}{NL}'
  67. ArchiveFoo
  68. ArchiveBar
  69. ...
  70. # {VAR:NUMBER} - pad to NUMBER columns.
  71. # Strings are left-aligned, numbers are right-aligned.
  72. # Note: time columns except ``isomtime``, ``isoctime`` and ``isoatime`` cannot be padded.
  73. $ borg rlist --format '{archive:36} {time} [{id}]{NL}' /path/to/repo
  74. ArchiveFoo Thu, 2021-12-09 10:22:28 [0b8e9a312bef3f2f6e2d0fc110c196827786c15eba0188738e81697a7fa3b274]
  75. ...
  76. The following keys are always available:
  77. - NEWLINE: OS dependent line separator
  78. - NL: alias of NEWLINE
  79. - NUL: NUL character for creating print0 / xargs -0 like output, see barchive and bpath keys below
  80. - SPACE
  81. - TAB
  82. - CR
  83. - LF
  84. Keys available only when listing archives in a repository:
  85. - archive: archive name interpreted as text (might be missing non-text characters, see barchive)
  86. - name: alias of "archive"
  87. - barchive: verbatim archive name, can contain any character except NUL
  88. - comment: archive comment interpreted as text (might be missing non-text characters, see bcomment)
  89. - bcomment: verbatim archive comment, can contain any character except NUL
  90. - id: internal ID of the archive
  91. - start: time (start) of creation of the archive
  92. - time: alias of "start"
  93. - end: time (end) of creation of the archive
  94. - command_line: command line which was used to create the archive
  95. - hostname: hostname of host on which this archive was created
  96. - username: username of user who created this archive