from
http://www-inf.int-evry.fr/~olberger/blog/040830.html
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/*'
--
ToniPrug - 06 Feb 2005
to top