When it comes to backups, there are several options for saving backup files. You can choose to save them locally on the same server, stream them to different servers, or store them in object storage. Percona XtraBackup facilitates streaming through the use of an auxiliary tool called xbcloud.
STDOUT Datasink
This diagram displays the process of streaming a backup to object storage utilizing the current STDOUT datasink:
- XtraBackup spawns multiple copy threads. Each one will be reading a chunk of data from a specific file.
- Each copy thread will write the chunk of data to a pipe (aka STDOUT).
- Xbcloud will have a red thread that will be responsible for reading each chunk of data from STDIN. This chunk will be uploaded to object storage utilizing an async request, and a callback will be added to an …