| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | |
| 3 | = Migrate to new environment and another database = |
| 4 | |
| 5 | == Description == |
| 6 | |
| 7 | The plugin provides `migrate` command which migrates to new environment and another database for `trac-admin`. |
| 8 | |
| 9 | == Bugs/Feature Requests == |
| 10 | |
| 11 | Existing bugs and feature requests for TracMigratePlugin are |
| 12 | [report:9?COMPONENT=TracMigratePlugin here]. |
| 13 | |
| 14 | If you have any issues, create a |
| 15 | [http://trac-hacks.org/newticket?component=TracMigratePlugin&owner=jun66j5 new ticket]. |
| 16 | |
| 17 | == Download == |
| 18 | |
| 19 | Download the zipped source from [download:tracmigrateplugin here]. |
| 20 | |
| 21 | == Source == |
| 22 | |
| 23 | You can check out TracMigratePlugin from [http://trac-hacks.org/svn/tracmigrateplugin here] using Subversion, or [source:tracmigrateplugin browse the source] with Trac. |
| 24 | |
| 25 | == Example == |
| 26 | |
| 27 | == Install == |
| 28 | |
| 29 | Install the plugin: |
| 30 | |
| 31 | For Trac 0.12.x and 1.0dev:: `easy_install http://trac-hacks.org/svn/tracmigrateplugin/0.12` |
| 32 | |
| 33 | Enable the plugin in trac.ini: |
| 34 | {{{ |
| 35 | [components] |
| 36 | tracmigrate.* = enabled |
| 37 | }}} |
| 38 | |
| 39 | == Examples == |
| 40 | |
| 41 | {{{ |
| 42 | $ trac-admin /var/trac/blah-sqlite migrate /var/trac/blah-psql postgres://tracuser:password@localhost/trac?schema=blah |
| 43 | Copying tables: |
| 44 | attachment table... done. |
| 45 | auth_cookie table... done. |
| 46 | cache table... done. |
| 47 | component table... done. |
| 48 | enum table... done. |
| 49 | milestone table... done. |
| 50 | node_change table... done. |
| 51 | permission table... done. |
| 52 | report table... done. |
| 53 | repository table... done. |
| 54 | revision table... done. |
| 55 | session table... done. |
| 56 | session_attribute table... done. |
| 57 | ticket table... done. |
| 58 | ticket_change table... done. |
| 59 | ticket_custom table... done. |
| 60 | version table... done. |
| 61 | wiki table... done. |
| 62 | Copying directories: |
| 63 | attachments/ directory... done. |
| 64 | htdocs/ directory... done. |
| 65 | templates/ directory... done. |
| 66 | plugins/ directory... done. |
| 67 | }}} |
| 68 | |
| 69 | |
| 70 | == Recent Changes == |
| 71 | |
| 72 | [[ChangeLog(tracmigrateplugin, 3)]] |
| 73 | |
| 74 | == Author/Contributors == |
| 75 | |
| 76 | '''Author:''' [wiki:jun66j5] [[BR]] |
| 77 | '''Maintainer:''' [wiki:jun66j5] [[BR]] |
| 78 | '''Contributors:''' |