Craig Barratt wrote:
> 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
>   
Hi Craig,

I just tried that, and it does save the partially transfered file. The 
only problem is that Rsync only seems to take advantage of the partially 
saved file if the CompressLevel is set to 0. When the partially 
transfered file is compressed, Rsync has no speedup. I assume that this 
is because Rsync is trying to use the compressed file which is different 
to the uncompressed file on the other end.

As the backups are large, I would like to the  keep the CompressLevel 
set to 5 to save disk space.

Thanks
David




-------------------------------------------------------------------------
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