Created
August 25, 2018 21:58
-
-
Save nevzatalkan/5995b6ffc4f2454f120e579d2ba9b47c to your computer and use it in GitHub Desktop.
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