SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
browse backup or restore file(s) as .zip file
Author Message
Post browse backup or restore file(s) as .zip file 
Hello,

I've got trouble while read or restoring file(s) with backupPC
2.0.0beta0: the mime type HTML header seems to be provided as a part of
the document or the zip file.

For instance, if I browse backup and click on a file, I've got this
display (the file really begins with "this_is_the_beginnig_of_file") :

------<cut here>------------------------------
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-Disposition: attachment; filename="NOTES.TXT"

this_is_the_beginnig_of_file
blah, blah, blah,
....
------<cut here>------------------------------


I don't have any trouble if I directly restore the file on a network
share (thanks to samba).


If I request a file zip as a restoring archive, the browser "save as
..." provides me "bacckupPC_Admin" as suggested save filename.

I changed it with another name with a .zip extension and download it.
The obtained zip file seems to be a little corrupted, and is still usable:

------<cut here>------------------------------
C:\TEMP>unzip -v
UnZip 5.42 of 14 January 2001, by Info-ZIP. Maintained by C. Spieler.
Send bug reports to the authors at Zip-Bugs < at > lists.wku.edu; see README
for details.

C:\TEMP>unzip -t restore.zip
Archive: restore.zip
warning [restore.zip]: 121 extra bytes at beginning or within zipfile
(attempting to process anyway)
testing: ./NOTES.TXT OK
No errors detected in compressed data of restore.zip.

C:\TEMP>unzip restore.zip
Archive: restore.zip
warning [restore.zip]: 121 extra bytes at beginning or within zipfile
(attempting to process anyway)
inflating: ./NOTES.TXT
------<cut here>------------------------------


So It really looks like the web server provides a misconfigured HTTP
transfert, by provides the mime type in the "body" of its answer.

Did I miss someting in the Apache configuration, or in the backupPC
documentation or an already resolved submit in backupPC mailing list(s)
????

Thanks for any advice or explanation !

Regards,

Pierre Bourgin





-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post browse backup or restore file(s) as .zip file 
Are you using mod_perl? If so, please add

PerlSendHeader On

to apache's httpd.conf inside the mod_perl directives for BackupPC_Admin.

Craig


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post browse backup or restore file(s) as .zip file 
cbarratt < at > users.sourceforge.net a =E9crit:

Are you using mod_perl? If so, please add
=20
PerlSendHeader On
=20
to apache's httpd.conf inside the mod_perl directives for BackupPC_Admi=
n.

Hello,

and thanks for this great advice !
Do you plan to add it in the documentation ?

It's working nice in order to browse "online" backuped file(s).

... but the produced .zip file still has the same troubles :

with netscape 7.02
- the proposed save-as name is "backupPC_admin" (without extension)
- it's still containing 121 extra bytes

with Internet Explorer 5.5
- the produced zip file is provided "online", instead of "save as ...=
"

I don't understand what's happening, I don't think it's coming from my
web client(s) ... perhaps a mismatch in my Apache configuration ?

Nothing suspect appears in the access or error apache logfiles with
"Loglevel debug" in httpd.conf.

I use the following softwares under solaris 7:

apache-1.3.27nb3 Apache HTTP (Web) server
ap-perl-1.25nb1 Module that embeds a Perl interpreter into Apache
libperl-5.6.1 Perl DynaLoader as a shared object
perl-5.6.1nb7 Practical Extraction and Report Language
p5-Date-Calc-5.0 perl5 module for Gregorian calendar date calculatio=
ns
p5-Date-Manip-5.39 perl5 module for date calculations
p5-MIME-Base64-2.12 perl5 module for Base64 and Quoted-Printable encodi=
ngs
p5-Mail-Sendmail-0.78 perl5 module dedicated to Sendmail
p5-Net-1.11 perl5 modules to access and use network protocols
p5-MailTools-1.43 perl5 modules related to mail applications
p5-Net-Telnet-3.02 perl5 module to use telnet
p5-CGI-2.79 perl5 module for writing forms-based CGI programs
p5-Compress-Zlib-1.16 perl5 module interface to the zlib compression libr=
ary
p5-Archive-Zip-0.11 perl5 module interface to manipulate zip files
p5-Archive-Tar-0.22 perl5 module interface to manipulate tar files


and my apache configuration file looks like:

--------<cut here>-------------------------------------------------------
# backupPC
LoadModule perl_module /usr/pkg/lib/httpd/mod_perl.so
<IfModule mod_perl.c>
PerlModule Apache::Registry
PerlTaintCheck On
<Location /cgi-bin/BackupPC_Admin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
AuthType Basic
AuthName "BackupPC login"
AuthUserFile /t200/divers/backupPC/conf/htpasswd
require valid-user
</Location>
</IfModule>
--------<cut here>-------------------------------------------------------


Hopfully, theses troubles are not critical, they just require more explan=
ations
to the end-user Wink

Regards,

Pierre Bourgin



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Post browse backup or restore file(s) as .zip file 
cbarratt < at > users.sourceforge.net a =E9crit:

Are you using mod_perl? If so, please add

PerlSendHeader On

to apache's httpd.conf inside the mod_perl directives for BackupPC_Admin.

Hello,

and thanks for this great advice !
Do you plan to add it in the documentation ?

It's in the 2.0.0 documentation.

It's working nice in order to browse "online" backuped file(s).

... but the produced .zip file still has the same troubles :

with netscape 7.02
- the proposed save-as name is "backupPC_admin" (without extension)
- it's still containing 121 extra bytes

with Internet Explorer 5.5
- the produced zip file is provided "online", instead of "save as ..."

I don't understand what's happening, I don't think it's coming from my
web client(s) ... perhaps a mismatch in my Apache configuration ?

It looks like the CGI headers are getting mangled somehow, or
additional headers are getting inserted before the real ones
generated by BackupPC_Admin. Have you tried it without mod_perl?

Also, what version of BackupPC are you running? The code for generating
the zip and tar files was updated in 2.0.0beta1.

Craig


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB