Xbcloud keys in Google Cloud VMs usage

Hi, We are planning to setup backup from Server to GCS bucket directly, we are trying to use xtrabackup and xbstream as streaming option. From documentation found the below:

$ 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

From the above, it is not clear about below two:

–google-access-key=‘YOUR-ACCESSKEYID’
–google-secret-key=‘YOUR-SECRETACCESSKEY’ \

are the above related to service account related keys? do we have to provide the path of the JSON or P12 keys someway?

and what is --google-secret-key specifically?

2 Likes

Hello, you need to use Cloud Storage HMAC keys. See here

2 Likes

Appreciate your update, we shall try this and confirm.

2 Likes