# Do not forget the trailing dash in the source and target destinaton paths! # Synchronize current directory to server rsync -avPh --stats --delete ./ HOST:REMOTE_PATH/ # Synchronize a local directory to server rsync -avPh --stats --delete LOCAL_PATH/ HOST:REMOTE_PATH/ # Sync remote server with local path rsync -avPh --stats --delete HOST:REMOTE_PATH LOCAL_PATH