borg-rlist1
List the archives contained in a repository
Usage
borg [common
options]
rlist
[options]
Overview
This command lists the archives contained in a repository.
Options
See borg-common(1) for common options of Borg commands.
options
-
--consider-checkpoints -
Show checkpoint archives in the repository contents list (default: hidden).
-
--short -
only print the archive names, nothing else
--formatFORMAT-
specify format for archive listing (default: "{archive:<36} {time} [{id}]{NL}")
-
--json -
Format output as JSON. The form of
--formatis ignored, but keys used in it are added to the JSON output. Some keys are always present. Note: JSON can only represent text.
Archive filters
-aPATTERN, --match-archives PATTERN-
only consider archive names matching the pattern. see "borg help match-archives".
--sort-byKEYS-
Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
--firstN-
consider first N archives after other filters were applied
--lastN-
consider last N archives after other filters were applied
--oldestTIMESPAN-
consider archives between the oldest archive's timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
--newestTIMESPAN-
consider archives between the newest archive's timestamp and (newest - TIMESPAN), e.g. 7d or 12m.
--olderTIMESPAN-
consider archives older than (now - TIMESPAN), e.g. 7d oder 12m.
--newerTIMESPAN-
consider archives newer than (now - TIMESPAN), e.g. 7d or 12m.
Examples
$ borg rlistMonday Mon, 2016-02-15 19:15:11repo Mon, 2016-02-15 19:26:54root-2016-02-15 Mon, 2016-02-15 19:36:29newname Mon, 2016-02-15 19:50:19...
Notes
The FORMAT specifier syntax
The --format option uses python's format string syntax.
Examples:
$ borg rlist --format '{archive}{NL}'ArchiveFooArchiveBar...# {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/repoArchiveFoo Thu, 2021-12-09 10:22:28 [0b8e9a312bef3f2f6e2d0fc110c196827786c15eba0188738e81697a7fa3b274]...
The following keys are always available:
•
|
NEWLINE: OS dependent line separator |
|---|---|
•
|
NL: alias of NEWLINE |
•
|
NUL: NUL character for creating print0 / xargs -0 like output |
•
|
SPACE |
•
|
TAB |
•
|
CR |
•
|
LF |
Keys available only when listing archives in a repository:
•
|
archive: archive name |
|---|---|
•
|
name: alias of "archive" |
•
|
comment: archive comment |
•
|
id: internal ID of the archive |
•
|
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 |