Member-only story
Some Thoughts On Firestore Backup And Restore
Firebase recently introduced their own backup and restore solution for Firestore. By accident, I stumbled across the documentation of this new feature. I totally missed the original announcement, and also the announcement that you can do it with the Firebase CLI now. And my Firebase dashboard showed multiple database only since last week, so I guess I am really late to the party.
And to be honest: It doesn’t really look like Firebase, because you have to install the Google Cloud SDK (Firebase CLI works too since two months) to work with it. And it’s pure command line setup. You can’t do anything in the Firebase Console. But they are working on it. I already shared how it works (and it works pretty good for a preview version so far).
Of course, any serious developer has probably already implemented some kind of backup strategy. Firestore offers an import and export feature (which also required the Google Cloud SDK) that is stored in Cloud Storage. You could also download it and store in on your own…