The goal is to create a demonstration site that is automatically restored to its initial state every so often. Restoration is done automatically, without any manual intervention.
How?
Work in progress
Contributions welcome!
Goal
The goal is to create a demonstration site that is automatically restored to its initial state every so often. Restoration is done automatically, without any manual intervention.
Assumptions
- *nix on the server.
- Command shell access.
- MySQL
- Permission to run cron.
- Patience, and a sense of humor. Not essential, but they help.
Background
There are two chunks o' data in a Drupal installation: (1) files, and (2) the database.
Files
A typical Drupal site has thousands of files. Here's how they are arranged:
|-- anon_ftp
|-- cgi-bin
|-- public_html >>> SITE ROOT (http://dogsrock.com)
| |-- .gitignore >>> HIDDEN FILE
| |-- .htaccess
...
| |-- sites
| | |-- all
| | | |-- libraries
...
| | | |-- modules
...
| | | |-- themes
...
| | |-- default
| | | |-- settings.php >>> DATABASE CONNECTION INFO
| | | |-- files >>> PUBLIC FILES
| | | | |-- .htaccess
...
| |-- themes
...
|-- drupal_private >>> PRIVATE FILES
| |-- .htaccess >>> ANOTHER HIDDEN FILE
...