Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download an entire folder from Google Cloud Platform?

So I recently signed up for Google Cloud unaware it was more for coding than typical online storage. So I backed up one of my flash drives before wiping it and now I cant retrieve the files to replace them on the flash drive. I've tried a few commands I've seen on other questions here but only receiving results of:

C:\Users\Johnny\AppData\Local\Google\Cloud SDK>gsutil -m cp -r dir gs://backup85468523
CommandException: No URLs matched: dir
CommandException: 1 file/object could not be transferred.

or

C:\Users\Johnny\AppData\Local\Google\Cloud SDK>gsutil -m cp -R    gs://backup85468523
CommandException: Wrong number of arguments for "cp" command.
like image 723
Johnathan Furr Avatar asked Nov 21 '25 17:11

Johnathan Furr


1 Answers

The command should be in the form gsutil cp [OPTION]... src_url dst_url, with both source and destination directories, as detailed on the cp - Copy files and objects documentation page. Your command seems to lack the destination part. If you mean the local directory, you can indicate is with a dot "." .

like image 130
George Avatar answered Nov 24 '25 10:11

George



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!