Contents:
get current directory of the script that is performed
DIR="$( cd "$( dirname "$0" )" && pwd )"
rsync
rsync -avzh /mypath/myfile.gz pi@192.168.1.12:/mybackup/