Skip to content

Use the xbcloud binary with Google Cloud Storage

Create a full backup with Google Cloud Storage

The support for Google Cloud Storage is implemented using the interoperability mode. This mode was especially designed to interact with cloud services compatible with Amazon S3.

$ xtrabackup --backup --stream=xbstream --extra-lsndir=/tmp --target-dir=/tmp | \
xbcloud put --storage=google \
--google-endpoint=`storage.googleapis.com` \
--google-access-key='YOUR-ACCESSKEYID' \
--google-secret-key='YOUR-SECRETACCESSKEY' \
--google-bucket='mysql_backups'
--parallel=10 \
$(date -I)-full_backup

The following options are available when using Google Cloud Storage:

  • –google-access-key =

  • –google-secret-key =

  • –google-bucket =

  • –google-storage-class=name

Note

The Google storage class name options are the following:

  • STANDARD

  • NEARLINE

  • COLDLINE

  • ARCHIVE

Need help?

Dive into our active community forum, where you can connect with fellow database enthusiasts, share experiences, and learn from experts.

For those seeking in-depth guidance and tailored solutions, our team of Percona Database Experts is ready to assist you.


Last update: 2024-11-21