Stephen writes:

> >> I am running BackupPC 2.1.2pl2. I have a problem that I cannot queue
> >> multiple restores.
> <SNIP>
> >>
> >> How can I get the restores to be correctly scheduled ?  I have 40
> >> different files to restore after a disk failure.
> >
> > Sorry about the delay in replying.  This bug is fixed in BackupPC 3.0.0beta.
> >
> > If you need a fix for 2.1.2 I can tell you what to change.
> >
> > Craig
> 
> I'm using v2.1.2 and don't want to move to v3 before it comes out of
> beta, and I'm getting this problem too (similarly after a HDD
> failure).
> 
> Could you tell me what to change to get it working please?

Here's a patch to BackupPC 2.1.2, although I haven't tested it.
The declarations of @deferUserQueue and @deferBgQueue should
be moved outside the loop.

Craig

--- BackupPC.orig       2006-11-13 22:17:34.755688000 -0800
+++ BackupPC    2006-11-13 22:18:40.430123200 -0800
@@ -559,9 +559,10 @@
 sub Main_TryToRun_Bg_or_User_Queue
 {
     my($req, $host);
+    my(@deferUserQueue, @deferBgQueue);
     while ( $RunNightlyWhenIdle == 0 ) {
         local(*FH);
-        my(@args, @deferUserQueue, @deferBgQueue, $progName, $type);
+        my(@args, $progName, $type);
         my $nJobs = keys(%Jobs);
         #
         # CmdJob and trashClean don't count towards MaxBackups / MaxUserBackups


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to