Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:32 pm EDT

Geeklog Forums

[Fixed] How to reset a Demo Site?


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello everybody,

I'm wondering how to reset a demo site every hour like on http://demo.geeklog.net/ Question

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Probably with a cronjob task. The task should:
  1. swap out the current config.php for a dummy config.ph with the $_CONF['site_enabled'] flag set to false.

  2. 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.

  3. rm -r the geeklog directory and then restore the files from a known tar file.

  4. 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.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Embarassed I have made a research but not with the good words.

Thank you for the answers.

::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 05:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content