# Noob trying to setup xbcloud to Google

**URL:** <https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436>\
**Category:** Percona XtraBackup\
**Created:** [December 23, 2020, 8:43am UTC](https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436 "2020-12-23T08:43:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LenR](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lenr/32/1520_2.png) [@LenR](https://forums.percona.com/u/LenR)\
**Post date:** [December 23, 2020, 8:43am UTC](https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436/1 "2020-12-23T08:43:39Z")

</div>

I’m a long time user of xtrabackup locally, now I’m trying to use Google cold storage instead of local, but I’m new to Google cloud.

I think I have a storage bucket and keys, but everything I try never ever appears to try to talk to Google. I can’t find any way to get any error messages out of xbcloud. I think it’s failing since the error is xbstream out put failing.

Thanks

The sanitized command:

xtrabackup --backup --stream=xbstream --extra-lsndir=/tmp --target-dir=/tmp | \

xbcloud put --storage=google \

–google-endpoint=‘[storage.googleapis.com](http://storage.googleapis.com)’ \

–google-access-key=‘GOOG+ about 56 chars key stuff’ \

–google-secret-key=‘about 42 chars secret stuff’ \

–google-bucket=‘my-bucket’ \

–parallel=10 \

${date -I}-full\_backup

Version info:

Using server version 5.5.68-MariaDB

xtrabackup version 2.4.21 based on MySQL server 5.7.32 Linux (x86\_64) (revision id: 5988af5)

Errors:

xtrabackup: Error writing file ‘UNOPENED’ (Errcode: 32 - Broken pipe)

xb\_stream\_write\_data() failed.

xtrabackup: Error: write to logfile failed

xtrabackup: Error writing file ‘UNOPENED’ (Errcode: 32 - Broken pipe)

xtrabackup: Error: xtrabackup\_copy\_logfile() failed.

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [December 23, 2020, 9:49am UTC](https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436/2 "2020-12-23T09:49:13Z")

</div>

Hi LenR.

I Believe your issue is due to the backup name you are setting:

echo ${date -I}-full\_backup

-bash: ${date -I}-full\_backup: bad substitution

Try setting to a different name and let us know. If it doesn’t work, please send the output of the full backup passing the --verbose parameter to xbcloud.

---

<div class="post-metadata">

**Author:** ![LenR](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lenr/32/1520_2.png) [@LenR](https://forums.percona.com/u/LenR)\
**Post date:** [December 23, 2020, 10:14am UTC](https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436/3 "2020-12-23T10:14:50Z")

</div>

I copied that from [https://www.percona.com/doc/percona-xtrabackup/LATEST/xbcloud/xbcloud.html](https://www.percona.com/doc/percona-xtrabackup/LATEST/xbcloud/xbcloud.html), didn’t even look for the simple stuff…

Now I’m getting xbcloud: Probe failed. Please check your credentials and endpoint settings.

So I think I’m getting to Google, and failing. The first meal of Google is hard to get into bite sized pieces.

Thanks

---

<div class="post-metadata">

**Author:** ![LenR](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lenr/32/1520_2.png) [@LenR](https://forums.percona.com/u/LenR)\
**Post date:** [December 23, 2020, 12:39pm UTC](https://forums.percona.com/t/noob-trying-to-setup-xbcloud-to-google/8436/4 "2020-12-23T12:39:41Z")

</div>

Thanks, finally got it working
