Blog Olivier Berger à l'INT
Mon journal de ce que j'ai fait à l'INT
Ma page perso

Mon WebLog

   
Lundi 30 Août 2004

If you need to make a static HTML mirror of a wiki web operated with TWiki, there is a very nice solution using httrack, using the following command-line.

For instance, imagine you have a wiki on the web site twiki.mydomain.com, and the "web" is named "Myweb", and you have added the koala plugin in your twiki. The following command makes a mirror in /home/[user]/websites/mirror_myweb_twiki, of the contents of your wiki, including the raw source and the printable output, and attachments. Note we use a proxy in this example.

httrack -%i -w http://[user]:[password]@twiki.mydomain.com/bin/viewauth/Myweb/WebHome \
 -O "/home/[user]/websites/mirror_myweb_twiki" -%P -N0 -s0 -p7 -S -a -K0 -%k -A25000 \
 -F "Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)" -%F '' \
 -%s -P "proxy.mydomain.com:3128" -x -%x -%u -%U www-data \
 '+*.png' '+*.gif' '+*.jpg' '+*.css' '+*.js' '+twiki.mydomain.com/*.pdf' \
 '+twiki.mydomain.com/bin/view*/Myweb/*' \
 '-twiki.mydomain.com/bin/view*/Myweb/*?raw=*' \
 '+twiki.mydomain.com/bin/view*/Myweb/*?raw=on' \
 '-twiki.mydomain.com/bin/view*/Myweb/*?skin=*' \
 '+twiki.mydomain.com/bin/view*/Myweb/*?skin=koalaprint' \
 '+twiki.mydomain.com/pub/Myweb/*'

Août 2004
Dim Lun Mar Mer Jeu Ven Sam
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Jui  Sep


emacs Copyright © 2004 by Olivier Berger <olivier.berger@int-evry.fr>
Selon la formule consacréee, les propos tenus dans ce weblog n'engagent que leur auteur et non l'institution (l'INT ou le GET).
source