Created
December 6, 2017 13:49
-
-
Save myselfhimself/e6d038ba10e755ed2b69f3b1f9468165 to your computer and use it in GitHub Desktop.
Copying directory contents onto a Google Cloud Compute engine's instance with scp
This file contains 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
#!/bin/sh | |
gcloud compute scp --project "myproject" --zone "my-zone" --scp-flag=-r ~/my-local-path "remote-image-name":/home/my-remote-path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The trick lies in "--scp-flag=-r"