Urgent: Server hacked how to recover sql db

Discussion in 'Security' started by muhabbatain, Jan 19, 2010.

  1. #1
    Hi,

    I have a linux server. Someone hacked the server and has deleted all the files. I have backup of the php scripts but do not have mysql database backup. How can I recover deleted sql database?
     
    muhabbatain, Jan 19, 2010 IP
  2. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    maybe your hosting provider have backup from your site and your database. send one email and ask them. if the they don't have backup then you are in trouble...

    Rudolf
     
    Rudolf Bodocsi, Jan 19, 2010 IP
  3. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Its a self managed dedicated server. and i have no backup :(
     
    muhabbatain, Jan 19, 2010 IP
  4. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    I'm afraid you can restore your database :(. In future you need setup minimum daily complete backup on your server. I can help you to write one backup script for your server.

    Rudolf
     
    Rudolf Bodocsi, Jan 19, 2010 IP
  5. sahabcse

    sahabcse Well-Known Member

    Messages:
    272
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Check in your /var/lib/mysql dir to see if there still is your database directory... if it's not there anymore, then no hope.
     
    sahabcse, Jan 20, 2010 IP