1
0
Fork 0
mirror of https://github.com/kopia/kopia.git synced 2026-04-25 09:55:50 +03:00
8 Google Cloud Storage
Jarek Kowalski edited this page 2018-04-15 20:50:02 -07:00

Kopia can store backups in Google Cloud Storage buckets - a highly available and low-cost storage solution that scales to virtually unlimited number of objects. You can choose between buckets of various durability and availability, located in any of Google Cloud regions around the world.

Kopia uses single bucket for all contents of Repository.

Preparation

  1. Go to https://console.cloud.google.com/storage/browser and create a new Cloud Storage bucket.

    • The bucket name must be globally unique.

    • It's best to use unique, memorable name, e.g. your-bucket-name.

    • As part of setting up a bucket you may be asked to create cloud project and a billing account.

  2. (Strongly recommended) Install Google Cloud SDK

    • Once installed, make sure to login to your Google Cloud account by running: gcloud auth login

Creating Repository in Google Cloud Storage

After you install Google Cloud SDK and create a bucket, creating Kopia Repository in a given storage bucket is as simple as running kopia repository create google. You will be prompted to pick a strong password:

$ kopia repository create google --bucket your-bucket-name

Once connected, you won't be prompted to enter the vault password again. The password is stored in Configuration File. You may disconnect at any time and discard cached password by running:

$ kopia repository disconnect

Connecting to existing repository in Google Cloud Storage

To connect to existing Repository in Google Cloud Storage use kopia repository connect google:

$ kopia repository connect google --bucket your-bucket-name