Accidentally Deleted Document in Firebase - I have it in Prod How Can I Recreate it For UAT

Hi there,

By a mistake I deleted a document in my Firebase UAT environment, but it is still intact in Production.

Question:

  1. How can I add the file back to UAT is there a why I can export it or refill it out in UAT?

  2. Once it is recreated do you think it will not work in my app/that it depends on the automatically generated ID? Thanks!

I accidentally deleted default-rubric document.

Hi @diana1d1 ,

Welcome to Google Cloud Community!

Based on your questions related to your Firestore database, below are my answers:

  1. Since you still have the document intact in the Production environment, you can export the document from Production and then re-create it in UAT. You can use the Cloud Firestore managed export and import service to recover data if it’s accidentally deleted or to export data for offline use. You have the option to export all documents or just specific collections. Similarly, when importing, you can bring in all the data from an export or choose to import only certain collections.
  2. How the document works in your app depends on how your app accesses it. If you recreate the document in UAT with the same ID as in Production, it should work fine. If the document has an auto-generated ID and you create a new one in UAT, your app might not find it unless you update the app to handle the new ID.

I hope this helps!