英文:
Export Firestore backups in .json
问题
有没有可能以.json格式导出Firestore的备份?(不需要使用BigQuery)
[我知道https://stackoverflow.com/questions/46617960/export-json-from-firestore之前的问题,但由于我去年以来没有找到确认,并且在Google文档中也找不到验证,所以我再次提问)
另外,Firestore备份是否可以以不是特定于Google的其他格式导出?
英文:
Is it possible to export Firestore backups in .json format? (that do NOT require BigQuery)
[I am aware of https://stackoverflow.com/questions/46617960/export-json-from-firestore previous question, but seeing that I find no confirmation since last year and cannot find verification on Google Documentation, I ask again)
Else, is there any other format that is not Google-specific in which Firestore backups can be exported?
答案1
得分: 1
除了你在另一个问题中阅读的内容,这是谷歌提供的唯一数据导出解决方案。 (请注意,它并不完全是一个“备份” - 它是一个导出,不一定代表某个特定时刻的快照。)
任何其他解决方案都必须查询每个集合和子集合中的所有文档,并以所需的格式编写这些文档的内容,正确处理每种不同的字段类型。由于在Stack Overflow上讨论工具的建议属于离题,我建议进行网络搜索,寻找可能适合你的工具。
英文:
What you read in that other question is the only Google-provided solution for exporting data. (Note that it's not exactly a "backup" - it's an export, and it's not necessarily going to represent a snapshot in time.)
Any other solution will necessarily have to query every single collection and subcollection for all documents, and write the contents of those documents in the desired format, correctly handling each of the different field types. Since recommendations for tools are off-topic for Stack Overflow, I suggest doing a web search for tools that might be suitable for you.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论