Skip to content

Commit 52910c1

Browse files
committed
Merge pull request #5 from tilfin/feature/how_to_setup_gsutil-auth
Add gsutil permanently set up way
2 parents 307ca10 + d580bfb commit 52910c1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,29 @@ $ sudo -i
4949
# /backup/gsutil/gsutil config -o /backup/serverbackup/boto.cfg
5050
```
5151

52+
The above method is that the token refresh does not work.
53+
It is permanently set up in the following way.
54+
55+
1. Create a service account at your Google cloud console.
56+
2. Select to furnish a new private key whose type is _P12_.
57+
3. Put created .p12 file at `/backup/serverbackup/<secret key file.p12>`
58+
4. Write `/backup/serverbackup/boto.cfg` with the content of the following
59+
60+
```
61+
[Credentials]
62+
gs_service_client_id = <service account email address>
63+
gs_service_key_file = /backup/serverbackup/<secret key file.p12>
64+
gs_service_key_file_password = <pass phrase for key file>
65+
66+
[Boto]
67+
https_validate_certificates = True
68+
69+
[GSUtil]
70+
content_language = en
71+
default_api_version = 2
72+
default_project_id = <Google Developer Project ID>
73+
```
74+
5275
#### backup.conf
5376

5477
Edit following entries.

0 commit comments

Comments
 (0)