For example, the deploy script from a simple php app I wrote:
rsync --recursive --links --verbose --rsh=ssh --exclude-from ./exclude_from_deploy.txt --delete ./ kazan:/srv/simple-paste/
For example, the deploy script from a simple php app I wrote: