正在加载...


#!/bin/bash
echo "********** These files will be sync **********"
rsync -avn -e 'ssh -p6602' /htdocs/www/ 192.168.1.166:/htdocs/www/ --exclude-from=/apps/exclude.file
echo "********** Sure you want to sync?(y/n)"
while :
do
read input
case $input in
Y|y)
echo  "Start sync"
rsync -avz -e 'ssh -p6611' htdocs/www/ 192.168.1.166:/htdocs/www/ --exclude-from=/apps/exclude.file
exit
;;
N|n)
echo "Quit"
exit
;;
*)
echo "Please input y/n"
;;
esac
done

作者:story

: http://www.ha97.com/4005.html

本文相关评论 - 1条评论都没有呢

No comments yet.