Version 6 (modified by jun66j5, 6 months ago) (diff)


Migrate to new environment and another database


The plugin provides migrate command which migrates to new environment and another database for trac-admin.

Bugs/Feature Requests

Existing bugs and feature requests for TracMigratePlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from here.


You can check out TracMigratePlugin from here using Subversion, or browse the source with Trac.


  1. Install the plugin for Trac 0.12 or later.
  2. Enable the plugin in trac.ini of your source environment.
    tracmigrate.* = enabled


$ trac-admin /path/to/source-tracenv migrate /path/to/destination-tracenv postgres://tracuser:password@localhost/trac?schema=destination
Copying tables:
  attachment table... 10 records.
  auth_cookie table... 9 records.
  cache table... 11 records.
  component table... 5 records.
  enum table... 13 records.
  milestone table... 7 records.
  node_change table... 37 records.
  permission table... 17 records.
  report table... 11 records.
  repository table... 5 records.
  revision table... 35 records.
  session table... 2 records.
  session_attribute table... 19 records.
  ticket table... 35 records.
  ticket_change table... 110 records.
  ticket_custom table... 375 records.
  version table... 2 records.
  wiki table... 93 records.
Copying directories:
  attachments directory... done.
  htdocs directory... done.
  templates directory... done.
  plugins directory... done.


Recent Changes

[13809] by jun66j5 on 2014-04-03 07:51:11
tracmigrate: prevent AssertionError from PooledConnection.__del__ on Python interpreter's termination
[13808] by jun66j5 on 2014-04-03 07:48:22

tracmigrate: improved creating environment for robust migration because environment_created() of plugins might be untested and buggy

  1. create environment without plugins
  2. enable plugins
  3. upgrade environment
[13807] by jun66j5 on 2014-04-03 07:32:38
tracmigrate: fixed not copying tables after system if non inplace mode


Author: jun66j5
Maintainer: jun66j5