Skip to content

Commit

Permalink
WiP - documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Jan 26, 2021
1 parent 21f2689 commit d60877b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
24 changes: 22 additions & 2 deletions documentation/firestore-backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ In order to fully backup the platform there are 3 areas that need to be backed u
![](images/firestore-backup-1.png)

The backup can be made to the existing `onearmyworld-exports` bucket, or a personal storage bucket. Exports should be named in a consistent way:

The backup can also be downloaded using the [gsutil](https://cloud.google.com/storage/docs/gsutil) tool

```
gsutil cp -r gs://onearmyworld-exports/name-of-backup ./my-local-backup-folder
```
Expand All @@ -37,3 +37,23 @@ In order to fully backup the platform there are 3 areas that need to be backed u
```
```

## Service worker

- activate required api: https://console.cloud.google.com/apis/api/cloudresourcemanager.googleapis.com
- creating
- permissions (easiest to assign as viewer for source, and datastore import/export target)
- Source firestore - viewer
- Target firestore - viewer, datastore import/export
- Storage bucket - storage admin
- https://cloud.google.com/firestore/docs/security/iam#roles
- https://cloud.google.com/iam/docs/granting-changing-revoking-access
- - Check

```
gcloud projects list
```

```
gcloud auth list
```

0 comments on commit d60877b

Please sign in to comment.