从 Google Cloud Storage Bucket 下载文件夹 [英] Downloading folders from Google Cloud Storage Bucket

查看:38
本文介绍了从 Google Cloud Storage Bucket 下载文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Google Cloud Platform 的新手.我已经在 datalab 上训练了我的模型,并将模型文件夹保存在我的存储桶中的云存储中.我可以通过右键单击文件 --> 另存为链接,将存储桶中的现有文件下载到我的本地计算机.但是当我尝试通过与上述相同的过程下载文件夹时,我没有得到文件夹而是它的图像.无论如何我可以下载整个文件夹及其内容吗?是否有任何 gsutil 命令可以将文件夹从云存储复制到本地目录?

I'm new to Google Cloud Platform.I have trained my model on datalab and saved the model folder on cloud storage in my bucket. I'm able to download the existing files in the bucket to my local machine by doing right-click on the file --> save as link. But when I try to download the folder by the same procedure as above, I'm not getting the folder but its image. Is there anyway I can download the whole folder and its contents as it is? Is there any gsutil command to copy folders from cloud storage to local directory?

推荐答案

您可以在 gsutil 工具上找到文档 此处 以及更具体的问题此处.

You can find docs on the gsutil tool here and for your question more specifically here.

您要使用的命令是:

gsutil cp -r gs://bucket/folder .

这篇关于从 Google Cloud Storage Bucket 下载文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆