Migrate from Trac to Redmine without relying on the obsolete importer
Moving years of Trac tickets and wiki history into Redmine is a scripted, mapped import over the Redmine REST API, run against a validated copy, not a button press. The built-in Trac importer is marked obsolete and not working in the Redmine migration documentation, so the work starts with a plan for how each Trac object maps to a Redmine object and ends only when a test import has been checked against the source. Effort is driven by three things: the volume of tickets and attachments, how far your Trac workflows and custom fields diverge from Redmine's trackers and statuses, and how much history fidelity you need, such as original reporters, timestamps and comment order.
Redmine itself has no license fee, since it is free under GPL v2, so the cost of this project is people and infrastructure rather than software. The one-time costs are the mapping design, the export and import scripts, test runs, validation and the cutover. The recurring costs are the staging and production hosting for Redmine and the maintenance that follows. Ask any partner or internal team to quote these as separate line items, and ask what the quote assumes about the number of Trac projects, custom ticket fields, attachment size and the number of users who must be recreated or matched. Confirm also which Redmine release you will target, since the supported line and its upgrade path affect what you build now.
Before any script is written, confirm three things with your own environment: the Trac version and database backend, the Redmine version and database you will run, and whether the REST API can be enabled for the account that will perform the import. The REST API must be turned on by an administrator and authenticates with a per-user API key, so decide early which service account will own the imported records and how its key is stored. Then test the pipeline on a copy of the Trac data, compare counts and sample tickets field by field, and repeat the run until the discrepancies are understood and documented. The validated copy is the deliverable that matters, because it is what your team will sign off on before the production cutover.
Which Trac concepts map cleanly to Redmine and which do not
This table compares the main Trac concepts with their closest Redmine equivalents and marks where the mapping needs a decision. Use it to decide which Trac data moves directly, which needs a custom field or a mapping rule, and which must be confirmed in your own Trac instance before the import script is written.
| Trac concept | Redmine equivalent | Mapping status | What to confirm in your Trac instance |
|---|---|---|---|
| Tickets | Issues in a tracker within a project | Clean mapping | Ticket IDs, reporter, owner and creation dates you need to keep |
| Ticket type (defect, enhancement, task) | Tracker | Clean mapping | Whether each type maps to one tracker or several Trac types share one |
| Custom ticket fields | Custom fields on issues | Needs a decision | Field type, required flag and allowed values, since select lists must exist in Redmine first |
| Priority | Issue priority | Clean mapping | Priority names and order, which may need renaming to match Redmine defaults |
| Resolution values (fixed, invalid, wontfix, duplicate) | Closed statuses or a custom field | Needs a decision | Full list of resolutions in use, since Redmine has no native resolution field |
| Ticket status and workflow customizations | Statuses and workflow transitions per role and tracker | Needs a decision | Any custom workflow rules, actions or status changes Trac enforced that Redmine must reproduce |
| Milestones | Versions (shared or project-level) | Clean mapping | Milestone due dates, completed flags and whether milestones span several projects |
| Components | Categories | Clean mapping | Component owners, since Redmine categories can carry an assignee |
| Versions | Versions | Partial mapping | Whether Trac versions were separate from milestones, which may need a custom field or a second version set |
| Wiki pages | Wiki pages within a project | Needs a decision | Page hierarchy, page names, and any cross-page links that depend on Trac naming |
| Wiki markup (WikiFormatting) | Textile or Markdown, depending on the Redmine version and settings | Needs a decision | Which markup features your pages use, such as tables, macros and TracLinks, and how each will convert |
| Attachments | Attachments on issues and wiki pages | Clean mapping | Attachment size, file types and where files are stored on disk |
| Users and logins | Users with logins and email addresses | Needs a decision | Account names, duplicates and whether accounts were created from LDAP or a password file |
| Permissions (TRAC_ADMIN, ticket and wiki permissions) | Roles and permissions per project | Needs a decision | Which groups hold which Trac permissions, since Redmine roles must be designed separately |
| Ticket history and comments | Journals on issues | Partial mapping | Whether field changes are recorded in the Trac ticket change log and can be replayed |
Documented export and import paths for Trac data
Trac has no maintained path into Redmine, so the work is a choice between exporting Trac data in a form you can read and loading it through Redmine's API. Each option below trades fidelity against effort, and each needs a test on a copy before any production load.
Trac database export
Trac keeps tickets, milestones, component and wiki content in its own database, which is the most complete source of history. Read it directly with a query-level export rather than relying on the web interface, and record the Trac version and database engine. Check that ticket change history, attachments and custom ticket fields come out together, because a plain ticket table export leaves most of the history behind.
Trac reports and CSV export
Trac's ticket query and report pages can export results as CSV, which is quick for a small project but usually drops comments, attachments and full change history. Use it for a first look at field names, status values and owners, then decide whether the richer database export is needed. Treat CSV output as a schema reference, not as the migration source.
Redmine REST API for issues and users
The Redmine REST API covers issues, projects, users and time entries, and those resources are marked stable. An administrator must enable the API, and the script authenticates with HTTP basic authentication or a per-user API key sent as a parameter or the X-Redmine-API-Key header. Use a dedicated migration account with the permissions it needs, and confirm rate and payload limits on your server before a bulk run.
REST API docsObsolete built-in Trac importer
The Redmine migration wiki marks the built-in Trac importer as obsolete and not working, so do not plan a cutover around it. Confirm the status on the Redmine version you deploy, since the importer is not a supported route for current releases. Any plan that depends on it should be reworked before scheduling the migration window.
Migration wikiCommunity migration scripts
Third-party scripts for Trac are listed on the migration wiki but described as neither tested nor supported. Read the code, check which Trac and Redmine versions it was written for, and note which fields it maps and which it silently drops. Run any script against a restored copy of both systems, compare record counts and sample tickets, and keep the script under version control so the exact run is repeatable.
Validation before cutover
Whatever path you choose, validate the result against the Trac source before users depend on it. Compare ticket counts by status, milestone totals, owner and reporter names, timestamps on closed tickets, and a sample of wiki pages with their history. Write the checks down as a sign-off list so the decision to cut over rests on evidence rather than on a visual review.
How the Trac to Redmine cutover runs in phases
The sequence moves Trac history into Redmine in repeatable stages, so each import is tested, compared and signed off before anyone depends on the new system. It ends with Trac frozen as a read-only archive and no unverified data left behind.
Inventory Trac projects, tickets, milestones and wiki
List every Trac environment, component, ticket type, milestone, custom field, wiki space and attachment store, and record who owns each one. Count tickets and attachments per project and note any plugins or custom ticket workflows in use. The owner of each Trac project signs off the inventory, and the team knows what the migration must carry before any mapping starts.
Write the field and user mapping document
Map Trac components, milestones, priorities, resolutions, statuses and custom fields to Redmine projects, versions, trackers, statuses, issue categories and custom fields. Decide how Trac usernames map to Redmine accounts, including how inactive or shared accounts are handled, and how wiki page names and links will be rewritten. Reviewers from the project and security teams approve the document, which becomes the reference for every later test run.
Prepare the target Redmine and its upgrade baseline
Install the target Redmine on the release line your organization has chosen, and confirm it is on a supported line before loading data. Enable the REST API in administration, create a dedicated migration account with an API key, and set up the backup procedure so the database and files can be restored to a known state. The check is a successful backup and restore on the staging instance, recorded in the runbook.
Script the import into a staging Redmine
Write or adapt a script that reads a Trac export and creates Redmine projects, versions, issues, journals, attachments and wiki pages through the REST API. The script should record a mapping table of Trac IDs to Redmine IDs, skip and log records it cannot import, and be safe to rerun. Because the built-in Trac importer no longer works, the team owns this code, so it needs version control and a named maintainer. The run completes when the staging import log shows every record either created or listed with a reason.
Validate sampled tickets and fix the mapping
Pick a sample of tickets from each project, including closed tickets, long comment threads, attachments, duplicates and tickets with unusual statuses, and compare each one field by field with the Trac original. Check that dates, authors, assignees, comment order, links and wiki references survive the move. Each defect is traced back to a mapping rule or script change, and the sample is reviewed again. Validation is done when the agreed sample passes without open defects.
Repeat test runs until counts and samples agree
Run the full import from a fresh Trac export against a freshly restored staging Redmine, then compare record counts, mapping table totals and the validation sample each time. Keep the logs from every run so differences between runs are visible and explained. The team repeats runs until a complete pass produces the expected counts and no unexplained differences, and the migration owner records that run as the dress rehearsal for cutover.
Run a parallel period in both systems
Let a pilot group of teams work in Redmine on the staging data while Trac stays live, and have them check that the tickets they use every day look right. Teams note discrepancies in a shared log, and the migration owner decides whether each one needs a script fix, a mapping change or a process note. The parallel period closes when the pilot teams confirm the data and workflows are usable and the open discrepancy list is empty or accepted in writing.
Freeze Trac, run the final delta, and cut over
Announce a write freeze on Trac, export tickets, wiki pages and attachments changed since the last test run, and import the delta into the production Redmine using the proven script. Compare final counts with the frozen Trac export, point users and links to Redmine, and keep Trac online in read-only mode as the archive. The cutover is complete when counts match, the spot checks pass and users confirm access to Redmine.
Archive Trac and decommission it after review
Keep the read-only Trac archive, the mapping table and the import logs under a documented retention arrangement, and confirm who can still access them. After a review period set by your records policy, remove Trac from service and revoke its credentials and scheduled jobs. The decommission is recorded with the final export checksum, so the team can show the source data was retained and the move was verified.
What drives the effort and duration of a Trac migration
This table lists the factors that change how much work a Trac to Redmine move takes and whether each one adds to a one-time project cost or to recurring costs afterward. Use it to build your inventory before asking for a quote, because no duration is meaningful until the counts and rules below are known.
| Driver | Why it changes effort | Cost type | How to keep it down |
|---|---|---|---|
| Ticket and attachment volume | More tickets and larger attachments lengthen export, transfer, load and verification runs, and raise storage needs in Redmine. | One-time | Archive closed history you do not need, and agree in writing which attachments move. |
| Number of Trac projects and environments | Each Trac instance needs its own export, mapping and cutover decisions, and separate Redmine projects or instances need their own setup. | One-time | Consolidate related Trac instances into a defined project structure before scripting begins. |
| Custom ticket fields and workflow rules | Custom Trac fields and status rules must map to Redmine custom fields, trackers and workflows, which often needs decisions from the business owners. | One-time | Freeze the field list early and document which Trac values have no Redmine equivalent. |
| User identity matching | Trac usernames must match Redmine accounts, often through LDAP or email, and ambiguous or retired users need manual decisions. | One-time, plus recurring if accounts stay manual | Confirm the identity source with the client and agree a rule for unmatched users. |
| Wiki markup conversion | Trac wiki syntax differs from Redmine's text formatting, so pages and links need conversion and spot checks. | One-time | Limit conversion to pages that are still in use and sample the output for broken links. |
| History and timestamp fidelity | Keeping original authors, dates and change history requires custom scripting over the REST API, which the built-in importer no longer provides. | One-time | Decide early which history must be preserved as evidence and which can be summarized. |
| Validation rounds | Each round of comparison against Trac and fixes to the script adds review time from both teams. | One-time | Test on a copy first, and agree acceptance criteria before the first run. |
| Parallel run and cutover | Running Trac and Redmine side by side, or planning a freeze window, extends the project and may keep Trac hosting costs running. | One-time for the run, recurring for the old Trac host until it is retired | Set a retirement date for Trac and confirm who owns the hosting until then. |
How to map fields and users so history stays readable
Trac tickets carry a fixed set of fields such as type, status, priority, severity, component, milestone, version and resolution, plus any custom fields your Trac environment added. Redmine organizes the same information differently: a tracker defines the kind of issue, a workflow defines which statuses can follow which, and custom fields hold anything the core fields do not cover. Map each Trac field to exactly one destination before writing any script, and record the decision in the mapping file. Where Trac allowed a status transition that the Redmine workflow would block, decide whether the import sets the status directly or whether the workflow is widened for the migration.
- Ticket type to tracker: Decide whether each Trac type becomes a Redmine tracker or whether types are merged into fewer trackers.
- Status to status: Map each Trac status, including custom ones, to a Redmine status, and confirm the workflow allows the resulting state.
- Priority and severity: Usually map to Redmine priorities or a custom field, depending on whether your teams filter on them.
- Resolution: Carry resolution into a custom field or a closing note so closed tickets keep their reason.
- Unmapped fields: List every remaining Trac field and assign it a custom field or an explicit decision to drop it.
Check the mapping against a sample of tickets from each Trac type and status on a test instance before the full run.
Trac records reporters and owners as plain usernames, often without an email address or directory identity. Redmine ties every issue author and assignee to a user account, and those accounts carry roles, group membership and authentication settings. If accounts are created ad hoc during import, you will end up with duplicates, wrong permissions and history attached to the wrong people. Settle the account model first: whether accounts are created by hand, by the user importer, or synchronized from LDAP, and which authentication source each account uses.
- Matching rule: Write down how a Trac username maps to a Redmine login, such as an exact match, an email address lookup, or a manual table, and apply the same rule to every record.
- Ambiguous matches: Route names that match more than one person to a reviewer rather than guessing.
- Placeholder accounts: Create clearly named locked accounts for departed staff so their historical issues keep an author without granting access.
- LDAP sources: If Redmine authenticates against LDAP, confirm the directory entries exist before import so accounts are not created with the wrong source.
- Roles and groups: Assign roles to projects after the import, using the access model you approved, not during the data load.
Confirm with your identity owner which Trac usernames still exist in the directory and which should become placeholders.
Trac milestones are closest to Redmine versions, which group issues toward a target date and track completion. Trac components are a small list of ownership categories, which Redmine covers with categories within a project. The mapping matters because versions and categories are project-scoped in Redmine, so a component that spans several Trac projects may need to become a custom field or be duplicated per project. Decide these structures before the import creates them automatically, since auto-created versions and categories inherit whatever name the source carried.
- Milestone to version: Map each Trac milestone to a Redmine version in the right project, carrying the due date and the completed state.
- Component to category: Map each Trac component to a category, and decide how components shared across projects are handled.
- Naming: Normalize milestone and component names so near-duplicates from years of manual entry do not multiply.
- Version sharing: Decide whether versions are shared across projects, since this changes where a version appears.
- Empty or orphaned values: Decide what happens to tickets with no milestone or an unknown component.
Review the list of versions and categories per project with the project owners before the run, since removing them afterward affects issues already linked to them.
Teams often search for old ticket numbers in commits, emails and wiki links, so the migration should preserve the connection back to Trac. Redmine assigns its own sequential issue IDs, so the original Trac number will not match unless you plan for it. Store the original ticket number, original creation date and original reporter in a custom field or an initial journal note, and decide which of these are searchable. Dates need particular care because Redmine sets created and updated timestamps on import unless the process preserves them explicitly.
- Original ticket number: Store the Trac ID in a dedicated custom field so it can be filtered and searched.
- Original dates: Record the Trac creation and close dates in a custom field or a note, and confirm what Redmine timestamps show after import.
- Original reporter: Keep the Trac reporter name as text when no account exists, alongside the placeholder author.
- Cross-references: Plan how Trac ticket links in comments and wiki pages will be rewritten or noted.
- Commit references: Decide whether repository commit messages that cite Trac numbers are documented in the mapping file for later lookup.
Check a sample of migrated issues against the original Trac page to confirm the stored reference and dates are readable.
The mapping file is the record of every decision in this section: field destinations, status pairs, user matches, placeholder accounts, version and category lists, and the custom fields that preserve history. It should be produced before the script runs and approved in writing by the client, because each entry determines how the data will look to users for years. Treat it as a deliverable with a version number so changes after review are tracked and the import can be rerun from the same file. Ask who in your organization must sign off, typically the project owners for fields and statuses and the identity or security owner for accounts.
- Field and status table: Every Trac field and value mapped, with the destination and the reason.
- User table: Each Trac username with its Redmine login, match method, and any placeholder status.
- Version and category lists: Per project, with the source milestone or component.
- Custom field definitions: Names, formats and which items they hold, such as original ID and dates.
- Open decisions: A list of items still awaiting an owner, which must be empty before the import is scheduled.
Before approval, ask the vendor or your own team to confirm the Redmine version and plugins in the target environment, since they affect which custom fields and workflows are available.
What usually goes wrong in a Trac to Redmine move and how to prevent it
Most failed Trac to Redmine moves break in predictable places: history, links, people, files, scripts, workflows and fallback options. Each card below names one of these failure points and the check that catches it before users rely on the new tracker.
Lost history and changed timestamps
Imported tickets often show the migration date as the creation date, or drop the change log that explains who moved a ticket and when. Auditors and developers both rely on that history. Before cutover, compare the created and updated dates and journal entry counts for a sample of tickets on the copy against the original Trac database. Confirm with the import method whether original timestamps and comments can be written, or whether they are only stored as text in the description.
Broken links between tickets and wiki pages
Trac references such as ticket numbers and WikiCamelCase page links do not resolve in Redmine, which uses its own issue and wiki syntax. Teams then find dead references in release notes and design pages. Plan a rewrite pass for ticket and wiki references, run it on the copy, and crawl the migrated wiki to list every link that no longer resolves. Decide in advance whether old ticket numbers will be kept as custom field values so they can be searched.
User mismatches that misattribute work
Trac stores authors and owners as free-text usernames, which may not match Redmine accounts. A mismatch can assign work to the wrong person, or expose private comments to people who should not see them. Build an explicit user map, create or link accounts before the import, and review every username that falls through to an unmapped placeholder. Check that assignees and authors match on a sample of tickets, and confirm the default visibility of imported projects.
Attachments that fail to upload
Trac attachments live in a separate directory tree keyed by ticket, and large or unusual file types can fail during transfer or exceed Redmine's configured upload limits. Failed attachments often go unnoticed until someone needs a patch. Count the attachment files in Trac, count the attachments in Redmine after the import, and compare file sizes and checksums for a sample. Log every failure so it can be retried.
Untested community scripts
The Redmine migration wiki describes the third-party scripts for systems such as Jira and Bugzilla as neither tested nor supported, and the built-in Trac importer is marked obsolete and not working. Any script taken from a public repository for a Trac move carries the same risk. Read the code, run it against a copy of the Trac database, and keep the script under version control with its exact changes recorded. Treat its output as untrusted until reconciliation passes.
Migration optionsWorkflow prerequisites blocking imported statuses
Redmine enforces trackers, statuses and workflows for each role, so an imported ticket can carry a status that the target tracker does not allow or that a workflow rule makes unreachable. Trac statuses such as closed with a resolution must be mapped deliberately. Map every Trac status and resolution to a Redmine status before import, then test that users can move imported tickets forward using the roles they actually hold.
No rollback path after cutover
Teams that switch off Trac before validating the migration have no reliable way back when counts disagree or users report missing data. Keep the original Trac environment in read-only mode after cutover for an agreed period, take a dated backup of its database and attachments, and record the reconciliation results that justified the switch. The decision to retire Trac should depend on those records, not on the date of the import.
Questions teams ask before moving from Trac to Redmine
What does a Trac to Redmine migration cost?
The cost comes from the work, not the software, because Redmine is free under GPL v2 and has no paid edition. Expect payment for four areas: an analysis of your Trac tickets, milestones and wiki pages, the export and import script, the test runs on a copy, and the validation review by your people. Some costs are one-time, such as the migration itself. Others recur, such as hosting, plugins and upgrades after cutover. Cost rises with the number of projects, custom Trac fields, ticket history depth, wiki volume, attachments and how many reconciliation decisions your team needs to make. Ask any provider for a written scope that lists each of these items, the number of trial imports included, and what a re-run after a late finding costs.
How long does a Trac to Redmine migration take?
Duration depends on how much of your Trac data needs decisions, not on the import run itself, which is usually fast once the script is tested. The main drivers are the number of projects and milestones, how much custom ticket data needs mapping, how many users need to be matched to Redmine accounts, how much wiki content needs reformatting from Trac markup, and how quickly your validators can review the results. Each trial import on a copy of the data adds a cycle of checking. Ask for a plan that separates analysis, test imports, validation and cutover, and agree in writing which of these depends on your staff's availability.
What must our team provide for a Trac migration?
The migration needs read access to the Trac environment, including the database or a full export of tickets, milestones, wiki pages and attachments. Someone must hold the rights to run exports and to share attachment files, which may hold sensitive data. You also need a Redmine test instance with API access enabled by an administrator. Before work starts, your team must decide the mapping: which Trac components, milestones and custom fields become Redmine projects, versions, categories and custom fields, and how Trac statuses map to Redmine statuses. Name the people who will validate samples of tickets, history and wiki pages, and who signs off on cutover.
Can our in-house team migrate Trac to Redmine without a partner?
Yes, an in-house team can do this with the Redmine REST API and a tested script, because the built-in Trac importer is obsolete and not working, and the community scripts are unsupported. The team needs working knowledge of the REST API, including enabling it and authenticating with an API key, plus scripting skills to read Trac exports and write issues, versions and wiki pages in a repeatable way. It also needs Redmine administration skills for projects, trackers, roles and custom fields, and someone who understands Trac's ticket model well enough to spot lost history. Plan for repeated trial runs on a copy before any production import, and keep the script under version control so it can be rerun.
Should we keep Trac read-only after cutover?
Yes, keeping Trac in read-only mode for a defined period is usually the safer choice, so people can check history and attachments that did not map cleanly. Decide the read-only date and the retention period before cutover, and communicate them to every team. Make sure access controls are enforced at the server or the application level, because a read-only setting that users can bypass does not protect the data. Once the team has signed off and the retention period ends, archive the Trac database and files according to your records policy, and record where the archive is kept. Confirm the retention requirements with your compliance owner, since they depend on your sector and contracts.
Does the target Redmine version matter for the migration?
Yes, target the 7.0.x line for a new deployment, because it is the fully supported line that receives new features, bug fixes and security updates. The 6.1.x line receives only bug fixes and security updates, the 6.0.x line receives only important security updates, and 5.1.x and older are unsupported. Redmine 7.0 runs on Rails 8.1 and supports Ruby 3.2, 3.3, 3.4 and 4.0, so confirm your Ruby and database versions before the test instance is built. Your scripts should be tested against the exact version you will run in production. If your organization later needs to upgrade, the Redmine upgrade guide describes the steps, including database backup and running the plugin migrations.
How do we confirm the migrated history is complete?
Confirm completeness with a defined set of checks rather than a visual scan. Compare record counts for projects, tickets, milestones and wiki pages between Trac and Redmine, then sample tickets across each project and check that owners, statuses, dates, comments, attachments and custom field values match. Verify that the ticket timeline and change history were carried over as far as the mapping intends, and document any history that could not be represented. Named validators should sign off each sample set in writing before cutover. Keep the reconciliation report with the migration records, since it becomes evidence of how the data was moved.
How Trac data moves into Redmine through a mapped staging import
The flow starts with the Trac database or an export of it, which feeds an extraction and mapping layer that converts users, statuses, custom fields and wiki markup. A scripted import then writes through the Redmine REST API into a staging instance, where counts and sample records are checked against the source. Only after those checks pass and the mapping is approved does a delta load reach production Redmine, while Trac stays read-only throughout as the reference record.
Trac data flows through mapping and staging checks before any production load.
How DeployOpen scopes and delivers a Trac to Redmine migration
DeployOpen approaches a Trac to Redmine migration as a fixed-scope piece of work with written deliverables. We agree which tickets, milestones and wiki pages move, how each Trac field maps to Redmine, and how the result will be checked before any cutover date is set.
How we scope
- We inventory the Trac environment, including ticket counts, custom fields, milestones, components, versions and wiki page history.
- The written scope lists which projects, ticket ranges and wiki pages move, and which history is kept or left behind.
- We agree the field and user mapping tables with your team before any script is written against the Redmine API.
How we build
- We write a scripted import that uses the Redmine REST API, with the API enabled by an administrator on the target instance.
- We run the import against a copy of the Redmine instance first, then record every mapping decision and each exception it raises.
- We compare sample tickets, comments, attachments and wiki revisions between Trac and Redmine to confirm history was carried over correctly.
How we hand over
- You receive the import scripts, mapping tables, a log of skipped or altered records, and a validation report against the agreed scope.
- We document the cutover sequence, including how Trac is frozen, the final delta load and the checks run after go-live.
- Your team can rerun or extend the import later, and we explain which steps depend on the Redmine version you run.
How we support
- Engagements are fixed-scope, so changes to the mapping or scope are agreed in writing before further work starts.
- Post-cutover questions about imported history, custom fields or user accounts can be handled under a support arrangement.
- Ongoing support, upgrades and continuous testing are available as a retainer if your Redmine instance needs them after migration.

