How can I upload folders to Google Cloud?

2

0

How can I upload complete folders to my Google Cloud Storage? I tried using Cyberduck, but I can't get my Google login info to work with it. Any ideas for a medium-skill level Mac user to easily upload complete folders rather than files?

user2370921

Posted 2013-05-10T17:22:41.797

Reputation:

1

When you tried Cyberduck, did you have a look at this guide? http://trac.cyberduck.ch/wiki/help/en/howto/googlestorage

– Der Hochstapler – 2013-05-12T17:56:55.687

Answers

7

You can use gsutil cp in the Terminal for bulk uploads/downloads:

gsutil -m cp -R dir gs://my_bucket

The -m flag will perform a parallel (multi-threaded) copy.

Misha Brukman

Posted 2013-05-10T17:22:41.797

Reputation: 371

I am surprised not more people has searched for this. – santiago arizti – 2017-04-11T05:08:16.083

this will upload only the files from the folder dir, not sub-folders. Not really recursively, regardless to -R flag – ses – 2019-04-27T16:18:24.423

@ses – the docs I linked to say: "The -R and -r options are synonymous. Causes directories, buckets, and bucket subdirectories to be copied recursively. If you neglect to use this option for an upload, gsutil will copy any files it finds and skip any directories. Similarly, neglecting to specify this option for a download will cause gsutil to copy any objects at the current bucket directory level, and skip any subdirectories." — if you are not seeing the correct behavior, please file a bug or post a separate question.

– Misha Brukman – 2019-04-29T16:05:22.710

1

You can easily upload folders from your local computer using the Google Cloud Console with no special tools.

Just click the left hand navigation Storage > Cloud Storage > Browser using in the Google Cloud Console: https://console.developers.google.com

Create a bucket or select an existing one

Then click "Upload folder"

You'll get a sidebar that will pop out notifying you of the upload progress.

chrispomeroy

Posted 2013-05-10T17:22:41.797

Reputation: 236

0

You can go to the Google Drive web app and click the upload icon, then folder. Or better you can download the Google Drive Desktop application and then simply copy-and-paste your required folder in the Google Drive folder. With this, the folder and all its files will get synced up with the cloud.

Anuj Kaithwas

Posted 2013-05-10T17:22:41.797

Reputation: 111

1Thanks Anuj - but is "Google Drive" the same as "Google Cloud"? I thought Drive was a separate kind of account? – None – 2013-05-10T18:14:18.357

Google Drive uses the cloud storage. Like Dropbox or any other services for cloud storage. @user2370921 – Anuj Kaithwas – 2013-05-12T07:35:58.557

3While Google Drive uses Google Cloud Storage, they are not identical. Drive is basically an application that runs on Cloud Storage. But you can't access your Cloud Storage buckets through Drive. – Der Hochstapler – 2013-05-12T17:53:58.017