Skip to content

Instantly share code, notes, and snippets.

@nevzatalkan
Created August 25, 2018 21:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nevzatalkan/5995b6ffc4f2454f120e579d2ba9b47c to your computer and use it in GitHub Desktop.
rsync from osx to linux
#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