Changes between Version 14 and Version 15 of MigrationCommands

Show
Ignore:
Author:
gallardj (IP: 24.20.58.176)
Timestamp:
07/06/09 00:21:35 (5 months ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MigrationCommands

    v14 v15  
    22 
    33I plan on detailing the list of commands that will be used for the migration. 
     4 
     5We need to put up the maintenance page. This will be best done by adding Rewrite rules to the apache vhost config. 
    46 
    57Make a directory in my home dir that is world writable. This is where we will dump the dbs to. 
    6769}}} 
    6870 
     71With the changes we have made to hooks, we need to update all of the current projects with our new SVN hooks. The following script should do this perfectly. 
     72{{{ 
     73#!/bin/bash 
     74for repo in * 
     75do 
     76        if [ -d $repo ]; then 
     77                sed -i -e 's/\/data/\/usr\/bin\/python \/data/' $repo/hooks/start-commit 
     78                sed -i -e 's/\/data/\/usr\/bin\/python \/data/' $repo/hooks/pre-commit 
     79                sed -i -e 's/\/data/\/usr\/bin\/python \/data/' $repo/hooks/post-commit 
     80        fi 
     81done 
     82}}} 
     83 
    6984Also, we need to copy all of the data(profile images, icons, files, rss feeds, etc.) for Elgg to the new server. This should take around 30 seconds. 
    7085{{{ 
    7388}}} 
    7489 
     90The last thing we need to copy over from the old box is all of the Trac environments. This should take about 30 seconds as well.Do this with the following command. 
     91{{{ 
     92$ cd /data/trac/sites 
     93$ scp -r gallardj@beaversource.oregonstate.edu:/data/trac/* . 
     94}}} 
    7595 
     96As we are upgrading from 0.10.4 to 0.10.5 with the migration, we need to run trac-upgrade on all of the trac repos. We can do this with the following script very easily. 
     97This should be executed from /data/trac/sites 
     98{{{ 
     99#!/bin/bash 
     100for tracenv in * 
     101do 
     102        trac-admin /data/trac/sites/$tracenv upgrade --no-backup 
     103done 
    76104}}}