1
bluenova
Script to revert database to previous copy

I'm thinking about making a module testing site, where people can come and test modules, on the user side and the admin side and once per hour the site would reset.

What I am looking for is a script that I can use with a cron job to drop the tables of the database and import the original .sql file that would be stored on the server.

Does anybody know of such a script, or be willing to put one together?

2
jdseymour
Re: Script to revert database to previous copy

See these two articles:

Regular Database Backup with Cron(updated)

And

MySQL Database Restore


The latter restore script can be run from cron. If you try it let me know how it works.

HTH.

3
davidl2
Re: Script to revert database to previous copy
  • 2005/6/25 11:11

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Now that is a very good idea indeed.... You would have to disable the job during installation of any new modules of course... but otherwise, this would be an excellent idea.

4
bluenova
Re: Script to revert database to previous copy

Thanks jdseymour, The restore script looks good, I'll let you know how I get on.

5
bluenova
Re: Script to revert database to previous copy

Ok, guys take a look, I want some feedback before I add this as a news item

http://xoopsmods.mmwebsites.com

6
jdseymour
Re: Script to revert database to previous copy

It looks like a great site for testing modules. Is the script for restore working correctly?

7
Bender
Re: Script to revert database to previous copy
  • 2005/6/25 22:43

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


While i have heard many people talking about setting up such a site for XOOPS no one has as of yet ... so good someone finally does

However some modules will need updating i think.
(e.g. WF-Links and WF-Channel)
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

8
wcrwcr
Re: Script to revert database to previous copy
  • 2005/6/26 0:11

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi bluenova

What a nice idea indeed and great collection

That?s a must for people interested in trying modules.
Go ahead with that nice project.

We?re trying to do almost the same thing here:

http://www.xoops.net.br

I liked your idea very much.

thanks


Btw> some modules are giving us blankpages: wakka, galeria, lykos_syndication.....but i know that you?re still tweaking the whole site

9
bluenova
Re: Script to revert database to previous copy

Quote:
Is the script for restore working correctly?


Yep, it works perfectly, every hour the databse resets to the original

Quote:
However some modules will need updating i think.
(e.g. WF-Links and WF-Channel)


Thanks, let me know if you spot any others

Quote:
some modules are giving us blankpages: wakka, galeria, lykos_syndication


Yea I spotted a couple of others as well, I'll take a look at them today.


Thanks for the support guys!

10
davidl2
Re: Script to revert database to previous copy
  • 2005/6/26 11:23

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Excellent idea - may be worth adding some dummy data to the forum and a couple of the other modules.

Great work however!

Login

Who's Online

446 user(s) are online (341 user(s) are browsing Support Forums)


Members: 0


Guests: 446


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits