Version 1 (modified by Jun Omae, 6 years ago) (diff)

New hack TracMigratePlugin, created by jun66j5

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... done.
  auth_cookie table... done.
  cache table... done.
  component table... done.
  enum table... done.
  milestone table... done.
  node_change table... done.
  permission table... done.
  report table... done.
  repository table... done.
  revision table... done.
  session table... done.
  session_attribute table... done.
  ticket table... done.
  ticket_change table... done.
  ticket_custom table... done.
  version table... done.
  wiki table... done.
Copying directories:
  attachments/ directory... done.
  htdocs/ directory... done.
  templates/ directory... done.
  plugins/ directory... done.

Recent Changes

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)
15436 by jun66j5 on 2016-03-15 07:51:08
TracMigratePlugin: fix not migrating all options in [trac] section (refs #12697)


Author: jun66j5
Maintainer: jun66j5