简体   繁体   English

如何从 Google Cloud Console 将文件夹下载到我的本地 PC

[英]How to download a folder to my local PC from Google Cloud console

I have a folder I want to download from Google Cloud Console using the Linux Ubuntu command terminal.我有一个文件夹,我想使用 Linux Ubuntu 命令终端从 Google Cloud Console 下载。 I have logged in to my SSH console and so far I can only list the contents of my files as follows.我已经登录到我的 SSH 控制台,到目前为止我只能列出我的文件内容如下。

cd /var/www/html/staging

Now I want to download all the files from that staging folder.现在我想从该暂存文件夹下载所有文件。

If you mean cloud shell, then I typically use the gcp storage tool suite. 如果您指的是云外壳,那么我通常使用gcp存储工具套件。

In summary, I transfer from cloud shell to gcp storage, then from storage to my workstation. 总而言之,我从云外壳转移到gcp存储,然后从存储转移到我的工作站。

  1. First, have the Google cloud ask installed on your system. 首先,在您的系统上安装Google Cloud Ask。
  2. Make a bucket to transfer it into with gsutil mb gs://MySweetBucket 使用gsutil mb gs://MySweetBucket一个存储桶以将其传输到其中
  3. From within cloud shell, Move the file I to the bucket. 在云外壳中,将文件I移到存储桶中。 gsutil cp /path/to/file gs://MySweetBucket/
  4. On your local system pull the file down. 在本地系统上,将文件下拉。 gsutil cp gs://MySweetBucket/filename

Done! 做完了!

Sorry, if I'm missing the point.对不起,如果我错过了重点。 Anyway, I came here seeking a way to download files from Google Cloud Console.无论如何,我来到这里是为了寻找一种从 Google Cloud Console 下载文件的方法。 I didn't have the ability to create an additional bucket as the author above suggested.我没有能力像上面的作者建议的那样创建一个额外的存储桶。 But I accidently noticed that there is a button for exactly what I needed.但我无意中注意到有一个按钮可以满足我的需求。

Seek keebab-style menu button.寻求keebab风格的菜单按钮。 In the appearing dropdown you should find Download button.在出现的下拉列表中,您应该找到下载按钮。

I can't post a picture due to low reputation, hence posting only a link.由于声誉低,我无法发布图片,因此仅发布链接。

Picture_HowToFindDownlodadButton Picture_HowToFindDownlodadButton

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将文件从我的本地 windows 电脑传输到我的 Linux 虚拟机 - Transferring files from my Local windows pc to my Linux VM 如何从 docker 容器内访问我本地 PC 的文件系统 - how to access the file system of my local PC from within the docker container 如何在运行时使用python传递存储桶和本地文件夹值时,将所有文件从s3存储桶下载到本地linux服务器 - How to download all files from s3 bucket to local linux server while passing bucket and local folder value at runtime using python 如何使用 linux 中的命令从谷歌驱动器或保管箱下载文件夹? - How can I download a folder from google drive or dropbox using command in linux? 如何使用python从服务器读取本地PC中的文件 - how to read file in local PC from server with python 如何将不同 PC 上的 Linux 目录挂载到本地 Linux PC? - How to Mount a Linux directory from a different PC to your local Linux PC? 如何从 Cloud Run 容器内的 Cloud Storage 下载文件? - How to download file from Cloud Storage inside Cloud Run container? 如何将所有文件从远程目录下载到本地目录? - How can I download all the files from a remote directory to my local directory? 如何从本地html文件下载图像? - How to download images from local html file? 如何使用 linux 中的链接下载谷歌驱动器文件夹 - How to download a google drive folder using link in linux
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM