#!/bin/bash port=22 host=192.168.8.136 path=/home/zlg/meter target=web_root echo "Copy $target" rsync -av --update --progress -e "ssh -p $port" $target zlg@$host:$path