On Tuesday, April 23, 2013 11:39:43 AM UTC-7, Manuel Holtgrewe wrote:
>
> Dear all,
>
> the Trac Wiki at trac.edgewall.org uses version namespaces to keep around
> multiple versions of the manual concurrently.
>
> I would like to do the same with tutorials for our software project.
>
> I imaging that copying over the pages manual is pretty tedious. What is
> the best way to copy all pages, say below "Tutorial/", to "/1.4/Tutorial/"?
> Does anyone of you have a script using the HTTP API of Trac, is this best
> done using direct database access, or is there even a plugin for that (I
> could not find any)?
>
Hi Manuel, I think you can accomplish this using trac-admin [1] or
XmlRpcPlugin [2].
If you'd like to use trac-admin, which is probably easier, the following
commands move all pages starting with "Trac" to a 0.12 directory (on Linux):
trac-admin tracdev wiki dump pages Trac*
cd pages
for filename in *; do mv {,0.12%2F}"$filename"; done;
cd ..
trac-admin tracdev wiki load pages
[1] http://trac.edgewall.org/wiki/TracAdmin#FullCommandReference
[2] http://trac-hacks.org/wiki/XmlRpcPlugin
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.