View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#22
so good so far:
http://maemo-archive.wedrop.it/

Thanks Sebastian Lauwers aka Crashanddie aka teotwaki.

Much needed: a way to create a semi-decent backup of wiki.maemo.org. Mere wget will fail since there are too many pages/links like "edit", "history", etc. I seem to recall somebody talking about a script that uses http://wiki.maemo.org/Special:AllPages and http://wiki.maemo.org/Special:Export.

/j

[edit]
[2012-11-11 03:32:09] <Skry> I did wget --convert-links for pages in AllPages, then, cat ./* | grep -o '<a .*href=.*>' | sed -e 's/<a/\n<a/g' | sed -e 's/<a .*href=['"'"'"]//' -e 's/["'"'"'].*$//' -e '/^$/ d' | grep http\:\/\/wiki.maemo.org\/ | sed 's/^http\:\/\/wiki.maemo.org\///' | sed '/index.php/d' | sed -n 'G; s/\n/&&/; /^\([ -~]*\n\).*\n\1/d; s/\n//; h; P' | sort | xclip and pasted the result in export page

[2012-11-11 04:10:05] <Skry> merlin1991: https://dl.dropbox.com/u/49989728/maemo_wiki_main.txt
[2012-11-11 04:16:22] <Skry> https://dl.dropbox.com/u/49989728/maemo_wiki_file.txt
[2012-11-11 04:19:17] <Skry> https://dl.dropbox.com/u/49989728/maemo_wiki_user.txt
[2012-11-11 04:21:45] <Skry> https://dl.dropbox.com/u/49989728/maemo_wiki_talk.txt
[2012-11-11 04:25:08] <merlin1991> curl -X POST -d catname= -d curonly=1 -d wpDownload=1 --data-urlencode pages@$PAGESFILE -o $OUTFILE http://wiki.maemo.org/index.php?titl...&action=submit
__________________
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member

EX Hildon Foundation approved
Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/

IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N

Last edited by joerg_rw; 2012-11-11 at 03:36.
 

The Following 11 Users Say Thank You to joerg_rw For This Useful Post: