2017-05-16 22:09:41 +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-EXPORT-TAR" 1 "2024-11-16" "" "borg backup tool"
|
2022-06-23 23:19:19 +00:00
|
|
|
.SH NAME
|
|
|
|
borg-export-tar \- Export archive contents as a tarball
|
2017-05-16 22:09:41 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.sp
|
2022-06-23 23:19:19 +00:00
|
|
|
borg [common options] export\-tar [options] NAME FILE [PATH...]
|
2017-05-16 22:09:41 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.sp
|
|
|
|
This command creates a tarball from an archive.
|
|
|
|
.sp
|
|
|
|
When giving \(aq\-\(aq as the output FILE, Borg will write a tar stream to standard output.
|
|
|
|
.sp
|
2017-06-18 10:13:28 +00:00
|
|
|
By default (\fB\-\-tar\-filter=auto\fP) Borg will detect whether the FILE should be compressed
|
2017-05-16 22:09:41 +00:00
|
|
|
based on its file extension and pipe the tarball through an appropriate filter
|
|
|
|
before writing it to FILE:
|
|
|
|
.INDENT 0.0
|
|
|
|
.IP \(bu 2
|
2022-01-23 14:53:42 +00:00
|
|
|
\&.tar.gz or .tgz: gzip
|
|
|
|
.IP \(bu 2
|
|
|
|
\&.tar.bz2 or .tbz: bzip2
|
|
|
|
.IP \(bu 2
|
|
|
|
\&.tar.xz or .txz: xz
|
2017-05-16 22:09:41 +00:00
|
|
|
.IP \(bu 2
|
2022-11-26 21:23:46 +00:00
|
|
|
\&.tar.zstd or .tar.zst: zstd
|
2017-05-16 22:09:41 +00:00
|
|
|
.IP \(bu 2
|
2022-01-23 14:53:42 +00:00
|
|
|
\&.tar.lz4: lz4
|
2017-05-16 22:09:41 +00:00
|
|
|
.UNINDENT
|
|
|
|
.sp
|
2022-01-23 14:53:42 +00:00
|
|
|
Alternatively, a \fB\-\-tar\-filter\fP program may be explicitly specified. It should
|
2017-05-16 22:09:41 +00:00
|
|
|
read the uncompressed tar stream from stdin and write a compressed/filtered
|
|
|
|
tar stream to stdout.
|
|
|
|
.sp
|
2022-04-14 19:13:46 +00:00
|
|
|
Depending on the \fB\-tar\-format\fP option, these formats are created:
|
|
|
|
.TS
|
|
|
|
center;
|
|
|
|
|l|l|l|.
|
|
|
|
_
|
|
|
|
T{
|
|
|
|
\-\-tar\-format
|
|
|
|
T} T{
|
|
|
|
Specification
|
|
|
|
T} T{
|
|
|
|
Metadata
|
|
|
|
T}
|
|
|
|
_
|
|
|
|
T{
|
|
|
|
BORG
|
|
|
|
T} T{
|
|
|
|
BORG specific, like PAX
|
|
|
|
T} T{
|
|
|
|
all as supported by borg
|
|
|
|
T}
|
|
|
|
_
|
|
|
|
T{
|
|
|
|
PAX
|
|
|
|
T} T{
|
|
|
|
POSIX.1\-2001 (pax) format
|
|
|
|
T} T{
|
|
|
|
GNU + atime/ctime/mtime ns
|
2024-10-31 19:50:06 +00:00
|
|
|
+ xattrs
|
2022-04-14 19:13:46 +00:00
|
|
|
T}
|
|
|
|
_
|
|
|
|
T{
|
|
|
|
GNU
|
|
|
|
T} T{
|
|
|
|
GNU tar format
|
|
|
|
T} T{
|
|
|
|
mtime s, no atime/ctime,
|
|
|
|
no ACLs/xattrs/bsdflags
|
|
|
|
T}
|
|
|
|
_
|
|
|
|
.TE
|
2017-05-16 22:09:41 +00:00
|
|
|
.sp
|
2017-06-18 10:13:28 +00:00
|
|
|
A \fB\-\-sparse\fP option (as found in borg extract) is not supported.
|
2017-05-16 22:09:41 +00:00
|
|
|
.sp
|
|
|
|
By default the entire archive is extracted but a subset of files and directories
|
|
|
|
can be selected by passing a list of \fBPATHs\fP as arguments.
|
|
|
|
The file selection can further be restricted by using the \fB\-\-exclude\fP option.
|
|
|
|
.sp
|
2022-02-19 17:48:13 +00:00
|
|
|
For more help on include/exclude patterns, see the \fIborg_patterns\fP command output.
|
2017-05-16 22:09:41 +00:00
|
|
|
.sp
|
|
|
|
\fB\-\-progress\fP can be slower than no progress display, since it makes one additional
|
|
|
|
pass over the archive metadata.
|
|
|
|
.SH OPTIONS
|
|
|
|
.sp
|
|
|
|
See \fIborg\-common(1)\fP for common options of Borg commands.
|
|
|
|
.SS arguments
|
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2022-06-23 23:19:19 +00:00
|
|
|
.B NAME
|
|
|
|
specify the archive name
|
2017-05-16 22:09:41 +00:00
|
|
|
.TP
|
|
|
|
.B FILE
|
2022-09-10 14:03:27 +00:00
|
|
|
output tar file. \(dq\-\(dq to write to stdout instead.
|
2017-05-16 22:09:41 +00:00
|
|
|
.TP
|
|
|
|
.B PATH
|
|
|
|
paths to extract; patterns are supported
|
|
|
|
.UNINDENT
|
2024-07-19 18:40:15 +00:00
|
|
|
.SS optional arguments
|
2017-05-16 22:09:41 +00:00
|
|
|
.INDENT 0.0
|
|
|
|
.TP
|
2022-06-23 23:19:19 +00:00
|
|
|
.B \-\-tar\-filter
|
2017-05-16 22:09:41 +00:00
|
|
|
filter program to pipe data through
|
|
|
|
.TP
|
2022-06-23 23:19:19 +00:00
|
|
|
.B \-\-list
|
2017-05-16 22:09:41 +00:00
|
|
|
output verbose list of items (files, dirs, ...)
|
2022-04-14 19:13:46 +00:00
|
|
|
.TP
|
|
|
|
.BI \-\-tar\-format \ FMT
|
|
|
|
select tar format: BORG, PAX or GNU
|
2017-11-25 13:38:04 +00:00
|
|
|
.UNINDENT
|
2023-06-11 21:10:23 +00:00
|
|
|
.SS Include/Exclude options
|
2017-11-25 13:38:04 +00:00
|
|
|
.INDENT 0.0
|
2017-05-16 22:09:41 +00:00
|
|
|
.TP
|
2020-10-04 18:33:08 +00:00
|
|
|
.BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
|
2017-05-16 22:09:41 +00:00
|
|
|
exclude paths matching PATTERN
|
|
|
|
.TP
|
|
|
|
.BI \-\-exclude\-from \ EXCLUDEFILE
|
|
|
|
read exclude patterns from EXCLUDEFILE, one per line
|
|
|
|
.TP
|
|
|
|
.BI \-\-pattern \ PATTERN
|
2022-02-05 16:30:40 +00:00
|
|
|
include/exclude paths matching PATTERN
|
2017-05-16 22:09:41 +00:00
|
|
|
.TP
|
|
|
|
.BI \-\-patterns\-from \ PATTERNFILE
|
2022-02-05 16:30:40 +00:00
|
|
|
read include/exclude patterns from PATTERNFILE, one per line
|
2017-05-16 22:09:41 +00:00
|
|
|
.TP
|
|
|
|
.BI \-\-strip\-components \ NUMBER
|
2017-11-25 13:38:04 +00:00
|
|
|
Remove the specified number of leading path elements. Paths with fewer elements will be silently skipped.
|
2017-05-16 22:09:41 +00:00
|
|
|
.UNINDENT
|
|
|
|
.SH SEE ALSO
|
|
|
|
.sp
|
|
|
|
\fIborg\-common(1)\fP
|
|
|
|
.SH AUTHOR
|
|
|
|
The Borg Collective
|
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|