Firestore Dister Recovery Planning

Currently we don’t take any backup for FireStore DataBase. Wanted to know best practice for that. Do we need to take backups. We are using Firebase Extension to copy data to BigQuery for Important Collections. But we feel it is very less likely something wrong will happen in Firebase and all data won’t be recoverable.

Need best practice. Please guide us.

Hi anowar,

For best practices, we recommend using the “Export and import data” feature in the case of a data loss event. This can be done with with either the Cloud Console or with gcloud.
This operation copies documents in your database and exports them into a Cloud Storage bucket. An export may include changes that were made while the operation was running.
Once exported, you can import documents back into your project.

In addition, you can export to BigQuery if you wish to do so. However, there are limitations listed here.

I hope this is useful to you!

Thank you so much for your response. In the documentation, I can see, we need to create backup in case of accidental deletion. That will less likely happen as we have separate env for dev, test & prod. And we are using Firebase extension to backup new write/update events in Firestore collection in BigQuery.

I wanted to confirm if there is any recovery plan set on Google Side in case of system failure or disaster.

Hi anowar,
Thanks for the follow up. In cases of disaster or system failure, Firestore provides a highly available database depending on your chosen location.
Multi-Region locations can withstand the loss of entire regions and maintain availability without losing data.
Regional locations creates replications within multiple zones in that region.

I hope this answers your question.