Edgewall Software

Changes between Version 1 and Version 2 of TracMigrate


Ignore:
Timestamp:
Jun 8, 2007, 10:07:56 PM (15 years ago)
Author:
lmwangi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracMigrate

    v1 v2  
    1 = Trac Migration =
     1= Migration =
     2
     3I had to migrate a subversion and Trac enviroment between two machines; Different distributions. For svnsync, it is required to have both svn server versions >= 1.4.0
     4
     5== Subversion Replication ==
     6
     7* Create a repository on the new server
     8{{{
     9$ svnadmin create /var/spool/raid/svn_repo
     10}}}
     11
     12* Make sure the commit hooks are configured to allow our 'svnsync' user to do anything it wants.
     13{{{
     14$ echo "#!/bin/sh" > /var/spool/raid/svn_repo/hooks/pre-revprop-change
     15$  chmod +x /var/spool/raid/svn_repo/hooks/pre-revprop-change
     16}}}
     17
     18 * Set destination repo to version 0 ('''svnsync --opts dest_repo src_repo''')
     19{{{
     20$  svnsync --username svnsync  init file:///var/spool/raid/svn_repo/   svn+ssh://root@192.168.11.128/home/repos/projects/ 
     21Copied properties for revision 0.
     22}}}
     23
     24
     25 * Sync the repositories
     26{{{
     27$  svnsync --username=svnsync --non-interactive sync file:///var/spool/raid/svn_repo/
     28Committed revision 1.
     29Copied properties for revision 1.
     30Committed revision 2.
     31Copied properties for revision 2.
     32Committed revision 3.
     33Copied properties for revision 3.
     34Committed revision 4.
     35Copied properties for revision 4.
     36Committed revision 5.
     37Copied properties for revision 5.
     38Committed revision 6.
     39Copied properties for revision 6.
     40Committed revision 7.
     41.....
     42
     43}}}
     44 *  Done!!!
     45
     46== Trac Migration ==
    247[[TracGuideToc]]
    348
     
    3277}}}
    3378
    34 * Restart tracd or apache
     79 * Restart tracd or apache and have fun