downbak.php 811 字节
<?php
//ini_set("display_errors",true);
require dirname(__FILE__) . '/services/QiNiuService.php';
$qiNiu = new QiNiuService();
$qiNiu->listFiles();
$shell_ar = file_get_contents("http://www.quanqiusou.cn/extend_api/api/rsync.txt");
$shell_ar = explode("\n",$shell_ar);
foreach ($shell_ar as $v){
    if($v){
        $v = trim($v);
        if(strpos($v,$qiNiu->siteDomain) !== false){
            $ar_info = explode('|',$v);
            //shell_exec('rsync -avu --progress --password-file=/etc/rsync.passwd /www/wwwroot/'.$ar_info[0].'/wp-content/cache/all/ root@'.$ar_info[1].' &> /dev/null &');
            shell_exec('rsync -avu --progress --password-file=/etc/rsync.passwd /www/wwwroot/'.$ar_info[0].'/uploads/ root@'.$ar_info[1].'-uploads &> /dev/null &');
                            
        }
    }
}

?>