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

查看:177
本文介绍了从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天全站免登陆