Restore a Firestore document with point-in-time recovery

Compare a historical Firestore document against its current version or recreate a deleted document from a point-in-time snapshot.

Find an available version

Firestore allows recent historical reads within the past hour. With point-in-time recovery (PITR), you can go back up to seven days at whole-minute timestamps, depending on when PITR was enabled and the database’s retention window.

See Cloud Firestore retention rules

Compare and restore the document

  1. Open a collection in the correct database and select À une date passée. Choose a minute before the change or deletion.
  2. Open the historical document and choose Comparer avec la version actuelle. Review the fields that changed or disappeared.
  3. With write permission on the database, choose Restaurer cette version. QueryCanopy recreates the document at its original path if it is still absent, or checks the current version before applying the historical fields.

If the live document changes while you compare, review it again before retrying.

Verify the restoration

Return to the current data and check the audit log for the before and after values. The action applies to the selected document. You can restore documents in its subcollections individually.

See QueryCanopy platforms