Firestore Backup Cron
Scheduled export of every collection to Cloud Storage, with retention and a restore command.
firebasegcpbackupnode
Firestore has no undo. A bad batch write is permanent unless you had a backup before it ran.
What it does
A scheduled Cloud Function exports all collections to a Storage bucket nightly, keeps daily snapshots for a week and weekly ones for three months, then prunes.
The part people skip
Restore is a real command, not a documented procedure:
npx firestore-backup restore --at 2026-03-14 --collection articles --dry-run
--dry-run prints what would change without writing. A backup you have never restored from is a backup you are hoping about.