Putting my streamed format backup straight to S3
xtrabackup --encrypt=AES256 --encrypt-key-file=mysecretkey --backup --compress --stream=xbstream --extra-lsndir=/tmp --target-dir=/tmp | xbcloud put --parallel=8 --storage=s3 --s3-bucket=mybucket test-xbcloud
Now my question, is it possible to pipe xbstream so it can decrypt and decompress the backups straight to disk for database to be readily available as it was streamed?
What I thought I should use
xbcloud get --parallel=8 s3://mybucket/test-xbcloud | xbstream -x | xtrabackup --decrypt=AES256 --encrypt-key-file=mysecretkey --decompress --target-dir=./ --remove-original
This gets me the files on disk like these
Then I have to run third command with decrypt and decompress to get the them decrypted and uncompressed, once again can I pipe xbstream straight ?