From: Joe Z. <jz...@us...> - 2003-05-10 17:38:55
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1:/tmp/cvs-serv9440/inc/templates Added Files: backup_now.php Log Message: Added "Backup Now" button to "Servers" page. --- NEW FILE: backup_now.php --- <?php // This template will run a backup of a single server now. // It is started from the "Backup Now" button on te "Servers" page. require_once('{SITEROOT}/inc/class_config.php'); require_once('{SITEROOT}/inc/class_server.php'); require_once('{SITEROOT}/inc/class_backup.php'); require_once('{SITEROOT}/inc/config.php'); require_once('{SITEROOT}/inc/class_rfasttemplate.php'); // make a config object $srvcfg = new server(); // set the config we are working on $srvcfg->set_config('{SERVER}.{SHARE}'); // now we should create a new backup object $backup = new backup($srvcfg->sys_conf, $srvcfg->config); // check if the dirs we need exists $backup->dir_check(); // do backup $backup->server_backup(); // increment files $backup->increment_files(); // generate indexes $backup->server_create_index(); ?> |