From: Joe Z. <jz...@us...> - 2005-01-23 20:03:28
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18042/inc Modified Files: class_backup.php config.php.in Log Message: Add completion status messages to bobs.log and optional email. Index: class_backup.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_backup.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- class_backup.php 12 Oct 2004 21:46:17 -0000 1.13 +++ class_backup.php 23 Jan 2005 20:03:17 -0000 1.14 @@ -9,23 +9,24 @@ class backup { - var $siteroot = ''; // root of the http site - var $server = ''; // the servers name - var $server_ip = ''; // the server ip address - var $backupdir = ''; // base dir to do full current backups - var $incomingdir = ''; // base dir to put backup files in - var $incrementdir = ''; // base dir to store increment backups - var $processdir = ''; // base for for store processes and sessions - var $share = ''; // descriptive name for the share to backup [...1006 lines suppressed...] + if(!mkdir($dir,0755)) { + $msg = "Failed to create \"$dir\" with the above error. "; + return $msg; + } - } - } - return $result; - - } + } + } + + return $result; + + } } Index: config.php.in =================================================================== RCS file: /cvsroot/bobs/bobs/inc/config.php.in,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- config.php.in 28 Mar 2004 22:33:22 -0000 1.11 +++ config.php.in 23 Jan 2005 20:03:18 -0000 1.12 @@ -43,7 +43,7 @@ $server_defs["password"]["desc"] = "FIXME: Users password"; $server_defs["server_ip"]["type"] = "ip"; -$server_defs["server_ip"]["desc"] = "Servers IP address"; +$server_defs["server_ip"]["desc"] = "Servers IP address (optional)"; $server_defs["backup_method"]["type"] = "list"; $server_defs["backup_method"]["desc"] = "Method for creating backups"; @@ -112,6 +112,9 @@ $server_defs["incrementals"]["type"] = "number"; $server_defs["incrementals"]["desc"] = "How many incremental backups to keep (0 = infinite)"; +$server_defs["emailaddr"]["type"] = "text"; +$server_defs["emailaddr"]["desc"] = "Email address to send backup status messages (optional)"; + $server_defs["run_days"]["type"] = "days"; $server_defs["run_days"]["desc"] = "Days of the week to run backups"; |