Correct way to sync a local dir to remote $ ls www index.html $ rsync -avz -e ssh www/ [email protected]:~/www