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

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.


Last update: 2024-10-30