| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 | .\" 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...TH "BORG-LIST" 1 "2024-01-20" "" "borg backup tool".SH NAMEborg-list \- List archive or repository contents.SH SYNOPSIS.spborg [common options] list [options] [REPOSITORY_OR_ARCHIVE] [PATH...].SH DESCRIPTION.spThis command lists the contents of a repository or an archive..spFor more help on include/exclude patterns, see the \fIborg_patterns\fP command output..SH OPTIONS.spSee \fIborg\-common(1)\fP for common options of Borg commands..SS arguments.INDENT 0.0.TP.B REPOSITORY_OR_ARCHIVErepository or archive to list contents of.TP.B PATHpaths to list; patterns are supported.UNINDENT.SS options.INDENT 0.0.TP.B  \-\-consider\-checkpointsShow checkpoint archives in the repository contents list (default: hidden)..TP.B  \-\-shortonly print file/directory names, nothing else.TP.BI \-\-format \ FORMATspecify format for file or archive listing (default for files: \(dq{mode} {user:6} {group:6} {size:8} {mtime} {path}{extra}{NL}\(dq; for archives: \(dq{archive:<36} {time} [{id}]{NL}\(dq).TP.B  \-\-jsonOnly valid for listing repository contents. 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. A \(dqbarchive\(dq key is therefore not available..TP.B  \-\-json\-linesOnly valid for listing archive contents. Format output as JSON Lines. 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. A \(dqbpath\(dq key is therefore not available..UNINDENT.SS Archive filters.INDENT 0.0.TP.BI \-P \ PREFIX\fR,\fB \ \-\-prefix \ PREFIXonly consider archive names starting with this prefix. (deprecated).TP.BI \-a \ GLOB\fR,\fB \ \-\-glob\-archives \ GLOBonly consider archive names matching the glob. sh: rules apply (without actually using the sh: prefix), see \(dqborg help patterns\(dq..TP.BI \-\-sort\-by \ KEYSComma\-separated list of sorting keys; valid keys are: timestamp, archive, name, id; default is: timestamp.TP.BI \-\-first \ Nconsider first N archives after other filters were applied.TP.BI \-\-last \ Nconsider last N archives after other filters were applied.UNINDENT.SS Include/Exclude options.INDENT 0.0.TP.BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERNexclude paths matching PATTERN.TP.BI \-\-exclude\-from \ EXCLUDEFILEread exclude patterns from EXCLUDEFILE, one per line.TP.BI \-\-pattern \ PATTERNinclude/exclude paths matching PATTERN.TP.BI \-\-patterns\-from \ PATTERNFILEread include/exclude patterns from PATTERNFILE, one per line.UNINDENT.SH EXAMPLES.INDENT 0.0.INDENT 3.5.sp.nf.ft C$ borg list /path/to/repoMonday                               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\&...$ borg list /path/to/repo::root\-2016\-02\-15drwxr\-xr\-x root   root          0 Mon, 2016\-02\-15 17:44:27 .drwxrwxr\-x root   root          0 Mon, 2016\-02\-15 19:04:49 bin\-rwxr\-xr\-x root   root    1029624 Thu, 2014\-11\-13 00:08:51 bin/bashlrwxrwxrwx root   root          0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff\-rwxr\-xr\-x root   root       2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff\&...$ borg list /path/to/repo::root\-2016\-02\-15 \-\-pattern \(dq\- bin/ba*\(dqdrwxr\-xr\-x root   root          0 Mon, 2016\-02\-15 17:44:27 .drwxrwxr\-x root   root          0 Mon, 2016\-02\-15 19:04:49 binlrwxrwxrwx root   root          0 Fri, 2015\-03\-27 20:24:26 bin/bzcmp \-> bzdiff\-rwxr\-xr\-x root   root       2140 Fri, 2015\-03\-27 20:24:22 bin/bzdiff\&...$ borg list /path/to/repo::archiveA \-\-format=\(dq{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}\(dqdrwxrwxr\-x user   user          0 Sun, 2015\-02\-01 11:00:00 .drwxrwxr\-x user   user          0 Sun, 2015\-02\-01 11:00:00 codedrwxrwxr\-x user   user          0 Sun, 2015\-02\-01 11:00:00 code/myproject\-rw\-rw\-r\-\- user   user    1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext\-rw\-rw\-r\-\- user   user    1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.text\&...$ borg list /path/to/repo/::archiveA \-\-pattern \(aq+ re:\e.ext$\(aq \-\-pattern \(aq\- re:^.*$\(aq\-rw\-rw\-r\-\- user   user    1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext\&...$ borg list /path/to/repo/::archiveA \-\-pattern \(aq+ re:.ext$\(aq \-\-pattern \(aq\- re:^.*$\(aq\-rw\-rw\-r\-\- user   user    1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.ext\-rw\-rw\-r\-\- user   user    1416192 Sun, 2015\-02\-01 11:00:00 code/myproject/file.text\&....ft P.fi.UNINDENT.UNINDENT.SH NOTES.SS The FORMAT specifier syntax.spThe \fB\-\-format\fP option uses python\(aqs \fI\%format string syntax\fP\&..spExamples:.INDENT 0.0.INDENT 3.5.sp.nf.ft C$ borg list \-\-format \(aq{archive}{NL}\(aq /path/to/repoArchiveFooArchiveBar\&...# {VAR:NUMBER} \- pad to NUMBER columns.# Strings are left\-aligned, numbers are right\-aligned.# Note: time columns except \(ga\(gaisomtime\(ga\(ga, \(ga\(gaisoctime\(ga\(ga and \(ga\(gaisoatime\(ga\(ga cannot be padded.$ borg list \-\-format \(aq{archive:36} {time} [{id}]{NL}\(aq /path/to/repoArchiveFoo                           Thu, 2021\-12\-09 10:22:28 [0b8e9a312bef3f2f6e2d0fc110c196827786c15eba0188738e81697a7fa3b274]$ borg list \-\-format \(aq{mode} {user:6} {group:6} {size:8} {mtime} {path}{extra}{NL}\(aq /path/to/repo::ArchiveFoo\-rw\-rw\-r\-\- user   user       1024 Thu, 2021\-12\-09 10:22:17 file\-foo\&...# {VAR:<NUMBER} \- pad to NUMBER columns left\-aligned.# {VAR:>NUMBER} \- pad to NUMBER columns right\-aligned.$ borg list \-\-format \(aq{mode} {user:>6} {group:>6} {size:<8} {mtime} {path}{extra}{NL}\(aq /path/to/repo::ArchiveFoo\-rw\-rw\-r\-\-   user   user 1024     Thu, 2021\-12\-09 10:22:17 file\-foo\&....ft P.fi.UNINDENT.UNINDENT.spThe following keys are always available:.INDENT 0.0.IP \(bu 2NEWLINE: OS dependent line separator.IP \(bu 2NL: alias of NEWLINE.IP \(bu 2NUL: NUL character for creating print0 / xargs \-0 like output, see barchive and bpath keys below.IP \(bu 2SPACE.IP \(bu 2TAB.IP \(bu 2CR.IP \(bu 2LF.UNINDENT.spKeys available only when listing archives in a repository:.INDENT 0.0.IP \(bu 2archive: archive name interpreted as text (might be missing non\-text characters, see barchive).IP \(bu 2name: alias of \(dqarchive\(dq.IP \(bu 2barchive: verbatim archive name, can contain any character except NUL.IP \(bu 2comment: archive comment interpreted as text (might be missing non\-text characters, see bcomment).IP \(bu 2bcomment: verbatim archive comment, can contain any character except NUL.IP \(bu 2id: internal ID of the archive.IP \(bu 2tam: TAM authentication state of this archive.IP \(bu 2start: time (start) of creation of the archive.IP \(bu 2time: alias of \(dqstart\(dq.IP \(bu 2end: time (end) of creation of the archive.IP \(bu 2command_line: command line which was used to create the archive.IP \(bu 2hostname: hostname of host on which this archive was created.IP \(bu 2username: username of user who created this archive.UNINDENT.spKeys available only when listing files in an archive:.INDENT 0.0.IP \(bu 2type.IP \(bu 2mode.IP \(bu 2uid.IP \(bu 2gid.IP \(bu 2user.IP \(bu 2group.IP \(bu 2path: path interpreted as text (might be missing non\-text characters, see bpath).IP \(bu 2bpath: verbatim POSIX path, can contain any character except NUL.IP \(bu 2source: link target for links (identical to linktarget).IP \(bu 2linktarget.IP \(bu 2flags.IP \(bu 2size.IP \(bu 2csize: compressed size.IP \(bu 2dsize: deduplicated size.IP \(bu 2dcsize: deduplicated compressed size.IP \(bu 2num_chunks: number of chunks in this file.IP \(bu 2unique_chunks: number of unique chunks in this file.IP \(bu 2mtime.IP \(bu 2ctime.IP \(bu 2atime.IP \(bu 2isomtime.IP \(bu 2isoctime.IP \(bu 2isoatime.IP \(bu 2blake2b.IP \(bu 2blake2s.IP \(bu 2md5.IP \(bu 2sha1.IP \(bu 2sha224.IP \(bu 2sha256.IP \(bu 2sha384.IP \(bu 2sha3_224.IP \(bu 2sha3_256.IP \(bu 2sha3_384.IP \(bu 2sha3_512.IP \(bu 2sha512.IP \(bu 2xxh64: XXH64 checksum of this file (note: this is NOT a cryptographic hash!).IP \(bu 2archiveid.IP \(bu 2archivename.IP \(bu 2extra: prepends {source} with \(dq \-> \(dq for soft links and \(dq link to \(dq for hard links.IP \(bu 2health: either \(dqhealthy\(dq (file ok) or \(dqbroken\(dq (if file has all\-zero replacement chunks).UNINDENT.SH SEE ALSO.sp\fIborg\-common(1)\fP, \fIborg\-info(1)\fP, \fIborg\-diff(1)\fP, \fIborg\-prune(1)\fP, \fIborg\-patterns(1)\fP.SH AUTHORThe Borg Collective.\" Generated by docutils manpage writer..
 |