BackupPC-users

[BackupPC-users] Problem with tar backup

2016-03-05 13:15:16
Subject: [BackupPC-users] Problem with tar backup
From: Sebastiaan van Erk <sebster AT sebster DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Sat, 5 Mar 2016 19:12:32 +0100
Hi,

I'm trying to do a tar backup of a pfsense machine, but I'm getting an 
error:

     Got fatal error during xfer (No files dumped for share /cf/conf)

However tarExtract says everything is fine:

     tarExtract: Done: 0 errors, 32 filesExist, 487438 sizeExist, 196984 
sizeExistComp, 32 filesTotal, 487438 sizeTotal

I've also found out where the problem is. In Xfer/Tar.pm there is code 
counting the files tarred on the remote host:

         } elsif ( /^\./ ) {
             $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 
$logFileThres );
             $t->{fileCnt}++;
         } else {

However, the machine I'm backing up is a pfsense machine which is based 
on FreeBSD, and tar outputs "a ./theaddedfile.txt" instead of simply 
"./theaddedfile.txt", which causes the above line not to match. I've 
replaced it in my BackupPC install with:

         } elsif ( /^(a )?\./ ) {
             $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 
$logFileThres );
             $t->{fileCnt}++;
         } else {

and now it works.

I just thought I'd report this bug/issue.

I'm using backuppc 3.3.0-1ubuntu1 from the ubuntu repositories.

Best regards,
Sebastiaan


------------------------------------------------------------------------------
_______________________________________________
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>
  • [BackupPC-users] Problem with tar backup, Sebastiaan van Erk <=