wiki:TracMigratePlugin

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

New hack TracMigratePlugin, created by jun66j5

Migrate to new environment and another database

Description

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

Download the zipped source from [download:tracmigrateplugin here].

Source

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

Example

Install

Install the plugin:

For Trac 0.12.x and 1.0dev
easy_install http://trac-hacks.org/svn/tracmigrateplugin/0.12

Enable the plugin in trac.ini:

[components]
tracmigrate.* = enabled

Examples

$ 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

18447 by jun66j5 on 2021-09-30 23:43:37
TracMigratePlugin: fix ImportError with Trac 1.4.x (closes #14054)
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 setup.py as a script
(more)

Author/Contributors

Author: jun66j5
Maintainer: jun66j5
Contributors: