Copy files between two Google Cloud instances

后端 未结 6 2009
北恋
北恋 2020-12-29 09:19

I have two projects in Google Cloud and I need to copy files from an instance in one project to an instance in another project. I tried to using the \'gcloud compute copy-fi

6条回答
  •  一个人的身影
    2020-12-29 09:47

    If both of them are in the same project this is the simplest way

    gcloud compute copy-files yourFileName --project yourProjectName instance-name:~/folderInInstance --zone europe-west1-b
    

    Obviously you should edit the zone according to your instances.

提交回复
热议问题