Edgewall Software

Changes between Initial Version and Version 1 of TracMigrate


Ignore:
Timestamp:
Jun 8, 2007, 9:58:58 PM (17 years ago)
Author:
anonymous
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracMigrate

    v1 v1  
     1= Trac Migration =
     2[[TracGuideToc]]
     3
     4 * Install a Trac enviroment on the destination machine
     5
     6 * On the source machine,  dump the sqlite db:
     7{{{
     8$ sqlite3 /path/to/trac/db/trac.db ".dump" >> sqlite_trac.sql
     9}}}
     10
     11 * Adjust the system table ('''sqlite_trac.sql''') to fix the repository_dir if it's different in the destination machine
     12{{{
     13 INSERT INTO "system" VALUES('repository_dir', 'svn:fc784ba1-7bb2-4f0b-9d6b-749d55304f83:/var/spool/raid/svn_repo');
     14}}}
     15 
     16 * Copy the db script to the destination machine
     17{{{
     18$ scp sqlite_trac.sql root@192.168.11.125:/root/
     19}}}
     20
     21 * Import the script into a db and copy it to the relevant folder
     22{{{
     23$ cat sqlite_trac.sql | sqlite3  trac.db
     24$ mv trac.db  /var/spool/raid/trac/db/trac.db
     25$ chown -R www-data /var/spool/raid/trac/db/trac.db
     26}}}
     27
     28 * Migrate any attachments that may exist
     29{{{
     30$ scp  /home/trac/attachments/wiki root@192.168.11.125:/var/spool/raid/trac/attachments/
     31$ chown -R www-data /var/spool/raid/trac/attachments/
     32}}}
     33
     34* Restart tracd or apache