0
votes

I am new to google cloud platform, just set up for first time. My local machine is Windows 10. I have google cloud SDK installed. I just set up a google compute engine instance.

How do I sync my local folder (with node js files etc) to the google compute engine instance folder?

I do not need this to be automated or scheduled. Doing this sync manually when I've made updates is adequate.

I read documentation online and tried the gsutil cp and rsync but it did not work. I'm not sure if these were the appropriate methods to use.

Thanks much.

1
If you are looking for an option just to transfer the files from your local workstation OS to Compute Engine instances, there are several methods available. Using WinSCP is once such option. I hope this helpsDigil
I use both WinSCP and Bitvise on Windows for working with Linux instances. For Windows -> Windows you can use RDP and map a file share from your desktop to the Windows VM. Sometime next month I plan to release a program that integrates Compute Engine VMs into my development system with a large number of commands including directory syncs. I have already released a similar program for CloudShell on GitHub: github.com/jhanley-com/google-cloud-shell-cli-goJohn Hanley
@Digil Thank you for the reference. I got it working with WinSCP.FDRJ
@Necromon I am posting my suggestion as an answer so that other community members can take benefit from it.Digil

1 Answers

1
votes

If you are looking for an option just to transfer the files from your local workstation OS to Compute Engine instances, there are several methods available which are explained in this help center article.

Using WinSCP is one such option for your use-case scenario.