*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
...
The scripts we use assume a directory layout like this
- libweb
- sites
\[domain name\]Wiki Markup - htdocs
\[ Drupal site is here \ ]Wiki Markup - sites
- default *
- settings.php
files \files [for Drupal 6 and 'public files' for Drupal 7 \ ]Wiki Markup - backup_migrate
- default *
- make (this is only on the test server)
- unmigrated-wiki-markup
- \[domain name\]
\[domain name\].makeWiki Markup
- \[domain name\]
drupal_files \files [private files for Drupal 7 \ ]Wiki Markup - backup_migrate
- htdocs
- sites
and assume there is a [drush alias|http://eporama.com/ramblings/drush-aliases] set up for the site called @\[domain name\] alias set up for the site called @[domain name] .Wiki Markup
* it does not work with a domain name here!
...
- do a subversion checkout of https://svn.library.cornell.edu/cul-drupalunmigrated-wiki-markup
- find your make file under cul-drupal/\[drupal_6 or drupal_7\]/make/\[your site name\]/\[your site name\].make
- add lines or modify the version of the module listed according to the drush make file format (use other sites for examples)
- check in the changed version
How to rebuild your site
go to victoria02 and cd cd /libweb/sites/\[your site name\]/makeunmigrated-wiki-markupWiki Markup - sudo dr-make.sh @\[your site name\]
unmigrated-wiki-markupPanel Note: the alias argument @\[your site name\] is no longer necessary for dr-make.sh
How to update your theme/module code on the site
- make changes on your copy and check them in to svn
go to victoria02 and cd cd /libweb/sites/\[your site name\]/htdocs/sites/all/\[modules or themes\]/\[your code's name\]Wiki Markup - svn up
How to work with your custom themes/modules
...
- Log on to the production Drupal site and configure the 'Site under maintenance' block
- Under 'Page specific visibility settings' select 'Show on every page except the listed pages.'
- Make a backup of the production site to the Manual Backups Directory (using Backup and Migrate module)
- Drupal 6: http://$productiondomain/admin/content/backup_migrate/export
- Drupal 7: http://$productiondomain/admin/config/system/backup_migrate
- Log on to the test Drupal site
- Put the test site into maintenance mode
- Drupal 6: http://$testdomain/admin/settings/site-maintenance
- Drupal 7: http://$testdomain/admin/config/development/maintenance
go to victoria02 and cd cd /libweb/sites/\[your site name\]/makeWiki Markup - Determine what machine the production site is on
- victoria03 - www.library.cornell.edu, beta.library.cornell.edu
- unmigrated-wiki-markup
- sudo update_test_from_victoria03.sh \sh [your production site domain\] \ [your test site domain\]
- victoria02 - all the others
sudo update_test_from_production.sh \sh [your production site domain\] \ [your test site domain\]Wiki Markup
- the script will ask you if you completed each of the steps above and give you all the real paths to the pages you need to use
- the script moves the site with rsync
- victoria03 - www.library.cornell.edu, beta.library.cornell.edu
- Log on to the test Drupal site
- Restore the latest backup
- Drupal 6: http://$testdomain/admin/content/backup_migrate/destination/list/files/manual
- Drupal 7: http://$testdomain/admin/config/system/backup_migrate/destination/list/files/manual
- click 'restore' next to the latest version of the file (hint: sort by file name!)
- take the test site out of maintenance mode
...
- Log on to the test Drupal site
- Make a backup of the test site to the Manual Backups Directory (using Backup and Migrate module)
- Log on to the production Drupal site
- Put the production site into maintenance mode
- Determine which machine the production site is on
- victoria03 - www.library.cornell.edu, beta.library.cornell.edu
- unmigrated-wiki-markup
- ssh to the production machine victoria03 and cd cd /libweb/sites/\[your site name\]/make unmigrated-wiki-markupmake
- sudo update_victoria03_from_test.sh \sh [your test domain\] \ [your production domain\]
- victoria01 - all the others
ssh to the production machine victoria01 and cd cd /libweb/sites/\[your site name\]/make makeWiki Markup - sudo
sudo update_production_from_test.sh \sh [your test domain\] \ [your production domain\]Wiki Markup
- victoria03 - www.library.cornell.edu, beta.library.cornell.edu
- the script will ask you if you've done each step and give you all the proper paths
- restore the latest backup
- configure the 'site under maintenance' block
- Under 'Page specific visibility settings' select 'Show on only the listed pages'