【问题标题】:Exporting firebase data to json将 Firebase 数据导出到 json
【发布时间】:2022-09-23 01:59:18
【问题描述】:

我正在尝试使用 gcloud 导出特定的 Firestore 集合 现在,我做到了

gcloud storage buckets create gs://my-bucket 
gcloud firestore export gs://my-bucket --collection-ids=my-collection 
gcloud storage cp -r gs://my-bucket/2022-09-22T09:20:16_11252 my-directory

这会导致my-directory/all_namespaces/.../output-1 中的一些内容。 output-1 文件似乎包含一些相关数据,但可读性不强。因此有一些问题:

  • 使用哪种文件格式?
  • 我可以直接导出为 JSON(或 CSV 或 XML)吗
  • 我可以将当​​前文件转换为 JSON、CSV 或 XML

以及相关

  • 为什么output-0 是空的?

    标签: google-cloud-firestore gcloud


    【解决方案1】:

    是的,您可以将 firebase 数据导出为 json,请按照本文从 firebase 导出数据,希望对您有所帮助 - https://support.google.com/firebase/answer/6386780?hl=en#zippy=%2Cin-this-article

    【讨论】:

    • 我不确定,但我认为这个答案是指 Firebase Realtime 数据库,而不是 Firestore 数据库。我没有看到“导出 JSON”菜单条目。
    猜你喜欢
    • 2019-05-30
    • 1970-01-01
    • 2016-10-18
    • 1970-01-01
    • 2018-12-21
    • 1970-01-01
    • 1970-01-01
    • 2013-06-15
    • 1970-01-01
    相关资源
    最近更新 更多