Created
September 4, 2018 07:19
-
-
Save sudevschiz/764a188ecef4d88d1efa7ebcc2705a60 to your computer and use it in GitHub Desktop.
Copy files from local (Windows or linux) to a VM in google cloud compute engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Easy way is to navigate to the folder where your file/folders lie and then - | |
gcloud compute scp FILENAME sudevchirappat@gcmbox:"/home/sudevchirappat/" | |
#Note : change FILENAME to the file you need upload | |
#If an entire folder needs to be moved use the recursion flag. | |
gcloud compute scp --recurse FOLDERNAME sudevchirappat@gcmbox:"/home/sudevchirappat/" | |
#Entire command utility for reference : | |
gcloud compute scp [[USER@]INSTANCE:]SRC [[[USER@]INSTANCE:]SRC …] [[USER@]INSTANCE:]DEST [--compress] [--dry-run] [--force-key-file-overwrite] [--plain] [--port=PORT] [--recurse] [--scp-flag=SCP_FLAG] [--ssh-key-file=SSH_KEY_FILE] [--strict-host-key-checking=STRICT_HOST_KEY_CHECKING] [--zone=ZONE] [GCLOUD_WIDE_FLAG …] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment