user321627
user321627

Reputation: 2572

In google cloud shell, is it possible to transfer storage buckets to a remote server?

I want to use google cloud shell to transfer buckets (starting in gs://) to a remote server. I tried:

scp gsutil gs://folder username@remoteserveraddress:~/folder

but it doesnt work.

Upvotes: 1

Views: 101

Answers (1)

Juanan
Juanan

Reputation: 1420

I ended up using sshfs to mount the remote server directory into google cloud shell and then gsutil cp as usual in the mountpoint:

$ sudo sshfs -o allow_other,default_permissions user@IP_ADDRESS:/mount/share mountpoint

Upvotes: 1

Related Questions