Posted on: 11/15/06 05:47pm
By: ::Ben
Hello everybody,
I'm wondering how to reset a demo site every hour like on http://demo.geeklog.net/
::Ben
How to reset a Demo Site?
Posted on: 11/15/06 07:55pm
By: jmucchiello
Probably with a cronjob task. The task should:
- swap out the current config.php for a dummy config.ph with the $_CONF['site_enabled'] flag set to false.
- Perform a database restore from whatever default state you want for the demo site. This default backup should located outside the geeklog normal backup directory.
- rm -r the geeklog directory and then restore the files from a known tar file.
- The tar file contains the working config.php with $_CONF['site_enabled'] = true (and hopefully you've made the tar file such that config.php is the last file copied)
And you are done. This all assumes you webhost allows such a cronjob to run.
How to reset a Demo Site?
Posted on: 11/16/06 01:56am
By: Dirk
How to reset a Demo Site?
Posted on: 11/16/06 02:39am
By: ::Ben
I have made a research but not with the good words.
Thank you for the answers.
::Ben