Skip to content

Instantly share code, notes, and snippets.

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