| 关键词: exclude htdocs echo input www sync 192.168 rsync 1.166 file |
为了方便同步用的 #!/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 |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|