Migrate from Trac to Redmine - remotely
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?
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.
I guess your other option is to install Redmine on the Trac server and then move the database to the Redmine server.
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:
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.
guess you need sqlite-bindings in ruby?
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 11 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.