I am thinking of having the following setup for my site:
The main URL: www.mysite.com
Two sub-directories under the main public_html:
1) prod - the Drupal installation these pointing to a database "prod"
2) backup - the Drupal installation these pointing to a database "prod"
I can have even more, e.g. "dev", "test", but for simplicity let's assume I have only those two above.
Most of the time I would like www.mysite.com to be redirected to www.mysite.com/prod. I will take a daily snapshort of both "prod" directory and "prod" database and load them into the respective "backup" directory and database. If somethig happens to the main site or I want to test a new feature before going online, I want to be able to quickly switch over to www.mysite.com/prod - all transparently to the user.
What is the easiest way of doing this? Also is that the best practice of maintaining a typical site?
Comments
Up!
Up!