BackupPC-users

[BackupPC-users] Parity (par2) command running on archives even though set to 0

2012-05-31 11:41:23
Subject: [BackupPC-users] Parity (par2) command running on archives even though set to 0
From: Pascal Mosimann <pascal.mosimann AT alternatique DOT ch>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 31 May 2012 17:12:54 +0200
 > Why does BackupPC run the parity command if I've told it not to by 
passing
 > it a 0?  And how do I return to the 3.1 behavior?  According to the
 > documentation, setting it to 0 should disable it, not cause it to run 
with
 > a parameter of 0...  And if for some reason we would *want* the 
parity to
 > run with a parity of 0, could we have a parameter that disables it?  
Maybe
 > -1?  How do you calculate *negative* parity!  :)

Hi Tim,

Same situation here: I don't want to run par2. Because the archive is 
done on USB drives and it takes too long.

It looks between version 1.16 and 1.17 of BackupPC_archiveHost (see 
http://backuppc.cvs.sourceforge.net/viewvc/backuppc/BackupPC/bin/BackupPC_archiveHost?r1=1.16&r2=1.17),
 
the condition to run par2 has changed on line 157
 From
   ...
   if ( $parfile != 0 ) {
   ...

to
   ...
   if ( length($parfile) ) {
   ...

I've modified the condition back to "if ( $parfile != 0 )" and now it 
skips the par2 execution.

HTH
Pascal.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>