Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've recently reinstalled my Debian server but forgot to backup mysql databases which were in folder /var/lib/mysql.

I need to recover them and tried to use PhotoRec but I can't find the mysql databases there. I have shutdown my server for the moment so it doesn't deteriorate the recovering process.

Is there any better way to do that, perhaps something with more chance of success?

Thank you so much!!

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You were correct to power off your system. Your best bet is to boot from a rescue disk, such as SystemRescueCD, and try to recover the files using file recovery utilities. SystemRescueCD comes installed with PhotoRec and TestDisk. The extundelete utility is also worth a try. While it does not come installed on SystemRescueCD, you could install it onto removable media or customize into SystemRescueCD.

share|improve this answer
    
Thank you! I will give it a shot, however I don't have physical access to that server so I can't use a rescue disk. Does extundelete work without a rescue disk? –  leadgy Apr 30 '12 at 14:16
    
Yes, extundelete will work without being run from a rescue disk. –  uther Apr 30 '12 at 17:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.