How to Backup a Firestore Database, the No-code Way

Thomas Gaillard
3 min readFeb 25, 2020

--

Don’t bother with code when you can backup your Firestore data in 3 minutes with Integromat!

Prerequisite: You need to activate the Blaze plan in 🔥 Firestore

Step 1: Create a Bucket in Google Cloud

Let’s go to the Google Cloud console: https://console.cloud.google.com/storage/create-bucket

Select your Firestore Project at the top and follow the process to Create a Bucket

For the storage location, choose “us-central” or “us-multi-region”.

Step 2: Create a Scenario on Integromat

Once we have our new bucket, we will use Integromat to help us transfer our data over Google Cloud Storage.

Create a new scenario in Integromat, add the “Firebase Cloud Firestore” app
and select the “Backup to Google Cloud Storage” module.

You will need to set up your module as follow:

Once you’ve set up the module, press the “Run once” button.

When the operation is over, you should be able to see a new folder created in your Storage Bucket: this is your first backup, good job!

Step 3: Schedule the Scenario

We’re almost there! The final step is to schedule our backup operations, and with Integromat, it’s a piece of cake:

Just click on the clock to schedule your backup and switch on the “scheduling” toggle to activate your scenario!

🎉Congrats! Your database is backed up and you ended up saving quite some time! 👏

Don’t forget that you can also combine your scenario with any other app inside Integromat! And take some time to test the “Restore” module to reimport your backup at any time in your project.

Note: If you choose to backup between two different Firestore/Google projects, don’t forget to setup the permission Storage Legacy Bucket Owner in the GCS Storage Browser for the target bucket.

Happy Automating!

--

--