This forum is no longer active. Please post your questions to our new community site

Forums MediaWiki

Restoring MediaWiki-Stack

Subscribe to Restoring MediaWiki-Stack 3 post(s), 3 voice(s)

 
Avatar BittyBlocker 1 post

Is it possible to restore the complete mediawiki just from a copy of all files which have been installed on d:?
After I got a new image on my c-drive, my path to my mediawiki has been lost.
A new installation and copying the old files into the new path did not work.
I would like to know if there is a way to restore it from these files or if it is only possible by using mysqldump.exe.
I had this problem before, because I changed my laptop, but I did a dump before. This time I did not save the old database before I got a new image on c, because I installed the wiki on the seperate drive on d:.
Any suggestions?

 
Avatar eesutton 18 post(s)

Beware the stack and app start scripts have hard coded 8.3 paths. This can cause problems. Just copying your old folder backup to a new location may not work.

Your path may have been C:\Program Files\Bitnami Wampstack\. During install, bitnami creates the start and install service scripts, using the old-school DOS bat compatible 8.3 path which might be something like C:\PROGRA~1\BITNAM~1\. I really wish they would have set an environment variable in the batch files which would have made it easy, for example, to change STACKROOT=D:\PROG~1\BITNAM~1\ and all would be good.

Anyway, you might be able to locate the WAMP stack batch files in C:\Program Files\Bitnami Wampstack\, and the batch files they call in turn, then replace all paths with your D: drive 8.3 equivalent path. I think “dir /x” will display the 8.3 name. Also inspect the /apps/mediawiki/htdocs/LocalSettings.php for any C: drive paths that may need replacing. As for myself, I have moved to the LAMP stack. Windows is too hard to maintain.

Once you recover ( I just wasted 4 days on recovering), schedule a task that does a mysqldump and a second mysqldump of bitnami_mediawiki with the -xml option. Also, if you allow Wiki uploading of images and files by the end users, you will need a backup of the htdocs folder to restore them.

Hope this helps,

-Ed

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Nice post, thanks Ed.

Forums MediaWiki