snake82 Posted March 7, 2006 Share Posted March 7, 2006 I was wondering if it's possible to create a script for phpbb that resets the database every 24 hours and only keeps 2 users that I specify and all changes to the forum since the original backup are deleted? If so how would I do this? All help is appreciated! Regards snake82 Quote Link to comment https://forums.phpfreaks.com/topic/4349-phpbb/ Share on other sites More sharing options...
obsidian Posted March 7, 2006 Share Posted March 7, 2006 [!--quoteo(post=352565:date=Mar 7 2006, 01:21 PM:name=snake82)--][div class=\'quotetop\']QUOTE(snake82 @ Mar 7 2006, 01:21 PM) [snapback]352565[/snapback][/div][div class=\'quotemain\'][!--quotec--]I was wondering if it's possible to create a script for phpbb that resets the database every 24 hours and only keeps 2 users that I specify and all changes to the forum since the original backup are deleted? If so how would I do this? All help is appreciated! Regards snake82[/quote]it's [i]possible[/i] to do just about whatever you can imagine ;-). what you'll need to question is what will be feasable to run? i don't have time to delve into the workings of phpBB with you at the moment, but i would recommend running something like this:create your active DBcreate your backup DBwhen you run your cron job to restore the backup, just TRUNCATE all your tables in the active copythen, do a SELECT INTO from your backup to your active DBhope this helps give you some direction.also, i'm moving this to the 3rd party scripts section.good luck! Quote Link to comment https://forums.phpfreaks.com/topic/4349-phpbb/#findComment-15114 Share on other sites More sharing options...
Brenty Posted March 13, 2006 Share Posted March 13, 2006 I'm guessing that auto-cropping doesn't go far enough, and that you need to delete users as well? Perhaps another way to approach this would be to set auto-cropping, and have some auto-crop users MOD created as well. Quote Link to comment https://forums.phpfreaks.com/topic/4349-phpbb/#findComment-16844 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.