offspot / wikifundi

Create a pre-configured Mediawiki for offline Wikipedia contribution teaching
11 stars 2 forks source link

Provide solution to export content as tarball #32

Closed kelson42 closed 6 years ago

kelson42 commented 6 years ago

As we do not have a solution built-in by Sloopy I see two potential solution:

florentk commented 6 years ago

For the PHP script, this must work : https://secure.php.net/manual/en/function.passthru.php

kelson42 commented 6 years ago

@florentk If you can catch the compressed stream on the output an "echo" it on the HTTP stream.

kelson42 commented 6 years ago

@florentk I think we have an answer here https://stackoverflow.com/questions/4357073/lamp-how-to-create-zip-of-large-files-for-the-user-on-the-fly-without-disk-cp

florentk commented 6 years ago

fix in 8e4d514

kelson42 commented 6 years ago

@florentk I reopen the ticket as the logs should not be exported. On the top of that I think the content mime-type should be set properly and also the filename should be of the type wikifundi-fr_2018-06-22.tar.bz2

florentk commented 6 years ago

fix in 9f8d32b