migration from trac

Asked by Jelmer Vernooij on 2009-06-09

Is there an easy way to migrate an existing trac installation to Launchpad?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
Graham Binns Edit question
Solved by:
Graham Binns
Solved:
2009-06-16
Last query:
2009-06-16
Last reply:
2009-06-16
Whiteboard:
20090609 barry - assigned to graham for processing
Barry Warsaw (barry) said : #1

Hi Jelmer. Just to be clear, you're looking to import your bugs into LP and start using LP instead of your Trac instance, right? Because if you're just looking to have your bugs mirrored in LP, you know there's a Trac plugin:

https://help.launchpad.net/Bugs/TracPlugin

If you're looking for a permanent import, I'll assign this bug to Graham for processing.

Jelmer Vernooij (jelmer) said : #2

Hi Barry,

Yeah, I'm indeed looking for a one-time import. With the performance of trac, the regular spam and the fact that Launchpad will be Free Software soon in mind I think it's finally time to move to lp.

Barry Warsaw (barry) said : #3

Fantastic! I will assign this to Graham for processing.

Barry Warsaw (barry) said : #4

Oops, hit submit too quickly. Jelmer, can you provide all the details needed to do the import? I.e. where is the current Trac data you want to import and to which project should we do the import to?

Jelmer Vernooij (jelmer) said : #5

The project is ctrlproxy here on Launchpad. The trac instance is living at http://bugs.bitlbee.org/ctrlproxy/.

There's currently quite some spam there, but I can clean that out if that would be helpful to do so before the import. I also have disk-level access to the trac database and could provide a tarball of it.

Best Graham Binns (gmb) said : #6

Hi Jelmer,

The way the migration works is as follows:

 1) We provide you with a tool to pull all the data out of the Trac instance and turn it into XML that Launchpad understands.
 2) You pass the XML to us.
 3) We do a test import.
 4) If you're happy with that, we do a full import.

Does that sound alright? If so, I'll send you a copy of the migration tool.

Jelmer Vernooij (jelmer) said : #7

Hi Graham,

Yep, that sounds fine.

Graham Binns (gmb) said : #8

On Tue, Jun 16, 2009 at 12:49:36PM -0000, Jelmer Vernooij wrote:
> Yep, that sounds fine.

Excellent. You can grab the migrator as a bzr branch from
lp:trac-launchpad-migrator. You'll need to install EaseXML, which is
available from PyPI.

You can create your XML file by cd'ing into the migrator directory and
running:

./migrate.py <path/to/trac/db/file> <path/to/attachments/dir> <output-filename>

Please be aware that this script hasn't been extensively tested because
we don't have a Trac database of anything approaching a decent size, so
YMMV. Please report any bugs and we'll do our best to get it working for
you :).

Once you have an output file, let me know (I'm gmb on Freenode so feel
free to ping me) and I'll start the test import process.