Trac
The Trac importer migrates:- Users
- Components
- Milestones
- Tickets
- Ticket comments and changes (status and resolution)
- Trac specific fields (eg. Resolution) are added as custom fields in Redmine
- Ticket files and custom fields
- Wiki pages with history
- User passwords are all set to
trac - Ticket ids are preserved if there's no ticket in your Redmine database yet
- Custom fields are all created as text custom fields in Redmine
gem install sqlite-rubyBefore starting, you need a fresh Redmine database, with default data loaded (required). See Redmine installation by clicking on the left menu.
Step 1:
Run the following command, where test is your Redmine target environment:
rake redmine:migrate_from_trac RAILS_ENV="test"Step 2:
The script asks you for your Trac settings:
Trac directory []: /var/trac/myproject
Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]:
Database encoding [UTF-8]:
Target project identifier []: myprojectTrac directory is the root directory of your Trac environment. Redmine will look in this directory for db/trac.db (if you choose sqlite/sqlite3 database) and the attachments directory.
Whenusing a mysql or postgresql Trac database, the script will ask you for the connection parameters (host, database name, username and password). Targetproject identifier is the identifier of the Redmine project in which
the data will be loaded (the project is created if not found). The script gives you the total number of migrated objects. Now, you should see a project called Myproject in Redmine with your
Trac data loaded in this project.

0 comments:
Post a Comment