Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase: Does importing a firestore database from a previous export trigger Cloud Functions? [duplicate]

I have an app in production with backups scheduled daily using the method described in the firebase docs:

Export all documents from a firestore database

I also have some Cloud Function triggers watching certain collections in the firestore database for onCreate, onUpdate, onWrite and onDelete events.

If I were to import the backup to the same project (to restore data to a previous state) at some point in the future, would the import trigger the cloud function events?

like image 870
Jamie Curnow Avatar asked Mar 10 '26 20:03

Jamie Curnow


1 Answers

It seems right now that it doesn't trigger onWrite triggers. Just tested simple collection export and import with triggers that writes data to BigQuery. Manual changes to collection triggers onWrite and data is written to BQ. I was using gcloud beta firestore import / export features.

like image 133
lisek Avatar answered Mar 12 '26 16:03

lisek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!