rlist.rst.inc 12 KB

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