Created
August 25, 2018 21:58
Star
You must be signed in to star a gist
rsync from osx to linux
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
#install watchman | |
#install sshpass | |
#rsync1.sh | |
cd /Users/myuser | |
watchman-make --root ./myfolder -p='*' --run /Users/myuser/rsync2.sh | |
########################## | |
#rsync2.sh | |
sshpass -p "myPassword" rsync --recursive --delete --progress partial -avz /Users/myuser/myfolder remoteuser@remoteip:/remotefolder1/remotefolder2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment