Backup Firestore data to storage bucket on a schedule in GCP
How to backup your Firestore data to cloud storage bucket using Cloud Function and Cloud Scheduler on Google Cloud Platform
Published in
3 min readNov 19, 2019
In this article we are going to use four features of Google Cloud Platform (in four simple steps) to backup our Firestore database to a storage bucket.
The four steps are as follows:
- Create a storage bucket to hold your data using Cloud Storage
- Create a method to backup the data using Cloud Functions
- Create schedule to run backup using Cloud Scheduler
- Enable appropriate permissions in IAM
So, let’s begin…
Create a storage bucket to hold your data
First off, let’s log into GCP web console and browse to Storage, then Browser. Then click on Create Bucket button and use the below values.
- Name — an unique name of your choice
- Where to store — select Multi-regional
- Storage class — select Nearline
Leave the remaining defaults then click Create.