David writes:

> Les Mikesell wrote:
> > On Thu, 2006-08-17 at 03:23, David Simpson wrote:
> >   
> >>>   
> >>>       
> >> $Conf{ClientTimeout} = 3600*6;      # 6 Hours!!
> >>     
> >
> > Can you crank it much higher and try to get your first run
> > to complete over a weekend?  If you are using rsync over ssh
> > and the data can be compressed, it might also help to add the
> > -C option  after $sshPath in your $Conf{RsyncClientCmd}.
>
> Yes, I can crank it up, but it doesn't really solve the problem. This is 
> not the first run of the backup, it has been working well both locally 
> and remotely for several months. Its just that recently someone placed a 
> large new file in one of the directories which is backed up, and that 
> caused it to fail.

You could try replacing these lines of code in lib/BackupPC/Xfer/RsyncFileIO.pm:

    if ( defined($fio->{rxFile}) ) {
        unlink($fio->{rxOutFile});
        $fio->log("finish: removing in-process file $fio->{rxFile}{name}");
    }

with:

    if ( defined($fio->{rxFile}) ) {
        $fio->{rxFile}{size} = $fio->{rxSize};
        $fio->attribSet($fio->{rxFile});
        $fio->log("finish: keeping in-process file $fio->{rxFile}{name} size 
$fio->{rxSize}");
    }

I'm not sure this will work correctly, but it is worth a try.
Of course, this will probably void your BackupPC warranty.

Craig

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to