On Monday, November 10, 2014 3:09:42 PM UTC-8, mha...@sandia.gov wrote:
>
> Thanks for all the input. The admins of this Trac instance are disinclined 
> to add new plugins, so I'll probably have to go the trac-admin route. What 
> I've found so far looks fairly straightforward. Something simple like this:
>
> for name in $(trac-admin /my/instance wiki list | grep '^Sierra/Tools' | 
> cut -f1 -d' ')
> do
>   trac-admin /my/instance wiki rename ${name} ${name/\/Tools\/\/DevOps\/}
> done
>
> looks like it will handle the renaming of the pages. I'm less sure about 
> modifying the content. Most of our pages contain a TracNav reference, and 
> references to other pages.  It seems that I could use:
>
> trac-admin /my/instance wiki dump pages Sierra/DevOps/*
>
> to dump them all to a directory where I could use sed() to fix up the 
> references, but would I then just use
>
> trac-admin /my/instance wiki load pages
>
> to re-import them?
>
> Thanks.
>

I didn't test, but that looks reasonable as long as you have a backup. 
There's a WikiReplacePlugin, but use that with care (and a backup), since 
it's not too refined yet:
http://trac-hacks.org/wiki/WikiReplacePlugin

I'll be interested to hear if the scripting approach worked out for you. 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to