Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move file from one Google Compute Engine VM to another in the same zone?

I have 2 Google Compute Engine VMs in the same zone. How can I move a file from one VM to another?

like image 210
flaubert Avatar asked Nov 12 '14 23:11

flaubert


People also ask

How do I move files from one virtual machine to another?

To do this, simply open the file browser on the host to where you would like to drop the files and drag the files from the virtual machine into the file browser of the host. File transfers should be pretty quick; if the virtual machine seems stuck when transferring, simply cancel the transfer and try again.

How do I copy a file from one VM to another in Linux?

Copy files with SCP # Upload the file yourFile. xyz to your home directory on the VM $ scp yourFile. xyz [email protected]:~/. # Upload the folder yourFolder to your home directory on the VM $ scp -r yourFolder [email protected]:~/.


1 Answers

You can use gcloud compute copy-files to copy data between your GCE instances or your local machine.

like image 104
Faizan Avatar answered Sep 22 '22 02:09

Faizan