With my team, we use a lot of Firebase features like Firestore.
But there is no simple way to backup the data regularly.
We created a tiny Docker...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for this great idea!
However, I'm skeptical about security management:
ownerrole? It's not too much?Why do not simply consider this:
Hi Guillaume 👋
Thanks for your feedback. 👍
I invite you to report the error on the github of the project here.
For the service account and the
ownerrole, I just followed the documentation here.Perhaps we could use the
Cloud Runservice account.This first tutorial on "how to backup your Firestore data" is described to show a simple usecase. I understand your advices on security management. Your idea to use KMS is interesting.
Thank you.
I created the issue #7 and the pull request #8
Security still can be higher, with private Cloud Run, and Cloud Scheduler with a service account identity and the role run.invoker granted on it for calling the Cloud Run.
Unrelated comment: I hope you enjoy your GDE Summit weekend!
Best
Guillaume
I am getting an error when hitting the list page
2019-08-20 13:21:49.832 SASTERROR: (gcloud.beta.firestore.operations.list) PERMISSION_DENIED: The caller does not have permission
firebase-backup@xxxxxx.gserviceacc... firebase-backup
Cloud Datastore Import Export Admin
Cloud Datastore Owner
Owner
Storage Admin
Hi Daniel 👋
Thanks for your feedback. 👍
I invite you to report the error on the github of the project here
Perhaps you didn't enable the APIs 🤔
Be careful, like written in the docs,
Only GCP projects with billing enabled can use the export and import functionality.Are you using theSpark Planon Firebase? 😇Please answer if you find a solution to share the solution to the community. 🙌
Which APIs are required? Don't see any mention of these in either blog or github posting
Thanks Julien, I only followed this blog post.
I'll take a loot at the github link as well
We are using Blaze Plan on the project
What is the plan for the recover/import of these backups?
Hi Daniel 👋
You can manually run the following commands in Cloud Shell to trigger the import.
Excellent, that was my plan