jetrost's picture

Manual mediawiki database rescue

I'm using turnkey mediawiki 1.15.1. I tried installing an extension, and it ran a script which created a blank folder in the mediawiki/extensions directory. The blank folder (it had no name) did not seem to do anything, so I deleted it. Afterwards, when accessing my wiki, it brought me to the "Please set up the wiki first" page. I checked the mediawiki directory, and the mediawiki/extensions folder was no longer in existence. Apparently, when I deleted the blank folder, it had deleted the entire mediawiki/extensions directory and all of its contents. 

This is the point at which I wish there was an "Undo delete" button or a "Recycle Bin" which I could resurrect the deleted directory from, since whatever I did caused my wiki (and all of the articles in it) to be inaccessible. Now, I am trying to find a way to salvage at least the articles somehow.

I had not created a backup or snapshot of the virtual machine or wiki when this incident occurred. Is there any way I can manually get the database files that contain my articles and move them to an unbroken installation? Or any other way I could salvage my information? 

Forum: 
Tags: