Migration best option

Re: Migration best option

by Nathan Bruley -
Number of replies: 0

This is my basic upgrade process, as it stands now, with code removed due to forum restrictions

    [Moodle reference: http://docs.moodle.org/26/en/Upgrading]
    Verify which version to upgrade to. Generally one version before than the latest.
        Verify all addons are compatible with this version
    Delete Moodle-old folder, which contains files from before the last upgrade. This will be replaced with backup files before the new upgrade.
    Migrate moodle
        rsync data from production to test
            ** Use trailing slash on source to eliminate subdirectory creation
            rsync with exclude option moodle folder, moodle data folder
        mysqldump from production to test
        change config.php to be wwwroot = 'http://10.0.3.102/moodle'
            ftp to \var\www\moodle\config.php
        search and replace links
            http://10.0.3.102/moodle/admin/tool/replace/index.php
            search for:
            iaccess2/moodle
            replace with:
            10.0.3.102/moodle
            check BOTH boxes and submit
        search and replace menu url with test url (admin - appearance - settings)

    remove email functionality from test
        http://10.0.3.102/moodle/admin/message.php > click eye next to email
            OR log in as admin > site administration > plugins > message outputs > Email > SMTP hosts > delete IP
    change background color to designate test site
        site admin > appearance > aardvark > custom css > paste:
            html, body { background-color: #FFE0F9 }

    Upgrade test site
        [http://docs.moodle.org/23/en/Moodle_migration]
        download update
        update custom changes made to Moodle root files
        copy Moodle/theme/Aardvark folder from server to new Moodle download
        Copy www/moodle/config.php to the new Moodle download.
        Copy custom plugins from server to downloaded update with proper version of the plugin
            check for plugin/theme updates
                admin - notifications
            copy plugin code to appropriate location and update will happen with upgrade
                ** Do not ever overwrite code, replace the plugin with a totally new folder
            [Custom Plugins List]
        Delete www/moodle folder on test server
        Copy new www/moodle folder to test server
        Go to Settings > Site administration > Notifications
        Complete checks and upgrade
    compare config-dist.php with old config.php and add any desired items that might be helpful
    Make modifications to test site for any additional custom file changes necessary, after upgrade is successful
    Do simple checks to verify test site works properly - see test before upgrade section
    Post that will be down, include link to backup site
    delete moodle-old folder on production server
    Take snapshot of production server
    copy moodle folder for upgrade to moodle-new folder on production server via ftp
    ?? Remove ability for people to change test server
    Upgrade production iAccess
        Winnosent post reminder that will be down 5 min before upgrade
        Set maintenance mode
            Administration > Site administration > Server > Maintenance mode
            change time for getting back up
            http://10.0.3.102/moodle/ should already be there as a link to backup site
        rename moodle folder to moodle-old
        rename moodle-new folder to moodle
        Move document folders from moodle-old to moodle
        Do checks to verify proper functionality
        Turn off maintenance mode
        Post that upgrade is complete and to let us know of any issues
        change moodle/config.php on test server to auto-redirect to production server
            CFG->wwwroot   = 'http://iaccess2/moodle';

Average of ratings: Useful (1)