Your IP : 3.138.181.165


Current Path : /home/bitrix/ext_www/dev.ballu.in.ua/
Upload File :
Current File : /home/bitrix/ext_www/dev.ballu.in.ua/backup.php

<?php
CONST BACKUP_URL = '/mnt/web_backup/';
CONST SITE = 'Ballu';
function findFiles_tabe(){
    $dir = __DIR__.'/bitrix/backup/';
    $files = array_diff( scandir($dir), array('..', '.'));
    $count = count($files);
    foreach ($files as $file){
	mkdir(BACKUP_URL.SITE);
        shell_exec("cp ".$dir.'/'.$file." ".BACKUP_URL.SITE);
    }
    return  $count;
};
    while(ob_get_level()) {
        ob_get_clean();
    }
    require_once('bitrix/modules/main/tools/backup.php');
    findFiles_tabe();
    //echo __DIR__;
?>