First, I want to thank the developers for this great free software.
I am using BackupPC 1.5.0 on a RedHat 8 system with a locally-built
copy of Perl 5.8.0. (Note: I briefly tried 2.0.0beta with identical
All of my backup attempts were failing. The XferLOG.bad file showed
tarExtract: Wide character in syswrite at /opt/backuppc/lib/BackupPC/FileZIO.pm line 235.
I spent all day yesterday debugging this. I tried many settings for
the LANG and PERLIO environment variables. I tried adding "use
bytes;" to various sections of the code. I tried variations on "use
open IO => ...". (Details of any of these available upon request.)
Finally, I used the Carp module to instrument the code and get a
backtrace. This let me see where the wide characters were
originating. I am appending a patch to BackupPC_tarExtract which
fixes the problem; with this patch applied, my backups are working
fine. I also tested restorals, of course :-).
I have no idea why this problem is only affecting this one utility. I
have no idea why others are not having the same issue. I do not know
why setting PERLIO=":raw" does not fix it. But I am certain that the
appended patch fixes it for me.
So, I would either like to see this patch applied, or I would like to
work with a BackupPC developer to fix my problem in some other way.
What are my chances?
--- BackupPC_tarExtract 2003/03/19 15:59:10 1.1
+++ BackupPC_tarExtract 2003/03/19 15:59:15
@@ -374,6 +374,7 @@
mkpath("$OutDir/$ShareName", 0, 0777);
|| die("can't open $TopDir/pc/$host/NewFileList");
1 while ( TarReadFile(*STDIN) );
1 while ( sysread(STDIN, my $discard, 1024) );