|
From: Rene R. <re...@gr...> - 2002-10-22 14:08:45
|
On Tue, 2002-10-22 at 08:00, Thiruvarasu a/l Muthusamy wrote: > Rene, > > I've done the changes that you suggested. But i still not able to see any > files and there's still some error messages on the right pane. The error is > > > Warning: First argument to array_keys() should be an array in > /var/www/html/bobs/inc/class_db.php on line 424 > > Warning: Invalid argument supplied for foreach() in > /var/www/html/bobs/inc/class_db.php on line 425 > No files were found in It seems that you have a problem with the backup more than a problem with the web interface. Please check the following: 1. Are there any files in /usr/local/share/bobsdata/current/process/cmd/ If the there are then open a shell and type the following commands (as root user) change dir to the process dir: cd /usr/local/share/bobsdata/current/process/ run the cmdloop: ./cmdloop (leave this running) This will run all the scripts in the cmd directory. If the cmd directory was empty then open another shell and run the command: /var/www/html/bobs/cron/backup.php Now check the output of the cmdloop script. It should indicate if the backup is running. When the backup is finish you should be able to see files in the web interface. If you still don't see any files please run the following commands and send me the output. cd /usr/local/share/bobsdata/current/process/ find > filelist.txt send filelist.txt to me along with the file cmdloop I hope you have better luck this time. -Rene > > > thanks > > > > > Could you please try this: > > edit the file "inc/class_files.php" > > > > and change line 52 from this: > > $this->data = $db->db_fetch_entries ( $indexes, $values ); > > to this: > > $this->data = $db->db_fetch_entries ( $where, $indexes, $values ); > > > > I'm not sure this is a complete fix, so I still working on it. You > > should be able to browse you files after changing this. > > I'll post an update when I figure out if this is the only place that is > > broken. > > > > -Rene > > > > > > On Mon, 2002-10-14 at 09:34, Thiruvarasu a/l Muthusamy wrote: > >> Rene, > >> > >> The folder which i'm trying to backup contains files but i don't seem > >> to be able to see any under the current and the incremental folders. > >> > >> This is the error message i'm getting on the right pane. > >> > >> Warning: Missing argument 3 for db_fetch_entries() > >> in /var/www/html/bobs/inc/class_db.php on line 412 > >> No files were found in > >> > >> > >> First i created the share and then i ran the backup.php script. From > >> my observation it is creating all the files within > >> the /usr/local/share/bobsdata/current/sambaserver/ > >> and /usr/local/share/bobsdata/incremental/sambaserver/ > >> > >> > >> Thanks > >> > >> > >> > On Wed, 2002-10-09 at 15:36, Thiruvarasu a/l Muthusamy wrote: > >> >> Rene, > >> >> > >> >> I've managed to get rid of the php errors which i had earlier. The > >> >> only error i get now is on the left pane of the frame. This happens > >> >> when i try to browse through both the current and incremental. > >> > > >> > Do you have files in your backup? > >> > Do you see any files in any directories? > >> > > >> > Please make sure you have a few files and directories on the > >> > computer you make backups of. Those files should show up when you > >> > run the backup.php script. > >> > > >> > I see the problem but you should not worry much about i right now. > >> > It will go away when you have files in your backup. > >> > > >> > I've just reinstalled my workstation, so I'm not able to test it > >> > myself at the moment. When I'm finished I'll do some more testing > >> > and fixing of your problems. > >> > > >> > -Rene > >> > > >> >> > >> >> Warning: Missing argument 3 for db_fetch_entries() in > >> >> /var/www/html/bobs/inc/class_db.php on line 412 > >> >> No files were found in > >> >> > >> >> > >> >> Thanks > >> >> > >> >> > >> >> > >> >> On Wed, 2002-10-09 at 03:45, Rene Rask wrote: > >> >> > On Tue, 2002-10-08 at 18:15, Thiruvarasu a/l Muthusamy wrote: > >> >> > > Rene, > >> >> > > > >> >> > > I think there's something very basic that i think i'm doin > >> >> > > wrong here. Let me just run through how i installed, n tell me > >> >> > > if there's anything wrong. I just did the ./configure using > >> >> > > root with all the default settings n did the "make install". > >> >> > > Since i'll be doin back up for samba files only i didn't > >> >> > > install nfs or rsync. Then i logged on to the admin.php and > >> >> > > added a new share with the "create backup of this server > >> >> > > checked". After creating all that i tried loggin in as the > >> >> > > specified user and tried to browse through but i'm getting the > >> >> > > DBA errors. > >> >> > > >> >> > I think you need to run the backup before these directories are > >> >> > created. > >> >> > > >> >> > run the command "php /var/www/html/bobs/cron/backup.php" as root > >> >> > user. and move backup.php into /etc/cron.daily/ to have it run > >> >> > every night > >> >> > > >> >> > The install script is not installing a file which is needed. > >> >> > > >> >> > Edit the file <bobs-sources>/cron/check_loop and change the line: > >> >> > CMDLOOP_DIR=/mnt/tera1/backup/process > >> >> > to > >> >> > CMDLOOP_DIR=/usr/local/share/bobsdata/current/process > >> >> > (That path should contain a file called "cmdloop") > >> >> > Copy the "check_loop" file into into > >> >> > "/usr/local/share/bobsdata/current/process/" > >> >> > > >> >> > To start the script, insert this line into the file > >> >> > "/etc/crontab" > >> >> > > >> >> > Now You'll need to make some changes to your /etc/crontab file. > >> >> > > >> >> > 0-59/5 * * * * root > >> >> > /usr/local/share/bobsdata/current/process/check_loop & > >> >> > (Please beware of line breaks in the email. The "&" character is > >> >> > the last part of the line) > >> >> > > >> >> > now reload the cron configuration. > >> >> > On Redhat run > >> >> > "/etc/init.d/crond reload" > >> >> > > >> >> > This will update the configuration of cron and start the cmdloop > >> >> > script within 5 minutes. > >> >> > If you ran backup.php it will start a backup as soon as cmdloop > >> >> > starts. > >> >> > > >> >> > I hope this helps. > >> >> > > >> >> > -Rene > >> >> > I'll look into making most of this happen on installation. > >> >> > >> >> > >> >> > >> >> ------------------------------------------------------- > >> >> This sf.net email is sponsored by:ThinkGeek > >> >> Welcome to geek heaven. > >> >> http://thinkgeek.com/sf > >> >> _______________________________________________ > >> >> Bobs-devel mailing list > >> >> Bob...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/bobs-devel > >> > > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This sf.net email is sponsored by:ThinkGeek > >> > Welcome to geek heaven. > >> > http://thinkgeek.com/sf > >> > _______________________________________________ > >> > Bobs-devel mailing list > >> > Bob...@li... > >> > https://lists.sourceforge.net/lists/listinfo/bobs-devel > >> > >> > >> > >> > >> ------------------------------------------------------- > >> This sf.net email is sponsored by:ThinkGeek > >> Welcome to geek heaven. > >> http://thinkgeek.com/sf > >> _______________________________________________ > >> Bobs-devel mailing list > >> Bob...@li... > >> https://lists.sourceforge.net/lists/listinfo/bobs-devel > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Bobs-devel mailing list > > Bob...@li... > > https://lists.sourceforge.net/lists/listinfo/bobs-devel > > > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future of > Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) > program now. http://ad.doubleclick.net/clk;4699841;7576301;v? > http://www.sun.com/javavote > _______________________________________________ > Bobs-devel mailing list > Bob...@li... > https://lists.sourceforge.net/lists/listinfo/bobs-devel |