Skip to content
loading...

re: How to Use the Firestore Export API Before it is Released VIEW POST

FULL DISCUSSION
 

Thanks for the write up. How hard would it be to leverage this API to do offsite backups (in case you wanted to migrate somewhere else for instance)

 

Thanks for the question! It should be trivial to download the export files from the storage bucket and store them elsewhere. I'm not sure if the API would support an external destination directly (S3, for instance), but my guess is that gs:// URLs are the only supported destinations.

Migration may be a bigger issue. It appears that the files generated by this API are in the same format as Google Cloud Datastore entity exports, which appear to be proprietary. The decision to use Firebase comes with a ton of vendor lock-in, so this is not surprising.

If anyone is looking to export their data for use in another system, one of the tree traversal scripts found on NPM would likely be their best bet. Most of them are capable of producing JSON files that could be consumed by other systems.

 

The bucket doesn't support downloading folders (which is what this CLI produces in your bucket), however the google storage transfer service supports transferring to A3 and I think some Url of your own, too.

code of conduct - report abuse