Code

Code

Rsync simple example (synchronize specific folders)

#!/bin/sh

rsync -azh ./build -e 'ssh -p 22' user@hostname:~/www