Skip to content

Instantly share code, notes, and snippets.

@pentium10
Created February 15, 2021 18:14
Show Gist options
  • Save pentium10/56a49fa5045924c9e01459ba45a62fd3 to your computer and use it in GitHub Desktop.
Save pentium10/56a49fa5045924c9e01459ba45a62fd3 to your computer and use it in GitHub Desktop.
Workflow_exportFirestoreDatabaseAll
- initialize:
assign:
- project: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")}
- firestoreDatabaseId: (default)
- firestoreBackupBucket: gs://my_bucket_for_backups
- exportFirestoreDatabaseAll:
call: http.post
args:
url: ${"https://firestore.googleapis.com/v1/projects/"+project+"/databases/"+firestoreDatabaseId+":exportDocuments"}
auth:
type: OAuth2
body:
outputUriPrefix: ${firestoreBackupBucket}
result: result
- returnResult:
return: ${result}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment