Last active
December 17, 2015 21:29
-
-
Save pamolloy/5674583 to your computer and use it in GitHub Desktop.
Copy files to a remote host
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
| echo -e "Host $host\nPort $port" >> ~/.ssh/config | |
| rsync --archive --recursive --compress --times --update -e ssh $path $host:$path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resources include the following.
Look into the
ssh remoteexample and rsync daemon.