sync folder from local to server code example Example: sync folder from local to server rsync -a ~/Desktop/Dir1/ [email protected]:~/Desktop/test