Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

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


Last update: 2023-06-12