Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to move from production to test

  • log in to victoria02
  • grab the new scripts from github
  • cd ~/drupal-site-moves
  • git pull
  • ./pull_from_production.sh <production site name> <test site name>
  • you are prompted for your password
  • you are asked to confirm the site move
  • you are asked to inform the site users that you are working on the site on the test server
    • put up the 'Site Under Maintenance' block
  • script continues on without requiring any input from you
    • backs up the database
    • moves the site files to the target server
    • installs the backed up database on the target server
  • done

 

Panel

There is a script for this on victoria02: /usr/local/bin/update_test_from_production.sh

There is also one for moving from victoria03: /usr/local/bin/update_test_from_victoria03.sh

**************************************

Usage: sudo /usr/local/bin/update_test_from_production.sh <production domain> <test domain>

**************************************

...

How to move from test to production

  • log in to victoria01 or victoria03
  • grab the new scripts from github
  • cd ~/drupal-site-moves
  • git pull
  • ./pull_from_test.sh <test site name> <production site name>
  • you are prompted for your password
  • you are asked to confirm the site move
  • you are asked to confirm again
    • you can take down the 'Site Under Maintenance' block while the site is still on the test server
  • script continues on without requiring any input from you
    • backs up the database
    • moves the site files to the target server
    • installs the backed up database on the target server
  • done

 


Panel

There is a script for this on victoria01: /usr/local/bin/update_production_from_test.sh

There is also one on victoria03 to update production there: /usr/local/bin/update_victoria03_from_test.sh

**************************************

Usage: sudo /usr/local/bin/update_production_from_test.sh <test domain> <production domain>

**************************************

...