# Google Cloud Storage repository plugin

**URL:** <https://community.cratedb.com/t/google-cloud-storage-repository-plugin/124>\
**Category:** CrateDB\
**Created:** [January 20, 2019, 9:37pm UTC](https://community.cratedb.com/t/google-cloud-storage-repository-plugin/124 "2019-01-20T21:37:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lascarayf](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/lascarayf/32/72_2.png) [@lascarayf](https://community.cratedb.com/u/lascarayf)\
**Post date:** [January 20, 2019, 9:37pm UTC](https://community.cratedb.com/t/google-cloud-storage-repository-plugin/124/1 "2019-01-20T21:37:47Z")

</div>

Hello, I’m running a CrateDB server on GCP and I would like to know if there is a plugin to make snaptshots in Google Cloud Storage. From what I could see Elasticsearch has one but I doubt it works for Crate.

Thanks

---

<div class="post-metadata">

**Author:** ![roman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/roman/32/36_2.png) [@roman](https://community.cratedb.com/u/roman)\
**Post date:** [January 21, 2019, 2:28pm UTC](https://community.cratedb.com/t/google-cloud-storage-repository-plugin/124/2 "2019-01-21T14:28:20Z")

</div>

Hi @lascarayf,

Thanks for your question. Unfortunately we do not support snapshots to Google Cloud Storage. CrateDB uses a different plugin mechanism than Elasticsearch.

However, you could of course try to adapt the Elasticsearch plugin and make it a community contribution!

---

<div class="post-metadata">

**Author:** ![kkujawinski](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@kkujawinski](https://community.cratedb.com/u/kkujawinski)\
**Post date:** [July 30, 2020, 2:08pm UTC](https://community.cratedb.com/t/google-cloud-storage-repository-plugin/124/3 "2020-07-30T14:08:17Z")

</div>

I found the way to make CrateDB snapshots work with Google Cloud Platform Storage buckets.

There is s3 snapshots plugin by default installed in CrateDB. GCP s3 implementation is not fully compatible with it and if fails on the verification step when adding a new repository. To bypass this you can add it by Elastic Search API with a skipped verification flag on.

Steps:

1. Start CrateDB with parameter: `-Ces.api.enabled=true`

2. Add repository with API call:

3. `CREATE SNAPSHOT repositoryname.snapshot_name ALL;`

4. `RESTORE SNAPSHOT repositoryname.snapshot_name ALL;`

5. access\_key and secret\_key you can obtain in Google Cloud Platform console in `Storage > Settings > Interoperability > Access keys for service accounts`
