mirror of
https://github.com/restic/restic.git
synced 2025-08-15 04:17:28 +00:00
Merge pull request #1552 from lawrencejones/use-auto-auth
Automatically load Google auth
This commit is contained in:
@@ -362,8 +362,14 @@ key file and the project ID as follows:
|
||||
$ export GOOGLE_PROJECT_ID=123123123123
|
||||
$ export GOOGLE_APPLICATION_CREDENTIALS=$HOME/.config/gs-secret-restic-key.json
|
||||
|
||||
Then you can use the ``gs:`` backend type to create a new repository in the
|
||||
bucket `foo` at the root path:
|
||||
We use Google's client library to generate [default authentication
|
||||
material](https://developers.google.com/identity/protocols/application-default-credentials),
|
||||
which means if you're running in Google Container Engine or are otherwise
|
||||
located on an instance with default service accounts then these should work out
|
||||
the box.
|
||||
|
||||
Once authenticated, you can use the ``gs:`` backend type to create a new
|
||||
repository in the bucket `foo` at the root path:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
|
Reference in New Issue
Block a user