rsync 脚本模板

#!/usr/bin/expect spawn rsync -cavze "/usr/local/bin/ssh -p8080" ./data/ --include=*.json [email protected]:/data/web/go/htdocs/search/ expect { "*(yes/no)*" {send "yes/n"; exp_continue;} "*password*" {send "xxx/n";exp_continue;} timeout { exec kill -9 [exp_pid]; close; } }  

你可能感兴趣的:(rsync 脚本模板)