'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. I have logged in to my SSH console and so far I can only list the contents of my files as follows.
cd /var/www/html/staging
Now I want to download all the files from that staging folder.
Solution 1:[1]
Sorry, if I'm missing the point. Anyway, I came here seeking a way to download files from 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. In the appearing dropdown you should find Download button.
Solution 2:[2]
If you mean cloud shell, then I typically use the gcp storage tool suite.
In summary, I transfer from cloud shell to gcp storage, then from storage to my workstation.
- First, have the Google cloud ask installed on your system.
- Make a bucket to transfer it into with
gsutil mb gs://MySweetBucket - From within cloud shell, Move the file I to the bucket.
gsutil cp /path/to/file gs://MySweetBucket/ - On your local system pull the file down.
gsutil cp gs://MySweetBucket/filename
Done!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | thebwt |

