2022-06-23 23:19:19 +00:00
. \" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\ $1 \\ n[an-margin]
level \\ n[rst2man-indent-level]
level margin: \\ n[rst2man-indent\\ n[rst2man-indent-level]]
-
\\ n[rst2man-indent0]
\\ n[rst2man-indent1]
\\ n[rst2man-indent2]
. .
.de1 INDENT
. \" .rstReportMargin pre:
. RS \\ $1
. nr rst2man-indent\\n[rst2man-indent-level] \\ n[an-margin]
. nr rst2man-indent-level +1
. \" .rstReportMargin post:
. .
.de UNINDENT
. RE
. \" indent \\n[an-margin]
. \" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
. \" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\ n[rst2man-indent\\n[rst2man-indent-level]]u
. .
2024-11-16 19:14:16 +00:00
.TH "BORG-REPO-LIST" 1 "2024-11-16" "" "borg backup tool"
2022-06-23 23:19:19 +00:00
.SH NAME
2024-09-08 15:52:10 +00:00
borg-repo-list \- List the archives contained in a repository
2022-06-23 23:19:19 +00:00
.SH SYNOPSIS
.sp
2024-09-08 15:52:10 +00:00
borg [common options] repo\- list [options]
2022-06-23 23:19:19 +00:00
.SH DESCRIPTION
.sp
This command lists the archives contained in a repository.
.SH OPTIONS
.sp
See \fI borg\- common(1)\fP for common options of Borg commands.
2024-07-19 18:40:15 +00:00
.SS optional arguments
2022-06-23 23:19:19 +00:00
.INDENT 0 .0
.TP
.B \- \- short
2024-10-03 10:23:03 +00:00
only print the archive IDs, nothing else
2022-06-23 23:19:19 +00:00
.TP
.BI \- \- format \ FORMAT
2022-09-10 14:03:27 +00:00
specify format for archive listing (default: \(dq {archive:<36} {time} [{id}]{NL}\(dq )
2022-06-23 23:19:19 +00:00
.TP
.B \- \- json
2023-01-02 22:51:22 +00:00
Format output as JSON. The form of \fB \- \- format\fP 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
.UNINDENT
.SS Archive filters
.INDENT 0 .0
.TP
2022-10-02 13:51:17 +00:00
.BI \- a \ PATTERN\fR,\fB \ \- \- match\-archives \ PATTERN
2024-10-03 10:23:03 +00:00
only consider archives matching all patterns. see \(dq borg help match\- archives\(dq .
2022-06-23 23:19:19 +00:00
.TP
.BI \- \- sort\-by \ KEYS
2024-10-03 10:23:03 +00:00
Comma\- separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
2022-06-23 23:19:19 +00:00
.TP
.BI \- \- first \ N
consider first N archives after other filters were applied
.TP
.BI \- \- last \ N
consider last N archives after other filters were applied
2023-02-26 20:30:54 +00:00
.TP
.BI \- \- oldest \ TIMESPAN
consider archives between the oldest archive\(aq s timestamp and (oldest + TIMESPAN), e.g. 7d or 12m.
.TP
.BI \- \- newest \ TIMESPAN
consider archives between the newest archive\(aq s timestamp and (newest \- TIMESPAN), e.g. 7d or 12m.
.TP
.BI \- \- older \ TIMESPAN
2024-02-20 16:12:43 +00:00
consider archives older than (now \- TIMESPAN), e.g. 7d or 12m.
2023-02-26 20:30:54 +00:00
.TP
.BI \- \- newer \ TIMESPAN
consider archives newer than (now \- TIMESPAN), e.g. 7d or 12m.
2024-11-16 19:14:16 +00:00
.TP
.B \- \- deleted
consider only soft\- deleted archives.
2022-06-23 23:19:19 +00:00
.UNINDENT
.SH EXAMPLES
.INDENT 0 .0
.INDENT 3 .5
.sp
.nf
.ft C
2024-09-08 15:52:10 +00:00
$ borg repo\- list
2024-10-03 10:23:03 +00:00
151b1a57 Mon, 2024\- 09\- 23 22:57:11 +0200 docs tw MacBook\- Pro this is a comment
3387a079 Thu, 2024\- 09\- 26 09:07:07 +0200 scripts tw MacBook\- Pro
ca774425 Thu, 2024\- 09\- 26 10:05:23 +0200 scripts tw MacBook\- Pro
ba56c4a5 Thu, 2024\- 09\- 26 10:12:45 +0200 src tw MacBook\- Pro
7567b79a Thu, 2024\- 09\- 26 10:15:07 +0200 scripts tw MacBook\- Pro
21ab3600 Thu, 2024\- 09\- 26 10:15:17 +0200 docs tw MacBook\- Pro
2022-06-23 23:19:19 +00:00
\& ...
.ft P
.fi
.UNINDENT
.UNINDENT
.SH NOTES
.SS The FORMAT specifier syntax
.sp
The \fB \- \- format\fP option uses python\(aq s \fI \% format string syntax\fP \& .
.sp
Examples:
.INDENT 0 .0
.INDENT 3 .5
.sp
.nf
.ft C
2024-09-08 15:52:10 +00:00
$ borg repo\- list \- \- format \(aq {archive}{NL}\(aq
2022-06-23 23:19:19 +00:00
ArchiveFoo
ArchiveBar
\& ...
# {VAR:NUMBER} \- pad to NUMBER columns.
# Strings are left\- aligned, numbers are right\- aligned.
# Note: time columns except \(ga \(ga isomtime\(ga \(ga , \(ga \(ga isoctime\(ga \(ga and \(ga \(ga isoatime\(ga \(ga cannot be padded.
2024-09-08 15:52:10 +00:00
$ borg repo\- list \- \- format \(aq {archive:36} {time} [{id}]{NL}\(aq /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
\& ...
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The following keys are always available:
2022-06-26 18:06:58 +00:00
.INDENT 0 .0
.IP \(bu 2
NEWLINE: OS dependent line separator
.IP \(bu 2
NL: alias of NEWLINE
.IP \(bu 2
2023-01-02 22:51:22 +00:00
NUL: NUL character for creating print0 / xargs \- 0 like output
2022-06-26 18:06:58 +00:00
.IP \(bu 2
2023-06-11 21:10:23 +00:00
SPACE: space character
2022-06-26 18:06:58 +00:00
.IP \(bu 2
2023-06-11 21:10:23 +00:00
TAB: tab character
2022-06-26 18:06:58 +00:00
.IP \(bu 2
2023-06-11 21:10:23 +00:00
CR: carriage return character
2022-06-26 18:06:58 +00:00
.IP \(bu 2
2023-06-11 21:10:23 +00:00
LF: line feed character
2022-06-26 18:06:58 +00:00
.UNINDENT
2022-06-23 23:19:19 +00:00
.sp
Keys available only when listing archives in a repository:
.INDENT 0 .0
.IP \(bu 2
2023-01-02 22:51:22 +00:00
archive: archive name
2022-06-23 23:19:19 +00:00
.IP \(bu 2
2022-09-10 14:03:27 +00:00
name: alias of \(dq archive\(dq
2022-06-23 23:19:19 +00:00
.IP \(bu 2
2023-01-02 22:51:22 +00:00
comment: archive comment
2022-06-23 23:19:19 +00:00
.IP \(bu 2
id: internal ID of the archive
.IP \(bu 2
2024-10-03 10:23:03 +00:00
tags: archive tags
.IP \(bu 2
2022-06-23 23:19:19 +00:00
start: time (start) of creation of the archive
.IP \(bu 2
2022-09-10 14:03:27 +00:00
time: alias of \(dq start\(dq
2022-06-23 23:19:19 +00:00
.IP \(bu 2
end: time (end) of creation of the archive
.IP \(bu 2
command_line: command line which was used to create the archive
.IP \(bu 2
hostname: hostname of host on which this archive was created
.IP \(bu 2
username: username of user who created this archive
2023-06-11 21:10:23 +00:00
.IP \(bu 2
size: size of this archive (data plus metadata, not considering compression and deduplication)
.IP \(bu 2
nfiles: count of files in this archive
2022-06-23 23:19:19 +00:00
.UNINDENT
.SH SEE ALSO
.sp
\fI borg\- common(1)\fP
.SH AUTHOR
The Borg Collective
. \" Generated by docutils manpage writer.
.