Project

General

Profile

Migrate from Trac to Redmine - remotely

Added by Daniel Chu about 16 years ago

I have been looking to migrate my Trac projects to Redmine, but am hesitated to do so due to the following reason.

1. My Redmine application base is hosted on server A
2. My Redmine database is hosted on server B
3. Both my Trac application and database are hosted on server B
4. The wiki only shows us on how we can migrate Trac to Redmine as if they are hosted on the same machine.

So my question is, in this situation, how can I migrate Trac's project to Redmine?


Replies (5)

RE: Migrate from Trac to Redmine - remotely - Added by John Goerzen about 16 years ago

Just copy your trac instance directory and its database.

To get a copy, shut down Trac, then:

If it's Sqlite, copy the .db file to your Redmine server

If it's PostgreSQL, use pg_dump to dump it, then load it into a PostgreSQL db on the Redmine server

If it's MySQL, use mysqldump (I think that's the command) to dump it, then again, load it into a MySQL db on the Redmine server.

I'm not 100% sure you even need the instance directory, but you probably do because it has a few bits of config in it that I'm guessing redmine will look at.

RE: Migrate from Trac to Redmine - remotely - Added by John Goerzen about 16 years ago

I guess your other option is to install Redmine on the Trac server and then move the database to the Redmine server.

RE: RE: Migrate from Trac to Redmine - remotely - Added by Daniel Chu about 16 years ago

Thanks for the reply guys.

I have tried the second option there (but I guess it doesn't really matter) and it gives me this error:

rake aborted!
no such file to load -- sqlite

I am using sqlite on Trac and I am under windows. I typed C:\myproject into the Trac directory and it gave me the error above.

Please help.

Thank you,

Daniel

RE: Migrate from Trac to Redmine - remotely - Added by Kai Olav Fredriksen about 16 years ago

guess you need sqlite-bindings in ruby?

in command-window:

gem install sqlite-ruby

or for sqlite3:

gem install sqlite3-ruby

no ruby-man myself, but I remember I got a similar error, and I did something like above

RE: RE: Migrate from Trac to Redmine - remotely - Added by Mark P almost 16 years ago

I got around this by using mounting the trac server to my redmine server via sshfs. Both of them are linux boxes, so ssh already exists. http://fuse.sourceforge.net/sshfs.html It is also available in most repositories for those of you using yum or apt-get.

    (1-5/5)