|
1 | 1 | # Take a streaming backup
|
2 | 2 |
|
3 |
| -**Percona XtraBackup** supports streaming mode. Streaming mode sends a backup to `STDOUT` in the *xbstream* format instead of copying the files to the backup directory. |
| 3 | +Percona XtraBackup supports streaming mode. Streaming mode sends a backup to `STDOUT` in the xbstream format instead of copying the files to the backup directory. |
4 | 4 |
|
5 |
| -This method allows you to use other programs to filter the output of the backup, |
6 |
| -providing greater flexibility for storage of the backup. For example, |
7 |
| -compression is achieved by piping the output to a compression utility. One of |
8 |
| -the benefits of streaming backups and using Unix pipes is that the backups can |
9 |
| -be automatically encrypted. |
| 5 | +This method enables you to utilize other programs to filter the backup output, enhancing flexibility in backup storage. For instance, compression can be achieved by directing the output to a compression utility. One advantage of streaming backups and employing Unix pipes is that backups can be automatically encrypted. |
10 | 6 |
|
11 |
| -To use the streaming feature, you must use the `--stream`, |
12 |
| -providing the format of the stream (`xbstream` ) and where to store |
13 |
| -the temporary files: |
| 7 | +## Version changes |
| 8 | + |
| 9 | +Using `--encrypt` might create larger backups than expected when used with InnoDB Page Compression. |
| 10 | + |
| 11 | +To avoid this issue with compressed backups, use the `--compress` option with the `--xbstream` option in Percona XtraBackup 8.0.31-24 and later. |
| 12 | + |
| 13 | +## Use streaming |
| 14 | + |
| 15 | +To utilize the streaming feature, you need to employ the `--stream` option, specifying the stream format (xbstream ) and the location for storing temporary files: |
14 | 16 |
|
15 | 17 | ```{.bash data-prompt="$"}
|
16 | 18 | $ xtrabackup --stream=xbstream --target-dir=/tmp
|
17 | 19 | ```
|
18 | 20 |
|
19 |
| -*xtrabackup* uses *xbstream* to stream all of the data files to `STDOUT`, in a |
20 |
| -special `xbstream` format. After it finishes streaming all of the data files |
21 |
| -to `STDOUT`, it stops xtrabackup and streams the saved log file too. |
| 21 | +xtrabackup uses xbstream to stream all of the data files to `STDOUT`, in a |
| 22 | +special `xbstream` format. After all data is streamed, xtrabackup stops and also streams the saved transaction log. |
22 | 23 |
|
23 |
| -When compression is enabled, *xtrabackup* compresses the output data, except for the metadata, using the specified compression algorithm. Read about the supported compression algorithms in the [Create a compressed backup](create-compressed-backup.md) document. |
| 24 | +When compression is enabled, xtrabackup compresses the output data, except for the metadata, using the specified compression algorithm. Read about the supported compression algorithms in the [Create a compressed backup](create-compressed-backup.md) document. |
24 | 25 |
|
25 |
| -Using *xbstream* as a stream option, backups can be copied and compressed in parallel. This option can significantly improve the speed of the backup process. In case backups |
26 |
| -were both compressed and encrypted, they must be decrypted before they are uncompressed. |
| 26 | +With xbstream, backups can be copied and compressed simultaneously, significantly speeding up the process. However, if backups are both compressed and encrypted, they need to be decrypted before uncompressing. |
27 | 27 |
|
28 | 28 | |Task | Command |
|
29 | 29 | |---------|------|
|
|
0 commit comments