.\" Man page generated from reStructuredText
.\" by the Docutils 0.23 manpage writer.
.
.
.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 "XBSTREAM" "1" "Oct 01, 2026" "8.0" "Percona XtraBackup"
.SH NAME
xbstream \- Percona xbstream Documentation
.sp
To support simultaneous compression and streaming, a new custom streaming
format called xbstream was introduced to \fIPercona XtraBackup\fP in addition to
the TAR format. That was required to overcome some limitations of traditional
archive formats such as tar, cpio and others which did not allow streaming
dynamically generated files, for example dynamically compressed files. Other
advantages of xbstream over traditional streaming/archive format include
ability to stream multiple files concurrently (so it is possible to use
streaming in the xbstream format together with the \-\-parallel option) and more
compact data storage.
.sp
This utility has a tar\-like interface:
.INDENT 0.0
.INDENT 3.5
.INDENT 0.0
.IP \(bu 2
with the \fB\-x\fP option it extracts files from the stream read from its
standard input to the current directory unless specified otherwise with the
\fB\-c\fP option. Support for parallel extraction with the \fB\-\-parallel\fP
option has been implemented in \fIPercona XtraBackup\fP 2.4.7.
.IP \(bu 2
with the \fB\-c\fP option it streams files specified on the command line to its
standard output.
.IP \(bu 2
with the \fB\-\-decrypt=ALGO\fP option specified xbstream will automatically
decrypt encrypted files when extracting input stream. Supported values for
this option are: \fBAES128\fP, \fBAES192\fP, and \fBAES256\fP\&. Either
\fB\-\-encrypt\-key\fP or \fB\-\-encrypt\-key\-file\fP options must be specified to
provide encryption key, but not both. This option has been implemented in
\fIPercona XtraBackup\fP 2.4.7.
.IP \(bu 2
with the \fB\-\-encrypt\-threads\fP option you can specify the number of threads
for parallel data encryption. The default value is \fB1\fP\&. This option has
been implemented in \fIPercona XtraBackup\fP 2.4.7.
.IP \(bu 2
the \fB\-\-encrypt\-key\fP option is used to specify the encryption key that will
be used. It can\(aqt be used with \fB\-\-encrypt\-key\-file\fP option because they
are mutually exclusive. This option has been implemented in \fIPercona
XtraBackup\fP 2.4.7.
.IP \(bu 2
the \fB\-\-encrypt\-key\-file\fP option is used to specify the file that contains
the encryption key. It can\(aqt be used with \fB\-\-encrypt\-key\fP option.
because they are mutually exclusive. This option has been implemented in
\fIPercona XtraBackup\fP 2.4.7.
.UNINDENT
.UNINDENT
.UNINDENT
.sp
The utility also tries to minimize its impact on the OS page cache by using the
appropriate \fBposix_fadvise()\fP calls when available.
.sp
When compression is enabled with \fIxtrabackup\fP all data is being compressed,
including the transaction log file and meta data files, using the specified
compression algorithm. The only currently supported algorithm is \fBquicklz\fP\&.
.sp
The resulting files have the qpress archive format, i.e., every \fB*.qp\fP file
produced by \fIxtrabackup\fP is essentially a one\-file qpress archive and can be
extracted and uncompressed by the qpress file archiver \%\&. This means that there is no need to decompress
entire backup to restore a single table as with \fBtar.gz\fP\&.
.sp
To decompress individual files, run \fIxbstream\fP with the
\fB\-\-decompress\fP \%<#\:cmdoption-decompress> option. You may control the number of threads
used for decompressing by passing the \fB\-\-decompress\-threads\fP \%<#\:cmdoption-decompress-threads>
option.
.sp
Also, files can be decompressed using the \fBqpress\fP tool that can be downloaded from
here \%\&. Qpress supports multi\-threaded decompression.
.SH Author
Percona LLC and/or its affiliates
.SH Copyright
2009-2022, Percona LLC and/or its affiliates
.\" End of generated man page.