database

Drupal reset script

I needed a script to use with Drupal CVS HEAD during the testing and patch review process that deletes all the current database tables and starts a fresh re-install. There's maybe a better solution out there, but this works for me right now. Below is the code in the 'reset.php' file in the root of my Drupal install. I've also included an archive of the reset.php and developer profile that automates the whole process. Just extract the contents in the root of your Drupal directory, and go to 'http://yourdrupalpath/reset.php'.

WARNING: This deletes your current database tables and should not be used on any kind of site that you value your data. This has only been tested on a Drupal 7 (CVS HEAD) install.

Who Needs Backups When You Have Wayback Machine Memory?

So when I finally started to update this site, I accidentally deleted the database with all my posts. After trying to locate backups of any kind (I know... tsk tsk), searching through Technorati and Google caches to no avail, I found my new best friend: Internet Wayback Machine results for davereid.net. Behold, nearly every single page I've had on this domain since November 2005! Not sure I'll be able to recreate comments though, but I'm so happy right now I could cry.

HAH! As a special bonus, I found my first hand-coded blog from davereid.org.

And don't forget, back up your databases regularly.

Syndicate content