Create Firestore backups files manually #6483
Unanswered
IchordeDionysos
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@samtstern @rwhogg do you have any insights into this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When doing large-scale data exports and imports, it's often faster to do them via the import/export feature provided by Firestore.
However, when you need to do data transformations, this is no longer possible.
It would be nice if Firestore would provide a way to parse and create backup files using scripts.
With that, we could export data, transform it using a script, and then re-import that data (e.g., into a different database).
Given that the Firestore export data structure is mostly undocumented, it's hard to work with that file format to do such data transformation.
From the available documentation, it seems like it's GRPC compiled:
https://cloud.google.com/datastore/docs/export-import-entities#metadata_files
And while it works to decode the
.export_metadata
file, decoding fails for the.overall_export_metadata
and the individualoutput-0
metadata files.I've tried the following command:
Another idea would be to download and work with the local Firestore emulator, but even there, it might run into issues when dealing with millions of documents...
Do you have any other tips or tricks on how to best do that?
Beta Was this translation helpful? Give feedback.
All reactions