Trac Importer

Description

This is a simple perl script that converts a Trac wiki to Confluence.

It gets all the Trac wikipages from the Trac database, attempts to converts the wiki tags and uploads them using xml-rpc to Confluence. If a page has multiple revisions it will convert all revisions.

Creator/lastmodifier metadata in this will be lost because Confluence's xml-rpc doesn't fully support this yet. (I filed http://jira.atlassian.com/browse/CONF-7281 to get this resolved)

Usage

Download the script, fill in the username/password of trac and Confluence and run it.

This script needs the http://confluence.atlassian.com/display/CONFEXT/Perl+XML-RPC+client plug in.

Bugs

Probably a lot, but it works ok in my case

Labels

trac trac Delete
plugin plugin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Nov 28, 2007

    David Soul [Atlassian] says:

    Anyone interested in a Trac to JIRA importer should visit http://jira.atlassian....

    Anyone interested in a Trac to JIRA importer should visit http://jira.atlassian.com/browse/JRA-13688

    The current import process is to use either a third-party import script at http://shadone.blogspot.com/2006/10/trac-to-jira-migration.html or the JIRA CSV importer

  2. Mar 31, 2008

    Rizwan Kassim says:

    Thanks for this! Some notes :  In order to get it working for those of...

    Thanks for this! Some notes :

     In order to get it working for those of us poor souls that setup Trac with SQLLite 3... # perl -MCPAN -e shell
    cpan> install DBI
    cpan> install DBD::PgLite
     (Accessing it directly with the SQLLite library led to issues, as the char_length command doesn't exist in SQLLite)

    Then modify the my $dbh line to instead read my $dbh = DBI->connect( "dbi:PgLite:trac.db" );
    Make sure you have XMLRPC::Lite, and RPC::XML installed using CPAN. (It wasn't installed by default on my Mac.)

  3. Sep 18

    Mario Pohlmann says:

    Hi, when I use this tool, I get this MSG: Content-Length header value was wro...

    Hi,

    when I use this tool, I get this MSG:

    Content-Length header value was wrong, fixed at /usr/share/perl5/LWP/Protocol/http.pm line 189.
    Result=

    I already tried to find a solution on http://confluence.atlassian.com/display/CONFEXT/Perl+XML-RPC+client but there was none.

    Any idea how I can fix this?

  4. Sep 22

    Scott Farquhar says:

    I believe that the Universal Wiki Converter will support Trac soon, so you may w...

    I believe that the Universal Wiki Converter will support Trac soon, so you may want to watch that page for updates.