RTFM

[Read This Fine Material] from Joshua Hoblitt

Removing all user generated pages from a Trac wiki

| 0 comments

I’ve been wrestling with converting MediaWiki content into Trac and after several experiments, I wanted to start from scratch. It’s not pretty but this cmdline got me there:

trac-admin /svnroot/trac/ wiki list | cut -f1 -d' ' | grep -v Wiki | grep -v Trac | grep -v TitleIndex | xargs -L1 trac-admin /svnroot/trac/ wiki remove

Leave a Reply