You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(26) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(3) |
Feb
(38) |
Mar
(11) |
Apr
(38) |
May
(21) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
2004 |
Jan
(8) |
Feb
(1) |
Mar
(21) |
Apr
(16) |
May
(9) |
Jun
(20) |
Jul
|
Aug
(19) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
|
2005 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
(7) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(14) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe Z. <jz...@us...> - 2004-05-23 21:25:47
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21371/inc Modified Files: class_db.php class_server.php Added Files: class_cleanup.php Log Message: Remove old incremental files and directories during daily backup. --- NEW FILE: class_cleanup.php --- <?php /* description: cleanup functions Remove incremental files as specified in server configuration. See doc/fileformat for the format of the databases. */ ///////////////////////////////////////////////////////////////////// // class cleanup variables ///////////////////////////////////////////////////////////////////// class cleanup extends database { var $old_days = ''; // Days to retain incremental files var $old_date = ''; // Retention date: yyyy.ddd //////////////////////////////////////////////////////////////////// // class cleanup constructor //////////////////////////////////////////////////////////////////// function cleanup ($backup_config, $old_days) { parent::database($backup_config); // Calculate retention date $this->old_days = $old_days; $day_sec = 60 * 60 * 24; // Seconds in day $old_seconds = $old_days * $day_sec; // Seconds to retain files $today_stamp = date("U"); // Today's time stamp $old_stamp = $today_stamp - $old_seconds; // Timestamp of retention date $this->old_date = date("Y", $old_stamp) . '.' . date("z", $old_stamp); } //////////////////////////////////////////////////////////////////// // Delete old incremental files //////////////////////////////////////////////////////////////////// function delete_files() { // Zero retention days means to not delete old incremental files if ($this->old_days <= 0) return(0); print "Removing incremental files older than (YYYY.DDD): $this->old_date\n"; // CRUD! Keys are NOT in order in db cause they are treated like strings // and they're not padded with zeroes. // Create array to hold keys of files to delete so I can delete them in // alphabetical order so they will show in order in the log. $keys = array(); // Get db file name for current incremental $dbfile = $this->db_location("incremental", "file"); // Open file db if (! $handle = dba_open($dbfile, "w", $this->db_type)){ print("Error: Unable to open database file $dbfile\n"); return(1); } // Read through the entire database and save into an array // the database keys of files to be deleted. // if (($key = dba_firstkey($handle)) == FALSE) return(0); // Can't test first key because first key in db is actually 0 (false) $key = dba_firstkey($handle); do { // Record type is determined by last digit of key // Get file name (key ends in '1') if(substr($key, -1 , 1) == '1'){ // This is a file name $file = dba_fetch($key, $handle); if(substr($file, -8) < $this->old_date){ // File is old $keys[] = intval($key) - 1; // Save '0' key } } } while(($key = dba_nextkey($handle)) != FALSE); // Sort and itterate through the array, // deleting files along the way. asort($keys, SORT_NUMERIC); reset($keys); // rewind array while (list($key, $val) = each($keys)) { $path = dba_fetch($val, $handle); // Get '0' key (path) $file = dba_fetch($val + 1, $handle); // Get '1' key (filename) $fullpath = $this->incrementdir . '/' . $this->server . '/' . $this->share . '/' . $path . '/' . $file; // combine base dir + path + filename if(unlink($fullpath) == TRUE){ // unlink file verbosely print("Removed $fullpath\n"); for($i = 0; $i<6; $i++) // Delete keys '0' - '5' dba_delete($val + $i, $handle); } else { print("Unable to remove $fullpath\n"); } } dba_close($handle); } //////////////////////////////////////////////////////////////////// // Delete empty incremental directories //////////////////////////////////////////////////////////////////// function delete_dirs() { // Zero retention days means to not delete old incremental dirs if ($this->old_days <=0) return(0); // Open dir db $dbfile = $this->db_location("incremental", "dir"); if (! $handle = dba_open($dbfile, "w", $this->db_type)){ print("Error: Unable to open database file $dbfile\n"); return(1); } // If dir is empty, unlink it verbosely and remove the dir db record if (($key = dba_firstkey($handle)) == FALSE) return(0); do { $fullpath = $this->incrementdir . '/' . $this->server . '/' . $this->share . '/' . $key; if ($this->dir_is_empty($fullpath) == TRUE){ if(rmdir($fullpath) == TRUE){ // Delete dir print("Removed empty directory $fullpath\n"); dba_delete($key, $handle); } else { print("Unable to remove directory $fullpath\n"); } } } while(($key = dba_nextkey($handle)) != FALSE); // Close dir db dba_close($handle); } //////////////////////////////////////////////////////////////////// // Private function dir_is_empty // Returns TRUE if directory is empty //////////////////////////////////////////////////////////////////// function dir_is_empty($dir){ if (is_dir($dir)){ if (($dirhandle = opendir($dir)) == FALSE) return(FALSE); // Error while(($file = readdir($dirhandle)) !== FALSE){ if (($file != ".") && ($file != "..")){ closedir($dirhandle); return(FALSE); // Directory not empty } } } closedir($dirhandle); return(TRUE); // Directory is empty } } // end class ?> Index: class_db.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_db.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- class_db.php 26 Mar 2004 21:33:50 -0000 1.5 +++ class_db.php 23 May 2004 21:25:38 -0000 1.6 @@ -42,9 +42,9 @@ // check what dba type we should use $tmpfile = tempnam("/tmp", "BOBS"); - $dbcheck = @dba_open($tmpfile, "c", "db3"); + $dbcheck = @dba_open($tmpfile, "n", "db3"); if ( $dbcheck === FALSE ) { - $dbcheck = @dba_open($tmpfile, "c", "db4"); + $dbcheck = @dba_open($tmpfile, "n", "db4"); if ( $dbcheck === FALSE ) { echo "Could not create a database of type db3 or db4 (tried both)\n"; } else { @@ -56,6 +56,7 @@ $this->db_type = "db3"; } + unlink($tmpfile); return; } @@ -79,7 +80,7 @@ $this->db[$where][$type] = dba_open($db, "r", $this->db_type); } } else { - $this->db[$where][$type] = dba_open($db, "c", $this->db_type); + $this->db[$where][$type] = dba_open($db, "n", $this->db_type); } } return; Index: class_server.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_server.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- class_server.php 7 Apr 2004 22:38:25 -0000 1.9 +++ class_server.php 23 May 2004 21:25:38 -0000 1.10 @@ -287,6 +287,25 @@ } // --------------------------------------------------------- +// get_incrementals - Get number of days to keep incremental backups +// Used by: backup.php +// Parms: none +// Returns: Number of days to keep incremental backups. 0 = forever. +// Note: set_config() should have been previously called. +// --------------------------------------------------------- +function get_incrementals(){ + + $days = intval($this->config['incrementals']); + $days_per_week = strlen($this->config['run_days']); + if (($days > 0) && ($days_per_week > 0)){ + $retention_days = intval(round($days / $days_per_week * 7)); + } else { + $retention_days = 0; + } + return $retention_days; +} + +// --------------------------------------------------------- } // Class end bracket ?> |
From: Joe Z. <jz...@us...> - 2004-05-23 21:25:47
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21371/inc/templates Modified Files: server_details.thtml Log Message: Remove old incremental files and directories during daily backup. Index: server_details.thtml =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/server_details.thtml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- server_details.thtml 19 May 2003 00:11:39 -0000 1.1 +++ server_details.thtml 23 May 2004 21:25:38 -0000 1.2 @@ -23,6 +23,11 @@ <tr> <td align="center" colspan="2"> + Incremental files will be retained for {RETENTION_DAYS} days.<br> + + </td> + <tr> + <td align="center" colspan="2"> <br> <input type="submit" name="server_details_OK" value="Next"> <!-- Save the server/share key in hidden screen fields --> |
From: Joe Z. <jz...@us...> - 2004-05-23 21:25:46
|
Update of /cvsroot/bobs/bobs/cron In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21371/cron Modified Files: backup.php.in Log Message: Remove old incremental files and directories during daily backup. Index: backup.php.in =================================================================== RCS file: /cvsroot/bobs/bobs/cron/backup.php.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- backup.php.in 5 Feb 2003 02:05:22 -0000 1.6 +++ backup.php.in 23 May 2004 21:25:37 -0000 1.7 @@ -5,11 +5,13 @@ // Can't get siteroot from class_config because this file // is in a cron directory, not the bobs site root. -$siteroot = '@myrealWEBDIR@'; +$siteroot = '@myrealWEBDIR@'; require($siteroot . '/inc/class_config.php'); require($siteroot . '/inc/class_server.php'); require($siteroot . '/inc/class_backup.php'); +require($siteroot . '/inc/class_db.php'); +require($siteroot . '/inc/class_cleanup.php'); require($siteroot . '/inc/config.php'); require($siteroot . '/inc/class_rfasttemplate.php'); @@ -21,36 +23,45 @@ // for each config do a backup if needed (defined in the config) foreach ($srvcfg->servers as $server ) { - // set the config we are working on - $current = $srvcfg->set_config($server[server] . '.' . $server[share]); + // set the config we are working on + $current = $srvcfg->set_config($server[server] . '.' . $server[share]); -// include some checks to see if a server.share should be backup in this instance + // include some checks to see if a server.share should be backup in this instance - // check if we are on a backup day - $day = $srvcfg->check_day(); - $active = $srvcfg->check_active(); + // check if we are on a backup day + $day = $srvcfg->check_day(); + $active = $srvcfg->check_active(); - if ( $day == "ok" && $active == "ok") { - // now we should create a new backup object - $backup = new backup($sys_conf, $srvcfg->config); + if ( $day == "ok" && $active == "ok") { + // now we should create a new backup object + $backup = new backup($sys_conf, $srvcfg->config); - // check if the dirs we need exists - $backup->dir_check(); - - // do backup - $backup->server_backup(); + // check if the dirs we need exists + $backup->dir_check(); - // increment files - $backup->increment_files(); + // do backup + $backup->server_backup(); - // generate indexes - $backup->server_create_index(); + // increment files + $backup->increment_files(); - unset($backup); - } + // generate indexes + $backup->server_create_index(); -} + // create a new cleanup object + $backup_config = $backup->get_config(); + $retention_days = $srvcfg->get_incrementals(); + $cleanup = new cleanup($backup_config, $retention_days); + print "Incremental cleanup retention days: $retention_days\n"; + // Delete old incremental files and dirs + $cleanup->delete_files(); + $cleanup->delete_dirs(); + + unset($cleanup); + unset($backup); + } +} ?> |
From: Joe Z. <jz...@us...> - 2004-05-19 13:57:51
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10224/inc/templates Modified Files: backup_create_databases.php Log Message: Remove those annoying "dba_open failed" messages from bobs.log. Index: backup_create_databases.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/backup_create_databases.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- backup_create_databases.php 26 Mar 2004 21:33:51 -0000 1.5 +++ backup_create_databases.php 19 May 2004 13:57:40 -0000 1.6 @@ -11,7 +11,7 @@ function create ( $db ) { // check what dba type we should use - $this->id = dba_open ($db, "n", "db3"); + $this->id = @dba_open ($db, "n", "db3"); if ( $this->id === FALSE ) { $this->id = dba_open ($db, "n", "db4"); if ( $this->id === FALSE ) { @@ -103,7 +103,7 @@ // Now create the directory database // open the file index db - $id = dba_open($db, "r", "db3"); + $id = @dba_open($db, "r", "db3"); if (!$id) { $id = dba_open($db, "r", "db4"); if (!$id) { @@ -112,7 +112,7 @@ } } // create a new dir database. - $dir_id = dba_open ('{DIR_DB}', "n", "db3"); + $dir_id = @dba_open ('{DIR_DB}', "n", "db3"); if (!$dir_id) { $dir_id = dba_open ('{DIR_DB}', "n", "db4"); if (!$dir_id) { |
From: Joe Z. <jz...@co...> - 2004-05-01 21:25:45
|
QV Technologies wrote: > Howdy guys, > > Sorry to bug you all but i am having a littel problem that i hope that > you can help me with. You're not bugging us, we appreciate the feedback > > I have installed the latest bobs version and all looks well, except > from this littel problem: when i go to the web interface I.E > http://<my machine>/bobs/ and i click on the "Browse Incremental" > then i get the following errors: > > Warning: First argument to array_keys() should be an array in > /var/www/html/bobs/inc/class_db.php on line 440 > > Warning: Invalid argument supplied for foreach() in > /var/www/html/bobs/inc/class_db.php on line 441 > No files were found in > > I am using RH 8.0 and php V4.2.2 > > I really hope that you guys could help me. > > Regards > Per Qvindesland > e-mail: pe...@qv... The error shows when there are not files in the incremental backup directory. After your first incremental backup, assuming something has changed, the error should go away. I've made a not to fix that. Cheers, Joe Zacky |
From: QV T. <in...@qv...> - 2004-05-01 20:16:51
|
<html><head><meta http-equiv=3DContent-Type content=3D"text/html; charset= =3DISO-8859-1"><meta content=3D"Group-Office 1.95" name=3D"GENERATOR"><styl= e>P {margin: 0px;}</style></head><body> Howdy guys,<br /><br />Sorry to bug you all but i am having a littel proble= m that i hope that you can help me with.<br /><br />I have installed the la= test bobs version and all looks well, except from this littel problem: when= i go to the web interface I.E http://<my machine>/bobs/ and i click = on the=A0 "Browse Incremental" then i get the following errors:<b= r /><br /> <b>Warning</b>: First argument to array_keys() should be an array in <b>/v= ar/www/html/bobs/inc/class_db.php</b> on line <b>440</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/var/www/htm= l/bobs/inc/class_db.php</b> on line <b>441</b><br /> No files were found in <br /><br />I am using RH 8.0 and php V4.2.2<br /><b= r />I really hope that you guys could help me.<br /><br />Regards<br />Per = Qvindesland<br />e-mail: pe...@qv...<br /></body></html> |
From: Joe Z. <jz...@us...> - 2004-04-19 16:51:29
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21068 Modified Files: TODO Log Message: Want to view backup status in GUI. Index: TODO =================================================================== RCS file: /cvsroot/bobs/bobs/TODO,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- TODO 12 Apr 2004 02:20:57 -0000 1.22 +++ TODO 19 Apr 2004 16:51:20 -0000 1.23 @@ -49,6 +49,7 @@ It's important to know if the systems are getting backed up properly each day. Done (but it's not optional): Have backups write to optional log file. + Would be nice to be able to view backup status in GUI too. How is /bobsdata going to get cleaned up? Priority: Medium |
From: Joe Z. <jz...@us...> - 2004-04-19 01:52:17
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23423/bobs Modified Files: Makefile.am Makefile.in Log Message: Release 0.6.2 Index: Makefile.am =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.am,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- Makefile.am 1 Apr 2004 03:28:23 -0000 1.17 +++ Makefile.am 19 Apr 2004 01:52:05 -0000 1.18 @@ -100,7 +100,7 @@ install-data-hook: - @if test -x "/sbin/chkconfig"; then \ + -@if test -x "/sbin/chkconfig"; then \ /sbin/chkconfig --add cmdloopd; \ else \ echo ""; \ Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.in,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Makefile.in 1 Apr 2004 03:28:23 -0000 1.15 +++ Makefile.in 19 Apr 2004 01:52:05 -0000 1.16 @@ -525,7 +525,7 @@ install-data-hook: - @if test -x "/sbin/chkconfig"; then \ + -@if test -x "/sbin/chkconfig"; then \ /sbin/chkconfig --add cmdloopd; \ else \ echo ""; \ |
From: Joe Z. <jz...@us...> - 2004-04-19 01:27:54
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19653/bobs Modified Files: ChangeLog FILES NEWS Log Message: Release 0.6.2 Index: ChangeLog =================================================================== RCS file: /cvsroot/bobs/bobs/ChangeLog,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- ChangeLog 22 Jun 2003 23:17:14 -0000 1.13 +++ ChangeLog 19 Apr 2004 01:27:46 -0000 1.14 @@ -3,6 +3,14 @@ Version ? (edit as you go) +Version 0.6.2 + -- 04-18-2004 + - Both db3 and db4 are now supported at runtime. + - cmdloop is now started from /etc/init.d/cmdloopd. + - Output from cmdloop is now written to a log. + - Fixed an "off by one" error in getting file sizes. + Reported by Hank Hampel. + Version 0.6.0 -- 5-10-2003 Convert admin.php to use rfasttemplate class. Index: FILES =================================================================== RCS file: /cvsroot/bobs/bobs/FILES,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- FILES 28 Mar 2004 22:33:21 -0000 1.3 +++ FILES 19 Apr 2004 01:27:46 -0000 1.4 @@ -1,7 +1,7 @@ Browsable Online Backup System (BOBS) - File List bash/cmdloop Executes scripts in the <backupdir>/current/process/cmd -directory. + directory. cron/backup.php Determines what is ready to be backed up and creates the backup scripts in the <backupdir>/current/process/cmd Index: NEWS =================================================================== RCS file: /cvsroot/bobs/bobs/NEWS,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- NEWS 18 Apr 2004 23:25:36 -0000 1.5 +++ NEWS 19 Apr 2004 01:27:46 -0000 1.6 @@ -26,5 +26,5 @@ 02-07-2004 Released version 0.6.1. - April 2004 - Release version 0.6.2. + 04-18-2004 + Released version 0.6.2. |
From: Joe Z. <jz...@us...> - 2004-04-18 23:26:08
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31726/bobs Modified Files: INSTALL NEWS RELEASE-NOTES VERSION bobs.spec configure configure.in Log Message: Release 0.6.2 Index: INSTALL =================================================================== RCS file: /cvsroot/bobs/bobs/INSTALL,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- INSTALL 12 Apr 2004 01:59:50 -0000 1.25 +++ INSTALL 18 Apr 2004 23:25:36 -0000 1.26 @@ -19,7 +19,9 @@ ::: 1.0 Requirements You'll need at least the following programs installed. -(Developed on a stock redhat 7.2 install) +(Developed on a stock redhat 7.2 install. +Works on redhat through version 9 and Fedora Core 1. +Should work on other linux systems too.) Bash sh sed @@ -40,14 +42,16 @@ RELEASE-NOTES. You can install from the rpm package if you do not want to change the -default locations of the installed files. Use the tar distribution if -you want to place the web directory or backup data directory in a -non-default location or if you have trouble after installing from rpm. +default locations of the installed files. Use the tar distribution if you +want to change the install options such as placing the web directory or +backup data directory in a non-default location, or if you have trouble +after installing from the rpm. ::: 2.1 rpm install To install from the rpm package: + (you must be root) rpm -Uvh bobs-x.x.x-x.i386.rpm ::: 2.2 Installation from tarball @@ -103,11 +107,6 @@ The default data directory is /var/bobsdata. - FIXME: - ./configure will also store a plain text password in - inc/config.php. This password will control access to the - bobs/admin.php web page. - 3. Install bobs Change to root: @@ -119,7 +118,7 @@ make install This will install the web pages, create the backup data - directories, and add a cron job to /etc/crontab. + directories, and add a cron job /etc/cron.daily/backup.php. 4. Bobs is now installed. @@ -138,7 +137,7 @@ 6. If you want to uninstall bobs, or change your configuration: Run 'make uninstall' from the directory where you extracted - the bobs files to remove the bobs web pages and delete the + the bobs files to remove the bobs web pages and delete any empty backup data directories. You can then run ./configure and 'make install' again. @@ -230,7 +229,7 @@ ::: 4.0 Configuration -Note: This section is obsoleted by section "7.0 Easy install", but it +Note: This section is obsoleted by section "2.0 Installation", but it has some useful detailed information. Edit the file "inc/config.php" to suit your needs. The dirs you define @@ -286,7 +285,7 @@ ::: 5.0 Test your setups -Note: This section is also obsoleted by section "7.0 Easy install", +Note: This section is also obsoleted by section "2.0 Installation", but it has some useful detailed information. mount the nfs shares, try to write a file. @@ -315,6 +314,9 @@ ::: 6.0 Off you go +Note: This section is also obsoleted by section "2.0 Installation", +but it has some useful detailed information. + Copy the cron/backup.php script into /etc/cron.daily/ to make a backup every night (depending on your settings ofcourse) @@ -324,7 +326,6 @@ if you add the entry to the crontab after starting "cmdloop" manually you'll be covered in case your dies. - You might want to delete the files in session/ sometimes. This is not done automatically yet (but will be at some point). Index: NEWS =================================================================== RCS file: /cvsroot/bobs/bobs/NEWS,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- NEWS 7 Feb 2004 23:22:30 -0000 1.4 +++ NEWS 18 Apr 2004 23:25:36 -0000 1.5 @@ -25,3 +25,6 @@ 02-07-2004 Released version 0.6.1. + + April 2004 + Release version 0.6.2. Index: RELEASE-NOTES =================================================================== RCS file: /cvsroot/bobs/bobs/RELEASE-NOTES,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- RELEASE-NOTES 12 Apr 2004 02:15:49 -0000 1.4 +++ RELEASE-NOTES 18 Apr 2004 23:25:36 -0000 1.5 @@ -43,15 +43,30 @@ Both db3 and db4 are now supported at runtime. Older versions of php use db3, newer versions use db4. Bobs will work with either version. - +--- cmdloop is now started from /etc/init.d/cmdloopd. It should start automatically. To start it manually, become root and type '/etc/init.d/cmdloopd start'. To stop it manually, become root and type '/etc/init.d/cmdloopd stop'. - +--- Output from cmdloop is now written to a log, usually /var/log/bobs.log. This log is not rotated automatically so you may want to delete it, rotate it manually, or setup automatic log rotation. To setup log rotation see -'man logrotate'. +'man logrotate'. +Here is a sample bobs log rotation configuration. Just past this into a +new file /etc/logrotate.d/bobs: + + /var/log/bobs.log { + nocompress + missingok + prerotate + /etc/init.d/cmdloopd stop + endscript + postrotate + sleep 6 + /etc/init.d/cmdloopd start + endscript + } +--- Fixed an "off by one" error in getting file sizes. Reported by Hank Hampel. Index: VERSION =================================================================== RCS file: /cvsroot/bobs/bobs/VERSION,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- VERSION 7 Feb 2004 23:22:30 -0000 1.4 +++ VERSION 18 Apr 2004 23:25:37 -0000 1.5 @@ -1 +1 @@ -Version 0.6.1 +Version 0.6.2 Index: bobs.spec =================================================================== RCS file: /cvsroot/bobs/bobs/bobs.spec,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- bobs.spec 28 Mar 2004 22:33:21 -0000 1.7 +++ bobs.spec 18 Apr 2004 23:25:37 -0000 1.8 @@ -1,6 +1,6 @@ Summary: Browseable Online Backup System (BOBS). Name: bobs -Version: 0.6.1 +Version: 0.6.2 Release: 1 License: GPL Group: Applications/Archiving @@ -58,6 +58,8 @@ /var/bobsdata %changelog +* Tue Apr 13 2004 Joe Zacky <jz...@us...> +- Prepare to release version 0.6.2. * Sun Mar 28 2004 Joe Zacky <jz...@us...> - Remove check_loop from crontab and use /etc/init.d/cmdloopd. * Sat Feb 7 2004 Jochen Metzger <jme...@us...> Index: configure =================================================================== RCS file: /cvsroot/bobs/bobs/configure,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- configure 28 Mar 2004 22:33:21 -0000 1.14 +++ configure 18 Apr 2004 23:25:37 -0000 1.15 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.57 for bobs 0.6.1. +# Generated by GNU Autoconf 2.57 for bobs 0.6.2. # # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. @@ -266,8 +266,8 @@ # Identity of this package. PACKAGE_NAME='bobs' PACKAGE_TARNAME='bobs' -PACKAGE_VERSION='0.6.1' -PACKAGE_STRING='bobs 0.6.1' +PACKAGE_VERSION='0.6.2' +PACKAGE_STRING='bobs 0.6.2' PACKAGE_BUGREPORT='' ac_unique_file="admin.php" @@ -721,7 +721,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures bobs 0.6.1 to adapt to many kinds of systems. +\`configure' configures bobs 0.6.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -783,7 +783,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of bobs 0.6.1:";; + short | recursive ) echo "Configuration of bobs 0.6.2:";; esac cat <<\_ACEOF @@ -856,7 +856,7 @@ test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -bobs configure 0.6.1 +bobs configure 0.6.2 generated by GNU Autoconf 2.57 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 @@ -871,7 +871,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by bobs $as_me 0.6.1, which was +It was created by bobs $as_me 0.6.2, which was generated by GNU Autoconf 2.57. Invocation command line was $ $0 $@ @@ -1462,7 +1462,7 @@ # Define the identity of the package. PACKAGE=bobs - VERSION=0.6.1 + VERSION=0.6.2 cat >>confdefs.h <<_ACEOF @@ -2175,7 +2175,7 @@ } >&5 cat >&5 <<_CSEOF -This file was extended by bobs $as_me 0.6.1, which was +This file was extended by bobs $as_me 0.6.2, which was generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -2230,7 +2230,7 @@ cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -bobs config.status 0.6.1 +bobs config.status 0.6.2 configured by $0, generated by GNU Autoconf 2.57, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Index: configure.in =================================================================== RCS file: /cvsroot/bobs/bobs/configure.in,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- configure.in 28 Mar 2004 22:33:21 -0000 1.16 +++ configure.in 18 Apr 2004 23:25:37 -0000 1.17 @@ -15,13 +15,13 @@ dnl> a service. PACKAGE=bobs -VERSION=0.6.1 +VERSION=0.6.2 dnl> dnl> Verify we're in the right directory by looking for a unique file. dnl> -AC_INIT(bobs, 0.6.1) +AC_INIT(bobs, 0.6.2) AC_CONFIG_SRCDIR(admin.php) AM_INIT_AUTOMAKE |
From: Joe Z. <jz...@us...> - 2004-04-12 02:34:41
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15448 Modified Files: TODO Log Message: Prepare for release 0.6.2. Index: TODO =================================================================== RCS file: /cvsroot/bobs/bobs/TODO,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- TODO 7 Feb 2004 23:22:30 -0000 1.21 +++ TODO 12 Apr 2004 02:20:57 -0000 1.22 @@ -36,12 +36,6 @@ Browser interface to allow maintaining authorized users and groups. -Make 'cmdloop' script a service. - Priority: Medium - There's no reason 'check_loop' needs to keep running once 'cmdloop' - has started. Make cmdloop start as a service from the init.d - directory. - --- Suggestions from Murray Curtis 3-31-2003 --- Edit or escape share names. @@ -54,7 +48,7 @@ Priority: High It's important to know if the systems are getting backed up properly each day. - Have backups write to optional log file. + Done (but it's not optional): Have backups write to optional log file. How is /bobsdata going to get cleaned up? Priority: Medium |
From: Joe Z. <jz...@us...> - 2004-04-12 02:29:33
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14707 Modified Files: RELEASE-NOTES Log Message: One more item to put in release 0.6.2 change log. Index: RELEASE-NOTES =================================================================== RCS file: /cvsroot/bobs/bobs/RELEASE-NOTES,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- RELEASE-NOTES 12 Apr 2004 02:04:46 -0000 1.3 +++ RELEASE-NOTES 12 Apr 2004 02:15:49 -0000 1.4 @@ -39,7 +39,7 @@ /etc/init.d/cmdloopd start ---------- -bobs release 0.6.2 +Changes in release 0.6.2 Both db3 and db4 are now supported at runtime. Older versions of php use db3, newer versions use db4. Bobs will work with either version. @@ -54,3 +54,4 @@ it manually, or setup automatic log rotation. To setup log rotation see 'man logrotate'. +Fixed an "off by one" error in getting file sizes. Reported by Hank Hampel. |
From: Joe Z. <jz...@us...> - 2004-04-12 02:18:30
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13266 Modified Files: RELEASE-NOTES Log Message: Prepare for release 0.6.2. Index: RELEASE-NOTES =================================================================== RCS file: /cvsroot/bobs/bobs/RELEASE-NOTES,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RELEASE-NOTES 7 Apr 2004 23:32:09 -0000 1.2 +++ RELEASE-NOTES 12 Apr 2004 02:04:46 -0000 1.3 @@ -41,6 +41,9 @@ ---------- bobs release 0.6.2 +Both db3 and db4 are now supported at runtime. Older versions of php use +db3, newer versions use db4. Bobs will work with either version. + cmdloop is now started from /etc/init.d/cmdloopd. It should start automatically. To start it manually, become root and type '/etc/init.d/cmdloopd start'. To stop it manually, become root and type @@ -51,4 +54,3 @@ it manually, or setup automatic log rotation. To setup log rotation see 'man logrotate'. - |
From: Joe Z. <jz...@us...> - 2004-04-12 02:13:34
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12518 Modified Files: INSTALL Log Message: Update documentation in preparation for release 0.6.2. Index: INSTALL =================================================================== RCS file: /cvsroot/bobs/bobs/INSTALL,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- INSTALL 28 Mar 2004 22:33:21 -0000 1.24 +++ INSTALL 12 Apr 2004 01:59:50 -0000 1.25 @@ -1,7 +1,7 @@ Installation guide. -Latest update March, 2003. +Latest update April, 2004. PLEASE NOTE: This is NOT a secure program. Do not deploy if you have security concerns. (you can test it and see for yourself) @@ -9,34 +9,151 @@ Overview: 1.0 Requirements -2.0 Files +2.0 Installation 3.0 Configuration of other servers 4.0 Configuration of backupserver 5.0 Test your setup 6.0 Off you go -7.0 Easy install -8.0 Problems -9.0 What gets installed? +7.0 Problems +8.0 What gets installed? ::: 1.0 Requirements You'll need at least the following programs installed. (Developed on a stock redhat 7.2 install) -Bash +Bash sh sed -PHP -apache -nfs (nfs-utils) +PHP +apache web server +nfs (nfs-utils) If you want to do backups using nfs. rsync ntpd (to keep time syncronized between servers.) -samba +samba (to do backups of Windows shares) +ssh (to do rsync/ssh backups) Possibly more. I'll add them when I discover them. -::: 2.0 Files -Changes were recently made to remove the need for BOBS to reside in -the www root folder. -You should be able to place BOBS in any webaccesible dir. +::: 2.0 Install +IMPORTANT! + +If you are upgrading from release 0.6.1 or earlier please read the +RELEASE-NOTES. + +You can install from the rpm package if you do not want to change the +default locations of the installed files. Use the tar distribution if +you want to place the web directory or backup data directory in a +non-default location or if you have trouble after installing from rpm. + +::: 2.1 rpm install + +To install from the rpm package: + + rpm -Uvh bobs-x.x.x-x.i386.rpm + +::: 2.2 Installation from tarball + +Short instructions: + + tar -xzf bobs-x.x.tar.gz + ./configure + su + make install + Browse to http://your.server.name/bobs/admin.php + +Detailed instructions: + +1. Unpack your distribution + + cd to the directory containing the bobs tar file + 'bobs-x.x.x.tar.gz'. Extract the tarball: + + tar -xzf bobs-x.x.tar.gz + +2. Configure bobs. + + cd to the bobs directory: + + cd bobs-x.x.x + + Configure bobs for your system: + + ./configure + + If you want to specify your own locations, instead of the + defaults, for the bobs web pages and data backup directories, use + options to ./configure. Type './configure --help' for a list of + options, the last three are the only ones you need be concerned + with: + + --with-webdir=DIR Place the bobs web pages in DIR + --with-bobsdata=DIR Place the bobs data (backups) in DIR + --with-crondir=DIR Location of cron.daily directory + + For example, if you want your web pages placed in + /home/fred/public_html, use + '--with-webdir=/home/fred/public_html'. This will create directory + /home/fred/public_html/bobs containing the bobs web pages. + + If you want your backup data in /var/local/backup, use + '--with-bobsdata=/var/local/backup'. This will create directory + /var/local/backup/bobsdata containing all the bobs backups. + + The default web directory is /home/httpd/html, or /var/www/html, + depending on your distribution. + + The default data directory is /var/bobsdata. + + FIXME: + ./configure will also store a plain text password in + inc/config.php. This password will control access to the + bobs/admin.php web page. + +3. Install bobs + + Change to root: + + su + + Install the files: + + make install + + This will install the web pages, create the backup data + directories, and add a cron job to /etc/crontab. + +4. Bobs is now installed. + + Point your browser to http://your.server.name/bobs/admin.php. + + Log in. The default password is 'admin'. + + Click on 'Check Configuration'. This will tell you if bobs + is running properly. + +5. Now you can create backup configurations. After you create one, + highlight the new configuration in the list and click on + 'Check Configuration'. This will run lots of diagnostics and + tell you if your backup configuration is okay. + +6. If you want to uninstall bobs, or change your configuration: + + Run 'make uninstall' from the directory where you extracted + the bobs files to remove the bobs web pages and delete the + backup data directories. You can then run ./configure and 'make + install' again. + + You may want to run 'make clean' before running ./configure a + second time to ensure the reconfiguration of all options. + + If you're have trouble with the ./configure script or 'make + install', you can rebuild it by running these commands from the + bobs distribution directory: + + make maintainer-clean + aclocal + autoconf + automake --add-missing + ./configure ::: 3.0 Configuration of other servers. You'll need to configure the servers you wish to get files from. @@ -45,6 +162,11 @@ ::: 3.1 Rsync +Bobs supports two type of rsync backups: standard rsync and rsync over +secure shell (ssh). The following instructions are for standard rsync +backups. rsync over ssh configuration is explained on the bobs "help" +web page. + On the machine to be backed up, you need to enable 'rsync'. Rsync will be used to transfer the files from the production computer to the backup computer. From the rsync man page: @@ -130,13 +252,7 @@ Backupdir/process/mounts/ All dirs should be read and writeable for the apache(webserver) process. -Place the file "bash/cmdloop" in "Backupdir/process/" -(check the file to see if the program paths fit your system) - -When you have completed the setup and tests below you should place an -entry in /etc/crontab that runs "cron/check_loop" every 5 minutes. - example entry in crontab: 0-59/5 * * * * root -/var/www/html/bobs/cron/check_loop & +Place the file "bash/init.d/cmdloopd" in "/etc/init.d/" The cmdloop is a command queue. It checks the contents of the "cmd" dir and executes the files in it. It allows for shell scripts which might take @@ -225,113 +341,14 @@ homepage: http://bobs.sourceforge.net/ -::: 7.0 Easy install - -These steps use the standard make utility to automate the install process. - -Easy install steps: - -1. Unpack your distribution - - cd to the directory containing the bobs tar file - 'bobs-x.x.x.tar.gz'. Extract the tarball: - - tar -xzf bobs-x.x.tar.gz - -2. Configure bobs. - - cd to the bobs directory: - - cd bobs-x.x.x - - Configure bobs for your system: - - ./configure - - If you want to specify your own locations, instead of the - defaults, for the bobs web pages and data backup directories, use - options to ./configure. Type './configure --help' for a list of - options, the last three are the only ones you need be concerned - with: - - --with-webdir=DIR Place the bobs web pages in DIR - --with-bobsdata=DIR Place the bobs data (backups) in DIR - --with-crondir=DIR Location of cron.daily directory - - For example, if you want your web pages placed in - /home/fred/public_html, use - '--with-webdir=/home/fred/public_html'. This will create directory - /home/fred/public_html/bobs containing the bobs web pages. - - If you want your backup data in /var/local/backup, use - '--with-bobsdata=/var/local/backup'. This will create directory - /var/local/backup/bobsdata containing all the bobs backups. - - The default web directory is /home/httpd/html, or /var/www/html, - depending on your distribution. - - The default data directory is /var/bobsdata. - - FIXME: - ./configure will also store a plain text password in - inc/config.php. This password will control access to the - bobs/admin.php web page. - -3. Install bobs - - Change to root: - - su - - Install the files: - - make install - - This will install the web pages, create the backup data - directories, and add a cron job to /etc/crontab. - -4. Bobs is now installed. - - Point your browser to http://your.server.name/bobs/admin.php. - - Log in. The default password is 'admin'. - - Click on 'Check Configuration'. This will tell you if bobs - is running properly. - -5. Now you can create backup configurations. After you create one, - highlight the new configuration in the list and click on - 'Check Configuration'. This will run lots of diagnostics and - tell you if your backup configuration is okay. - -6. If you want to uninstall bobs, or change your configuration: - - Run 'make uninstall' from the directory where you extracted - the bobs files to remove the bobs web pages and delete the - backup data directories. You can then run ./configure and 'make - install' again. - - You may want to run 'make clean' before running ./configure a - second time to ensure the reconfiguration of all options. - - If you're have trouble with the ./configure script or 'make - install', you can rebuild it by running these commands from the - bobs distribution directory: - - make maintainer-clean - aclocal - automake --add-missing - autoconf - ./configure - -::: 8.0 Problems +::: 7.0 Problems If you're having trouble, read this section. First, make sure these services are running on the host computer (the one with bobs installed). See section 3 for more information. - portmap + portmap (if using nfs) httpd (web server) Second, make sure these services are running on the computer to be backed @@ -340,7 +357,7 @@ portmap nfs -Third, you can get support via the forum or mailing list at +Third, you can get support via the bobs-devel mailing list at http://sourceforge.net/projects/bobs. @@ -349,7 +366,7 @@ A: Make sure the shared directory you're restoring to is writeable. -::: 9.0 What gets installed? +::: 8.0 What gets installed? /var/bobsdata Directory for backup files, a few scripts, and mount points. |
From: Joe Z. <jz...@us...> - 2004-04-12 02:13:34
|
Update of /cvsroot/bobs/bobs/winc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12518/winc Modified Files: adminhelp.html Log Message: Update documentation in preparation for release 0.6.2. Index: adminhelp.html =================================================================== RCS file: /cvsroot/bobs/bobs/winc/adminhelp.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- adminhelp.html 4 Jan 2004 02:18:16 -0000 1.2 +++ adminhelp.html 12 Apr 2004 01:59:50 -0000 1.3 @@ -120,6 +120,10 @@ For more information on BOBS go the following webpage.<br> <a href="http://bobs.sourceforge.net/">http://bobs.sourceforge.net/</a><br> <br> +Support is provided via the bobs-devel mailing list at +<a href="http://sourceforge.net/projects/bobs/"> +http://sourceforge.net/projects/bobs/</a><br> +<br> <br> </body> </html> |
From: Joe Z. <jz...@us...> - 2004-04-07 23:45:12
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26775 Modified Files: admin.php RELEASE-NOTES Log Message: Add functionality to the "Backup Now" page. Index: admin.php =================================================================== RCS file: /cvsroot/bobs/bobs/admin.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- admin.php 29 Dec 2003 02:43:28 -0000 1.25 +++ admin.php 7 Apr 2004 23:32:09 -0000 1.26 @@ -585,8 +585,19 @@ $script = $t->fetch(); // and get it into a variable $backup->add_queue_command($script, 'php'); // that I can submit to cmdloop. - echo "*** Backing up $server/$share\n"; + // Display the "Backup Now" screen + $t = new rFastTemplate('inc/templates'); // Instantiate new template + $t->define(array('backup_now_html' => 'backup_now.thtml')); + // Tell rfasttemplate the template file name + $t->assign('HEADER', implode("", file('inc/header.pinc'))); + // Load the page header + $t->assign('PHPSELF', "$PHPSELF"); // Replace PHPSELF with the current URL + $t->assign('SERVER', $server); + $t->assign('SHARE', $share); + + $t->parse('BACKUP_NOW_HTML', 'backup_now_html'); // Prepare the final output + $t->FastPrint(); // and send it to stdout. } // --------------------------------------------------------- Index: RELEASE-NOTES =================================================================== RCS file: /cvsroot/bobs/bobs/RELEASE-NOTES,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- RELEASE-NOTES 28 Mar 2004 22:33:21 -0000 1.1 +++ RELEASE-NOTES 7 Apr 2004 23:32:09 -0000 1.2 @@ -2,9 +2,11 @@ IMPORTANT! -If you are upgrading from release 0.6.1 or earlier, or from a cvs version -prior to 03-27-2004, you must uninstall bobs before configuring or -installing a newer release. Uninstalling bobs following one of the methods +If you are upgrading from release 0.6.1 or earlier, or from a cvs +version prior to 03-27-2004, you must uninstall bobs before configuring +or installing a newer release. This is necessary because of the way +cmdloop gets started. cmdloop is now started from /etc/init.d/cmdloopd +instead /etc/crontab. Uninstalling bobs following one of the methods below will not erase your configuration data or backups. To uninstall a bobs rpm: @@ -18,9 +20,6 @@ su make uninstall -This is necessary because of the way cmdloop gets started. cmdloop is now -started from /etc/init.d/cmdloopd instead /etc/crontab. - If you fail to uninstall bobs before installing a new version, then do the following steps: @@ -30,6 +29,16 @@ o Start the new cmdloop by typing: /etc/init.d/cmdloopd start ---------- +IF CMDLOOP DOESN'T START AUTOMATICALLY ON BOOT + +If cmdloop doesn't start when you boot up your machine it may because +you have a distribution other than Redhat that doesn't have the +/sbin/chkconfig command. That's okay. Just add the following line to +your system startup script for your distribution: + + /etc/init.d/cmdloopd start + +---------- bobs release 0.6.2 cmdloop is now started from /etc/init.d/cmdloopd. It should start |
From: Joe Z. <jz...@us...> - 2004-04-07 23:45:12
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26775/inc/templates Added Files: backup_now.thtml Log Message: Add functionality to the "Backup Now" page. --- NEW FILE: backup_now.thtml --- <!-- rfasttemplate: Backup Now --> {HEADER} <center> <p>Backing up {SERVER} / {SHARE}</p> <p>Look in the log (/var/log/bobs.log) if you want to view the backup progress.</p> </center> </body></html> |
From: Joe Z. <jz...@us...> - 2004-04-07 22:51:27
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17817/inc Modified Files: class_server.php Log Message: Sort the list of servers alphabetically (for the admin server selection page). Index: class_server.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_server.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- class_server.php 4 Jan 2004 21:10:49 -0000 1.8 +++ class_server.php 7 Apr 2004 22:38:25 -0000 1.9 @@ -152,6 +152,9 @@ } } closedir($handle); + + // Sort the server list + asort($serverlist); // Parse each server config into $servers[] array |
From: Joe Z. <jz...@us...> - 2004-04-02 20:11:16
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30427/inc/templates Modified Files: backup_nfs_backup_files.sh backup_smb_backup_files.sh Log Message: Add server/share description to backup log. Index: backup_nfs_backup_files.sh =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/backup_nfs_backup_files.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- backup_nfs_backup_files.sh 29 Oct 2002 03:15:44 -0000 1.1 +++ backup_nfs_backup_files.sh 2 Apr 2004 19:59:05 -0000 1.2 @@ -5,6 +5,7 @@ if [ -e "{LOCKFILE}" ] then echo "{SESSION_ID}.Running backup" >> "{SHSTATS}" + echo "Starting backup of {SERVER} / {SHARE}" {BACKUP_CMD} echo "{SESSION_ID}.Finished backup" >> "{SHSTATS}" exit Index: backup_smb_backup_files.sh =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/backup_smb_backup_files.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- backup_smb_backup_files.sh 29 Oct 2002 03:15:44 -0000 1.1 +++ backup_smb_backup_files.sh 2 Apr 2004 19:59:05 -0000 1.2 @@ -5,6 +5,7 @@ if [ -e "{LOCKFILE}" ] then echo "{SESSION_ID}.Running backup" >> "{SHSTATS}" + echo "Starting backup of {SERVER} / {SHARE}" {BACKUP_CMD} echo "{SESSION_ID}.Finished backup" >> "{SHSTATS}" exit |
From: Joe Z. <jz...@us...> - 2004-04-02 20:11:16
|
Update of /cvsroot/bobs/bobs/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30427/inc Modified Files: class_backup.php Log Message: Add server/share description to backup log. Index: class_backup.php =================================================================== RCS file: /cvsroot/bobs/bobs/inc/class_backup.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- class_backup.php 29 Dec 2003 02:43:28 -0000 1.9 +++ class_backup.php 2 Apr 2004 19:59:05 -0000 1.10 @@ -207,6 +207,7 @@ $shell = "#!/bin/sh\n"; $shell .= "# Description: Backup files from server\n"; + $shell .= "echo \"Starting backup of $this->server / $this->share\"\n"; $shell .= $backupcommand . "\n"; @@ -253,6 +254,7 @@ $shell = "#!/bin/sh\n"; $shell .= "# Description: Backup files from server\n"; + $shell .= "echo \"Starting backup of $this->server / $this->share\"\n"; $shell .= $backupcommand . "\n"; @@ -319,6 +321,8 @@ $t->assign ('BACKUP_CMD', $backup_cmd); $t->assign ('SESSION_ID', $this->session_id); $t->assign ('SHSTATS', $shstats); + $t->assign ('SERVER', $this->server); + $t->assign ('SHARE', $this->share); $t->assign ('LOCKFILE', $lockfile); $t->parse ('CONTENT', 'content'); $shell = $t->fetch(); @@ -403,6 +407,8 @@ $t->assign ('SESSION_ID', $this->session_id); $t->assign ('SHSTATS', $shstats); $t->assign ('LOCKFILE', $lockfile); + $t->assign ('SERVER', $this->server); + $t->assign ('SHARE', $this->share); $t->parse ('CONTENT', 'content'); $shell = $t->fetch(); |
From: Joe Z. <jz...@us...> - 2004-04-01 03:40:17
|
Update of /cvsroot/bobs/bobs/bash/init.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6842/bobs/bash/init.d Modified Files: cmdloopd.in Log Message: Fix bug: cmdloop would not start during system bootup. Index: cmdloopd.in =================================================================== RCS file: /cvsroot/bobs/bobs/bash/init.d/cmdloopd.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- cmdloopd.in 28 Mar 2004 22:33:22 -0000 1.1 +++ cmdloopd.in 1 Apr 2004 03:28:23 -0000 1.2 @@ -2,7 +2,7 @@ # # cmdloopd This script starts and stops the bobs cmdloop process # -# chkconfig: 2345 80 30 +# chkconfig: 2345 98 03 # # description: cmdloop is the bobs background "daemon" # processname: cmdloop |
From: Joe Z. <jz...@us...> - 2004-04-01 03:40:17
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6842/bobs Modified Files: Makefile.am Makefile.in Log Message: Fix bug: cmdloop would not start during system bootup. Index: Makefile.am =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.am,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Makefile.am 28 Mar 2004 22:33:21 -0000 1.16 +++ Makefile.am 1 Apr 2004 03:28:23 -0000 1.17 @@ -96,10 +96,24 @@ || echo "** Please run 'chown -R $(myHTTPDUSER) $(myBOBSDATA)'"; \ fi -# Start cmdloopd +# Install cmdloopd as a service (if supported) and start it install-data-hook: + @if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --add cmdloopd; \ + else \ + echo ""; \ + echo "********** IMPORTANT **********"; \ + echo "/sbin/chkconfig was not found."; \ + echo "For bobs to run properly you must insert"; \ + echo "the following line into your system startup script:"; \ + echo " $(myrealSYSCONFDIR)/init.d/cmdloopd start"; \ + echo "This will start the bobs background service."; \ + echo "See the INSTALL document for more information."; \ + echo "*******************************"; \ + fi + -$(myrealSYSCONFDIR)/init.d/cmdloopd start # Remove some other crap for 'make distclean' @@ -115,6 +129,9 @@ # The '-' on '-rmdir' tells 'make' to ignore any error returned by command # uninstall-local: + -if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --del cmdloopd; \ + fi -kill `/sbin/pidof -x cmdloop` -rmdir `find $(myWEBDIR) -type d | sort -r` -rmdir $(myBOBSDATA)/current/process/{cmd,mounts,session} Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.in,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- Makefile.in 28 Mar 2004 22:33:21 -0000 1.14 +++ Makefile.in 1 Apr 2004 03:28:23 -0000 1.15 @@ -521,10 +521,24 @@ || echo "** Please run 'chown -R $(myHTTPDUSER) $(myBOBSDATA)'"; \ fi -# Start cmdloopd +# Install cmdloopd as a service (if supported) and start it install-data-hook: + @if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --add cmdloopd; \ + else \ + echo ""; \ + echo "********** IMPORTANT **********"; \ + echo "/sbin/chkconfig was not found."; \ + echo "For bobs to run properly you must insert"; \ + echo "the following line into your system startup script:"; \ + echo " $(myrealSYSCONFDIR)/init.d/cmdloopd start"; \ + echo "This will start the bobs background service."; \ + echo "See the INSTALL document for more information."; \ + echo "*******************************"; \ + fi + -$(myrealSYSCONFDIR)/init.d/cmdloopd start # Remove some other crap for 'make distclean' @@ -540,6 +554,9 @@ # The '-' on '-rmdir' tells 'make' to ignore any error returned by command # uninstall-local: + -if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --del cmdloopd; \ + fi -kill `/sbin/pidof -x cmdloop` -rmdir `find $(myWEBDIR) -type d | sort -r` -rmdir $(myBOBSDATA)/current/process/{cmd,mounts,session} |
From: Joe Z. <jz...@us...> - 2004-03-28 22:44:56
|
Update of /cvsroot/bobs/bobs/man In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25059/bobs/man Modified Files: Makefile.in bobs.1 Log Message: Start cmdloop from /etc/init.d/cmdloopd instead of using check_loop in /etc/crontab. Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/man/Makefile.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.in 24 Apr 2003 06:16:00 -0000 1.2 +++ Makefile.in 28 Mar 2004 22:33:23 -0000 1.3 @@ -75,14 +75,16 @@ install_sh = @install_sh@ myBOBSDATA = @myBOBSDATA@ myCRONDIR = @myCRONDIR@ -myCRONTABDIR = @myCRONTABDIR@ myHTTPDUSER = @myHTTPDUSER@ +myLOGDIR = @myLOGDIR@ myMANDIR = @myMANDIR@ myPASS = @myPASS@ +mySYSCONFDIR = @mySYSCONFDIR@ myWEBDIR = @myWEBDIR@ myrealBOBSDATA = @myrealBOBSDATA@ myrealCRONDIR = @myrealCRONDIR@ -myrealCRONTABDIR = @myrealCRONTABDIR@ +myrealLOGDIR = @myrealLOGDIR@ +myrealSYSCONFDIR = @myrealSYSCONFDIR@ myrealWEBDIR = @myrealWEBDIR@ man1_MANS = bobs.1 Index: bobs.1 =================================================================== RCS file: /cvsroot/bobs/bobs/man/bobs.1,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bobs.1 20 Apr 2003 08:02:57 -0000 1.1 +++ bobs.1 28 Mar 2004 22:33:23 -0000 1.2 @@ -9,6 +9,8 @@ is a backup system that uses hard disks as backup media. Files are fetched from other computers and stored in directories on the computer where bobs is installed. +The low cost of large disk drives often makes this solution +less costly than expensive tapes or other backup media. .B bobs is accessed through a couple of web interfaces. The @@ -43,16 +45,16 @@ .RE .SH FILES -.I /etc/crontab +.I /etc/init.d/cmdloopd .RS A -.I check_loop +.I cmdloopd script is installed that makes sure the .I cmdloop script is running in the background. .I cmdloop -interacts with the web interface to display the -status of files being restored. +is like a daemon that runs the bobs commands +in the background. .RE .I /etc/cron.daily/backup.php .RS @@ -65,6 +67,19 @@ .I /var/bobsdata .RS Default destination of the backed up files. +.RE +.I /var/log/bobs.log +.RS +Output from +.I cmdloop +is written to +.I /var/log/bobs.log. +This is useful to look for errors +from cmdloop. For some types of backups the list of files +backed up are written to +.I /var/log/bobs.log. +.RE + .SH BUGS The user restore interface will not work until at least one backup has been sussessfully completed. |
From: Joe Z. <jz...@us...> - 2004-03-28 22:44:45
|
Update of /cvsroot/bobs/bobs/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25059/bobs/js Modified Files: Makefile.in Log Message: Start cmdloop from /etc/init.d/cmdloopd instead of using check_loop in /etc/crontab. Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/js/Makefile.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.in 24 Apr 2003 06:15:59 -0000 1.4 +++ Makefile.in 28 Mar 2004 22:33:23 -0000 1.5 @@ -75,14 +75,16 @@ install_sh = @install_sh@ myBOBSDATA = @myBOBSDATA@ myCRONDIR = @myCRONDIR@ -myCRONTABDIR = @myCRONTABDIR@ myHTTPDUSER = @myHTTPDUSER@ +myLOGDIR = @myLOGDIR@ myMANDIR = @myMANDIR@ myPASS = @myPASS@ +mySYSCONFDIR = @mySYSCONFDIR@ myWEBDIR = @myWEBDIR@ myrealBOBSDATA = @myrealBOBSDATA@ myrealCRONDIR = @myrealCRONDIR@ -myrealCRONTABDIR = @myrealCRONTABDIR@ +myrealLOGDIR = @myrealLOGDIR@ +myrealSYSCONFDIR = @myrealSYSCONFDIR@ myrealWEBDIR = @myrealWEBDIR@ htmldir = $(myWEBDIR)/js |
From: Joe Z. <jz...@us...> - 2004-03-28 22:44:44
|
Update of /cvsroot/bobs/bobs/inc/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25059/bobs/inc/templates Modified Files: Makefile.in servercheck2.sh Log Message: Start cmdloop from /etc/init.d/cmdloopd instead of using check_loop in /etc/crontab. Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/Makefile.in,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.in 24 Apr 2003 06:15:59 -0000 1.4 +++ Makefile.in 28 Mar 2004 22:33:23 -0000 1.5 @@ -75,14 +75,16 @@ install_sh = @install_sh@ myBOBSDATA = @myBOBSDATA@ myCRONDIR = @myCRONDIR@ -myCRONTABDIR = @myCRONTABDIR@ myHTTPDUSER = @myHTTPDUSER@ +myLOGDIR = @myLOGDIR@ myMANDIR = @myMANDIR@ myPASS = @myPASS@ +mySYSCONFDIR = @mySYSCONFDIR@ myWEBDIR = @myWEBDIR@ myrealBOBSDATA = @myrealBOBSDATA@ myrealCRONDIR = @myrealCRONDIR@ -myrealCRONTABDIR = @myrealCRONTABDIR@ +myrealLOGDIR = @myrealLOGDIR@ +myrealSYSCONFDIR = @myrealSYSCONFDIR@ myrealWEBDIR = @myrealWEBDIR@ htmldir = $(myWEBDIR)/inc/templates Index: servercheck2.sh =================================================================== RCS file: /cvsroot/bobs/bobs/inc/templates/servercheck2.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- servercheck2.sh 1 May 2003 05:21:15 -0000 1.2 +++ servercheck2.sh 28 Mar 2004 22:33:23 -0000 1.3 @@ -7,7 +7,7 @@ # If this script hangs, it will kill itself in this number of seconds # Timer code taken from "Advanced Bash-Scripting Guide" by Mendel Cooper TIMELIMIT=10 -KILLTIME=30 # In case signal 14 isn't enough +KILLTIME=15 # In case signal 14 isn't enough TimerOn() { # Waits TIMELIMIT seconds, then sends sigalarm to script. |