BackupPC-users

Re: [BackupPC-users] Umlauts are driving me crazy...

2011-06-18 21:00:11
Subject: Re: [BackupPC-users] Umlauts are driving me crazy...
From: "Patrick G. Stoesser" <lists AT pgs-info DOT de>
To: backuppc-users AT lists.sourceforge DOT net
Date: Sun, 19 Jun 2011 02:54:49 +0200
And hello again...

I think I have solved the problem in a way which works in my environment.

Recap: The only remaining problem with umlauts was that when restoring 
via zip or tar download the umlauts were messed up.

What I did (after more researching abaout how the zip or tar files are 
created):

In  /usr/share/backuppc/lib/BackupPC/CGI/Restore.pm I added

- after line 199 "-e = cp850",:



$bpc->cmdSystemOrEvalLong(["$BinDir/BackupPC_tarCreate",
                  "-h", $host,
                  "-n", $num,
                  "-sDA", $share,
                  "-e = cp850",
                  @pathOpts,
                  @fileList
             ],


- after line 239 dito:


$bpc->cmdSystemOrEvalLong(["$BinDir/BackupPC_zipCreate",
                  "-h", $host,
                  "-n", $num,
                  "-c", $In{compressLevel},
                  "-s", $share,
                  "-e = cp850",
                  @pathOpts,
                  @fileList
             ],



And everything works perfectly. But: this is the solution which works in 
/my/ environment, and since that is a hardcoded solution, it may not 
meet others' demands.

Good night everybody and kind regards, Patrick

Am 18.6.2011 15:35, schrieb <Patrick G. Stoesser>:
> Hallo again,
>
> to narrow down the problem and because it still bothers me, I now did
> the following:
>
> Set the server to UTF-8. Took a client at set it to UTF-8, too. Ran a
> backup, which succeed. Webinterface is ok. Restore via rsyncd is ok.
>
> What is not ok: Restore via download (webinterface), be it zip or tar.
> The file in the zip or tar has messed up umlauts.
>
> Regards, Patrick
>
>
> Am 18.6.2011 14:04, schrieb lists AT pgs-info DOT de:
>> Hello all,
>>
>> after reading documentation, searching google, trying (and failing) I
>> hope someone on this list can cure my pain.
>>
>> I have set up a new backuppc server (6 TB, Debian Squeeze, BackupPC
>> 3.1.0-9) backing up several Machines (Debian Squeeze, Lenny, Windows
>> 2007 Server) and basically everything works like a charme.
>>
>> I only have a problem with umlauts. Let my tell you what I tried. I'm
>> using localhost as an example client here.
>>
>> System in UTF-8 (iso-8859-15 and iso-8859-1 are still available but not
>> set as system default), $Conf{ClientCharset} default setting, transfer
>> method is rsyncd.
>> Already on the filesystem the umlauts are not displayed correctly. And
>> so also the webinterface is broken when displaying files with umlauts.
>> When restoring via zip download, the zip is empty. When restoring via
>> tar download, no file is delivered. Whyever.
>>
>> System in de_DE@euro (UTF-8 and iso-8859-1 are still available but not
>> set as system default), $Conf{ClientCharset} set to iso-8859-15:
>> Webinterface ok, restoring via rsync ok, direct download of files via
>> webinterface ok. Zip and tar restore via download work, but the restored
>> files in the zip resp. gtar have messed up filenames again.
>>
>> Since with system in de_DE@euro and $Conf{ClientCharset} set to
>> iso-8859-15 basically everything works and since some systems to be
>> backed are in iso-8859-15, I would like to stick with this settings.
>>
>> The only thing is that delivery via zip/tar download is broken. I have
>> not found any possibility to fix this.
>>
>> I think I'm not the only one unsing BackupPC in a German environment :-)
>> and so I would be very grateful if someone could help me out.
>>
>> Thanks in advance and kind regards, Patrick
>>
>> PS. I'm using BackupPC in SOHO environments since many years, but until
>> now always with Win9/WinXP/Win7 machines via Samba and the server in
>> iso-8859-15, and those problems have never occured. Despite of that
>> know-how I have no idea how I can get this to work.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>> _______________________________________________
>> 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/
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> 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/


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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>