Search Engines To The Rescue

Monday 12th December 2005 06:21:13 PM

I made a huge mess-up on Saturday night in terms of this blog. I was on the internet and had just typed up and posted the crazy nutter entry. It was around 9pm when my bro came in telling me Amir Khan is on the telly, around this time I was fiddling about in the database that is used for this blog. I meant to empty the table which tells me all the creepy crawlies that have visited my blog instead I emptied the table that stores all the posts! The scary thing is I didn't even realise what I'd done and went to plump myself infront of the telly to watch Amir Khan punch the hell out of his opponent.

After a quick two rounds Amir had done his damage, that's when I returned to my laptop and loaded up my blog. "This blog contains no posts" said the text on my main page, and when I loaded a post it said "This post cannot be found". Eh what's all this? I was thinking maybe the host took the database down for an upgrade because he did say he was going to do this. Then I logged into my database and found that all the other tables had data in them, this is when I realised what I'd done.

Aaargh! I couldn't believe I didn't keep any backups, all my posts since the beginning of my blogs existence had disappeared. Man, I was sooo vexed. I was going to pack it all in since I didn't have any posts, and leave the domain and hosting to expire.
I asked my host if by any sheer chance he had a backup of that particular table, the answer was no.

Luckily enough, I remembered the cache function that search engines have. So I hopped over to google and typed in site:www.toseef.com which showed all the entries google had of this blog. By clicking on the cache link you can see what the page looked like when a search engine visited your site. Here is an example of the main page in the google cache.

Using the google cache I managed to retrieve 90% of my posts and the other 10% msn did the trick. I spent a few hours looking at the source code and entering the date and time in timestamp format (which was a pain).

There were a few glitches in the code after I had entered all my posts into the table. Before the posts were ordered by their id no, but now the posts were not in the same order and because of that I got weird results. I got around this problem by ordering the posts by their date, and now the problem is solved.

I'm not going to risk anything like this ever again so I have a created a backup system for the comments table, which will auto update when a comment is left. The posts on the other hand I will have to manually backup as I do not have a system in place yet.

So here we are, everything is working perfecto thanks to search engines rescuing my butt.

Posted by Piniyini in Search Engines

<< Crazy Nutter   Toseef's Blog   PC Mag Sales Call >>

post comments feed6 comments       Ctrl + Enter to comment
Thu 15th Dec 05 04:05:59 PM 1 Lever

Dude, that was SO lucky. I know what ya mean about having to hack the source code though - it's especially annoying when there's tons of formatting, images, links etc... which is why I back up my blog every month... must go do it now, thinking about it. TF for Google and MSN caching :)

Sat 17th Dec 05 12:13:21 AM 2 Shaima

if only i knew how to backup my files.. but that was a real smart thing u did. updating everything again must have been a real pain but im sure its better than losing everything.

Sat 17th Dec 05 03:14:56 AM 3 No One You Know

Challoo!! hehehe

Smart thinking babe!! Hmmm... perhaps I should start backing up mine. If i lost the posts I'd be lazy and just tell everyone "Y'all already read it, so move on, get over it!!" lol

Sat 17th Dec 05 08:25:15 AM 4 Shaima

P.S- I never knew you had a brother (?!)

Mon 19th Dec 05 10:23:08 AM 5 Hasan Mubarak

As Shaima said it earlier, it was so smart of you to recover that stuff the other way....

And I could have died if that happened to me!

Tue 20th Dec 05 07:32:55 PM 6 Dan

reminds me.. (this is during the early napster days) I managed to create a library of my best music (over 3000 mp3s), spent a week sorting them into various categories, renamed all of them, and then soon after accidentaly deleted the whole lot.

Felt like something died inside me, the only time i seriously considered killing meself :(

<< Crazy Nutter   Toseef's Blog   PC Mag Sales Call >>
Post a comment   Track comments
Search

Feeds (Subscribe via Google Reader)
blog posts feed Blog Posts
recent comments feed Recent Comments

Archives
July 2008
May 2008
April 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
September 2004
August 2004

Recent Comments
Check out my Blog Roll
/Search Engines

Says thanks to the following poeple for recently leaving a comment ...

Sami
Wally1973
Mari
Thebrowngirl
Debbie
Sally Feser
Specs
No One
Sobi
Akanksha
Amir
Lost Bedouin
Piniyini
Ash
Smee