【问题标题】:Google Cloud Firestore: How to copy Firestore collection to Cloud StorageGoogle Cloud Firestore:如何将 Firestore 集合复制到 Cloud Storage
【发布时间】:2018-08-13 04:07:41
【问题描述】:

编写代码是将 Firestore 集合复制到 Cloud Storage 的唯一选择,还是我可以使用某种神奇的功能?

我知道在 Next 会议期间的 Firestore 演讲中发布了将 Firestore 集合导入 BigQuery 的新功能公告。 Cloud Storage 有类似的东西吗?

【问题讨论】:

    标签: google-cloud-storage google-cloud-firestore


    【解决方案1】:

    https://cloud.google.com/firestore/docs/manage-data/export-import。不太确定这是否是一项新功能,但我会尝试一下。

    【讨论】:

      【解决方案2】:

      是的,最后,Firebase 启用了此功能。

      1. Create Cloud Storage Bucket
      2. 如果尚未安装 gcloud:在终端运行 curl https://sdk.cloud.google.com | bash
        • 提示Modify profile to update your $PATH and enable bash completion? (Y/n)后输入y+回车
      3. 接下来,运行source .bash_profile
      4. 之后,运行:gcloud beta firestore export gs://[BUCKET-NAME]

      1. 如果您想在本地保存文件夹,只需运行gsutil cp -r gs://[BUCKET-NAME] /path/to/folder

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-09-26
        • 2018-09-16
        • 2021-05-06
        • 2020-05-18
        • 2020-01-11
        • 2021-04-07
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多