> For the complete documentation index, see [llms.txt](https://helpcenter.gitprotect.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.gitprotect.io/storage/cloud-storage/google-cloud-storage/adding-new-storage-to-gitprotect.md).

# Adding new storage to GitProtect

How to set up a Google Cloud Storage bucket as a storage repository in GitProtect.

**Google Cloud Storage can be configured as a backup destination in GitProtect, allowing backup data to be stored in a dedicated Cloud Storage bucket.**

***

## Storage setup

The following steps demonstrate how to add a **Cloud Storage** bucket to **GitProtect**.

{% stepper %}
{% step %}
In **GitProtect Management Service**, open the **Storages** tab and click the **+ Add storage** button in the top bar.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FfNAadzV0nWqWehTVGg2R%2Fimage.png?alt=media&amp;token=9f38b4aa-76b3-4da1-9024-37b3c858c467" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Enter the name of your new storage in the **Add storage name** field (step 1). In the **Storage type** section, expand the list of available storage types (step 2).

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-37efcfd5381d8d21d7dcf10c81b5e39c02b347dc%2Fimage%20(342).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select **Google Cloud Storage** from the list.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2FdfdIpojVQu6gHhgd5vwf%2Fgcpset3.png?alt=media&amp;token=734e66a2-c854-4e23-931d-63d29ce81580" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Copy the secret access key and access key ID from **Google Cloud Storage**. Paste the access key ID to the corresponding field, then click **Select or add secret access key** to open the **Password Manager** menu and add the secret key to your bucket.

{% hint style="info" %}
To generate a new secret access key and access key ID, navigate to **Cloud Storage** > **Settings** > **Interoperability** in the **Google Cloud Console** and create a new key under the **HMAC keys** section. For further details on managing access keys, refer to the [official Google Cloud Storage documentation](#useful-links-and-items).
{% endhint %}

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-80d7d5a39d4b9ce3ebf0b731dcf7028fbc16d334%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In the **Service URL** field, enter the request endpoint URL obtained from **GCS** interoperability settings (e.g., <https://storage.googleapis.com>). Enter the bucket name in the corresponding field and, optionally, provide a description to help identify this storage repository in the console.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-bffe00037345f79c427bfb684e09147143ed6620%2Fimage%20(350).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select the default backup agent (worker) to be used for browsing the data. Ensure that the selected backup agent can access your **Google Cloud Storage** bucket.

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2F4i68rtQ7jzBJKU5LsSRu%2Fimage.png?alt=media&amp;token=c85bdc8f-7a2c-49fa-b6ed-2292561e858e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Review your settings and click **Save** to add the storage to **GitProtect**. Refresh the page to view the newly added storage repository on the list (if needed).

<figure><img src="https://696332517-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtsE6XtJyUIEKVdSxPlS3%2Fuploads%2Fgit-blob-3bc52cca182bdccfb3a4a096025afe7e89902f22%2Fimage%20(352).png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

***

## Useful links and items

{% embed url="<https://cloud.google.com/storage/docs/authentication/managing-hmackeys>" %}
