How to download a folder to my local PC from Google Cloud console
Asked Answered
D

3

5

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.

Dorr answered 24/7, 2019 at 6:22 Comment(2)
Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault.Stickler
Please read Help On-topic and Help How-to-ask before posting more Qs here. Good luck.Daryl
C
6

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 thebwt 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.

Menu screenshot

Chough answered 10/10, 2021 at 11:8 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Toxicogenic
Note: If you are trying to download a big file (over 50 MB) this way will be extremely slow. Google will split this file into zillion parts ~10 kB each, and will try make a separate http request for each of the part. For big files I use scpClova
A
1

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.

  1. First, have the Google cloud ask installed on your system.
  2. Make a bucket to transfer it into with gsutil mb gs://MySweetBucket
  3. From within cloud shell, Move the file I to the bucket. gsutil cp /path/to/file gs://MySweetBucket/
  4. On your local system pull the file down. gsutil cp gs://MySweetBucket/filename

Done!

Armand answered 27/7, 2019 at 15:8 Comment(0)
C
1

I use unix terminal and scp to download:

$ scp -i ~/.ssh/id_rsa 
    /local/destination/path.mp4 
    [email protected]:/remote/file/path.mp4

Using this way I was able to download a 4 GB file in about 5 min.

Note: For this you will need to configure an SSH key for your instance: GCP ssh key location

Clova answered 10/9 at 6:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.