2022-06-23 23:19:19 +00:00
|
|
|
.. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
|
|
|
|
|
|
|
|
.. _borg_rlist:
|
|
|
|
|
|
|
|
borg rlist
|
|
|
|
----------
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
borg [common options] rlist [options]
|
|
|
|
|
|
|
|
.. only:: html
|
|
|
|
|
|
|
|
.. class:: borg-options-table
|
|
|
|
|
2023-01-02 22:50:50 +00:00
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| **options** |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--consider-checkpoints`` | Show checkpoint archives in the repository contents list (default: hidden). |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--short`` | only print the archive names, nothing else |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--format FORMAT`` | specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}") |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--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. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| .. class:: borg-common-opt-ref |
|
|
|
|
| |
|
|
|
|
| :ref:`common_options` |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| **Archive filters** — Archive filters can be applied to repository targets. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``-a PATTERN``, ``--match-archives PATTERN`` | only consider archive names matching the pattern. see "borg help match-archives". |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--sort-by KEYS`` | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--first N`` | consider first N archives after other filters were applied |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--last N`` | consider last N archives after other filters were applied |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
2023-02-26 20:30:28 +00:00
|
|
|
| | ``--oldest TIMESPAN`` | consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--newest TIMESPAN`` | consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--older TIMESPAN`` | consider archives older than (now - TIMESPAN), e.g. 7d oder 12m. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
| | ``--newer TIMESPAN`` | consider archives newer than (now - TIMESPAN), e.g. 7d or 12m. |
|
|
|
|
+-----------------------------------------------------------------------------+----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('.borg-options-table colgroup').remove();
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
.. only:: latex
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-26 21:23:17 +00:00
|
|
|
options
|
2022-06-23 23:19:19 +00:00
|
|
|
--consider-checkpoints Show checkpoint archives in the repository contents list (default: hidden).
|
|
|
|
--short only print the archive names, nothing else
|
|
|
|
--format FORMAT specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}")
|
2023-01-02 22:50:50 +00:00
|
|
|
--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.
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
:ref:`common_options`
|
|
|
|
|
|
|
|
|
|
|
|
|
Archive filters
|
2022-10-02 13:51:17 +00:00
|
|
|
-a PATTERN, --match-archives PATTERN only consider archive names matching the pattern. see "borg help match-archives".
|
|
|
|
--sort-by KEYS Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
|
|
|
|
--first N consider first N archives after other filters were applied
|
|
|
|
--last N consider last N archives after other filters were applied
|
2023-02-26 20:30:28 +00:00
|
|
|
--oldest TIMESPAN consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
|
|
|
|
--newest TIMESPAN consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
|
|
|
|
--older TIMESPAN consider archives older than (now - TIMESPAN), e.g. 7d oder 12m.
|
|
|
|
--newer TIMESPAN consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
|
|
|
This command lists the archives contained in a repository.
|
|
|
|
|
|
|
|
.. man NOTES
|
|
|
|
|
|
|
|
The FORMAT specifier syntax
|
|
|
|
+++++++++++++++++++++++++++
|
|
|
|
|
|
|
|
The ``--format`` option uses python's `format string syntax
|
|
|
|
<https://docs.python.org/3.9/library/string.html#formatstrings>`_.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
::
|
|
|
|
|
|
|
|
$ borg rlist --format '{archive}{NL}'
|
|
|
|
ArchiveFoo
|
|
|
|
ArchiveBar
|
|
|
|
...
|
|
|
|
|
|
|
|
# {VAR:NUMBER} - pad to NUMBER columns.
|
|
|
|
# Strings are left-aligned, numbers are right-aligned.
|
|
|
|
# Note: time columns except ``isomtime``, ``isoctime`` and ``isoatime`` cannot be padded.
|
|
|
|
$ borg rlist --format '{archive:36} {time} [{id}]{NL}' /path/to/repo
|
2023-09-14 13:52:08 +00:00
|
|
|
ArchiveFoo Thu, 2021-12-09 10:22:28 [0b8e9...3b274]
|
2022-06-23 23:19:19 +00:00
|
|
|
...
|
|
|
|
|
|
|
|
The following keys are always available:
|
2022-06-26 18:06:58 +00:00
|
|
|
|
2022-06-23 23:19:19 +00:00
|
|
|
- NEWLINE: OS dependent line separator
|
|
|
|
- NL: alias of NEWLINE
|
2023-01-02 22:50:50 +00:00
|
|
|
- NUL: NUL character for creating print0 / xargs -0 like output
|
2023-06-11 21:09:20 +00:00
|
|
|
- SPACE: space character
|
|
|
|
- TAB: tab character
|
|
|
|
- CR: carriage return character
|
|
|
|
- LF: line feed character
|
|
|
|
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
Keys available only when listing archives in a repository:
|
|
|
|
|
2023-01-02 22:50:50 +00:00
|
|
|
- archive: archive name
|
2022-06-23 23:19:19 +00:00
|
|
|
- name: alias of "archive"
|
2023-01-02 22:50:50 +00:00
|
|
|
- comment: archive comment
|
2022-06-23 23:19:19 +00:00
|
|
|
- id: internal ID of the archive
|
2023-09-14 13:52:08 +00:00
|
|
|
- tam: TAM authentication state of this archive
|
2022-06-23 23:19:19 +00:00
|
|
|
|
|
|
|
- start: time (start) of creation of the archive
|
|
|
|
- time: alias of "start"
|
|
|
|
- end: time (end) of creation of the archive
|
|
|
|
- command_line: command line which was used to create the archive
|
|
|
|
|
|
|
|
- hostname: hostname of host on which this archive was created
|
|
|
|
- username: username of user who created this archive
|
2023-06-11 21:09:20 +00:00
|
|
|
|
|
|
|
- size: size of this archive (data plus metadata, not considering compression and deduplication)
|
|
|
|
- nfiles: count of files in this archive
|