Version 2 (modified by Jun Omae, 7 years 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 [download:tracmigrateplugin here].


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



Install the plugin:

For Trac 0.12.x and 1.0dev

Enable the plugin in trac.ini:

tracmigrate.* = enabled


$ trac-admin /var/trac/blah-sqlite migrate /var/trac/blah-psql postgres://tracuser:password@localhost/trac?schema=blah
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

17334 by jun66j5 on 2019-02-06 03:16:18
TracMigratePlugin: fix compatibility of unit tests with MySQL 8.0
15444 by jun66j5 on 2016-03-21 16:26:26
TracMigratePlugin: bump up the version and call setuptools.setup() only if run as a script
15443 by jun66j5 on 2016-03-21 11:12:39
TracMigratePlugin: fix not migrating tables when installed egg files in plugins directory (closes #12696)


Author: jun66j5
Maintainer: jun66j5