Changes between Version 14 and Version 15 of MigrationCommands
- Timestamp:
- 07/06/09 00:21:35 (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MigrationCommands
v14 v15 2 2 3 3 I plan on detailing the list of commands that will be used for the migration. 4 5 We need to put up the maintenance page. This will be best done by adding Rewrite rules to the apache vhost config. 4 6 5 7 Make a directory in my home dir that is world writable. This is where we will dump the dbs to. 67 69 }}} 68 70 71 With 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 74 for repo in * 75 do 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 81 done 82 }}} 83 69 84 Also, 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. 70 85 {{{ 73 88 }}} 74 89 90 The 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 }}} 75 95 96 As 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. 97 This should be executed from /data/trac/sites 98 {{{ 99 #!/bin/bash 100 for tracenv in * 101 do 102 trac-admin /data/trac/sites/$tracenv upgrade --no-backup 103 done 76 104 }}}

