I have 2 Google Compute Engine VMs in the same zone. How can I move a file from one VM 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.
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]:~/.
You can use gcloud compute copy-files
to copy data between your GCE instances or your local machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With