Google cloud firestore 正在恢复firestore导出的一部分

Google cloud firestore 正在恢复firestore导出的一部分,google-cloud-firestore,gcloud,google-cloud-sdk,Google Cloud Firestore,Gcloud,Google Cloud Sdk,我正在跟进以下文件: 我正在尝试从今天开始在备份中还原一个集合pets。然而,我得到的是: # gcloud firestore import gs://pets-backup/2021-02-26T02:27:05_54372/ --collection-ids='pets' ERROR: (gcloud.firestore.import) INVALID_ARGUMENT: The requested kinds/namespaces are not available 我可以确认gs

我正在跟进以下文件:

我正在尝试从今天开始在备份中还原一个集合
pets
。然而,我得到的是:

# gcloud firestore import gs://pets-backup/2021-02-26T02:27:05_54372/ --collection-ids='pets'
ERROR: (gcloud.firestore.import) INVALID_ARGUMENT: The requested kinds/namespaces are not available
我可以确认
gs bucket
存在,并且集合
pets
也存在

这个错误不是很有帮助,我不确定我在处理什么

我注意到在导出中,有文件夹
/all\u namespace/all\u types
。当我尝试直接从这些导入时,我得到:

gcloud firestore import 'gs://pets-backup/2021-02-26T02:27:05_54372/all_namespaces/all_kinds' --collection-ids='pets'
ERROR: (gcloud.firestore.import) NOT_FOUND: Google Cloud Storage file does not exist: /pets-backup/2021-02-26T02:27:05_54372/all_namespaces/all_kinds/all_kinds.overall_export_metadata

我可以看到只有一个文件
所有名称空间\u所有类型。导出元数据
与导入工具要查找的文件不匹配。

如您在评论中确认的,您正在尝试从中提取集合并导出所有集合。不幸的是,这在目前是不可能的,正如您在下面所看到的:

只有特定集合组的导出才支持特定集合组的导入。无法从所有文档的导出中导入特定集合


如果你想改变这个,你可以提交一个特性请求,这样他们就可以考虑这个功能被实现。< /P>是你试图从所有集合的导出中提取这个集合的导出吗?正如你在这里看到的,这是不可能的。不幸的是,是的。这实在不切实际:/