HyperVm Backup(restore) help required

Discussion in 'Site & Server Administration' started by ska_defender, Aug 6, 2009.

  1. #1
    Hello
    recently I rebuilt my vps so I take a hyperVm backup from hyperVm
    which is in this format back.tgz

    Now after rebuilt when I tried to restore the backup its not restoring
    I also contacted lxlabs but not got the solution

    I have downloaded this backup and extract it using winrar
    I get my websites files from this extracted backup

    But dont know where is the databases located in this backup
    there are several dir in this backup

    I need to manually restore the database

    Does anyone know where these database files located in backup?

    Please help!
     
    ska_defender, Aug 6, 2009 IP
  2. sruthin

    sruthin Peon

    Messages:
    130
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    dear just download the directories using your ftp and back up your database using mysql dumper restore the directories using ftp then restore database using mysqldumper
     
    sruthin, Aug 8, 2009 IP
  3. sruthin

    sruthin Peon

    Messages:
    130
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    how did you back up your database?

    and tell me you were running any CMS?
     
    sruthin, Aug 8, 2009 IP
  4. Janak

    Janak Peon

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you downloaded the full backup then the MySQL backup should be placed inside the MySQL directory. It should be located outside the public_html folder.
     
    Janak, Aug 10, 2009 IP
  5. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #5
    there is no public_html folder
    this is not Cpanel/whm
    this is hyperVM
     
    ska_defender, Aug 10, 2009 IP
  6. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That backup will have archives of mysql db's named after the domain alias. for eg you have alias named guttu then there will be tar or tgz archive named like guttu-mysqldb-any-xxxxxxxxx.tar or .tgz. extract that archive and you'll have a .dump file. rename it to .sql and import using bigdump or phpmyadmin.
     
    Guttu, Aug 11, 2009 IP
  7. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #7
    no there is no such file :(
     
    ska_defender, Aug 11, 2009 IP
  8. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Can you tell which files you get after extracting the backup file back.tgz? Plz try downloading and extracting on your PC first.
     
    Guttu, Aug 12, 2009 IP
  9. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #9
    I cant dl on my PC
    it is extracted on the server and It has so many folders in there
    bin
    root
    exec
    home

    etc...
     
    ska_defender, Aug 12, 2009 IP
  10. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #10
    check the folder "/var/lib/mysql". There will be subfolder with the dbnames. copy them to your current hosts "/var/lib/mysql". Login to phpmyadmin and assign an user for the privileges.
     
    Guttu, Aug 12, 2009 IP
  11. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #11
    Yes I have found them
    Thanks for your help
    I hope I can recover this
     
    ska_defender, Aug 12, 2009 IP
  12. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #12
    Oh no the one I saw var/lib folder is my current folders
    there is no lib folder in "var" of backup
    it contains the following folders
     
    ska_defender, Aug 12, 2009 IP
  13. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #13
    try this folder

    or search the back folder for "mysql" .you'll get the folder.
     
    Guttu, Aug 12, 2009 IP
  14. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #14
    there is also nothing in /us/local/mysql
    I also tried to search for mysql but in vain
     
    ska_defender, Aug 14, 2009 IP
  15. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #15
    search for *.dump files in the whole backup.
     
    Guttu, Aug 14, 2009 IP
  16. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #16
    no cant find
    Can u please tell me how to extract that .tgz hypervm backup file in the server
    I mean through ssh or any way through hypervm
    I want to extract that backup again or any old backup
     
    ska_defender, Aug 15, 2009 IP
  17. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #17
    thats the command to extract the archive
     
    Guttu, Aug 15, 2009 IP
  18. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #18
    if my backup is in dir home what command to use?
    Is it
    ?
     
    ska_defender, Aug 15, 2009 IP
  19. Guttu

    Guttu Peon

    Messages:
    728
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Missing slash
    It's better to change the dir to the dir where the archive is located. then simply execute

    It'll extract in that folder.
     
    Guttu, Aug 15, 2009 IP
  20. ska_defender

    ska_defender Well-Known Member

    Messages:
    590
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    108
    #20
    Oh yes I extracted the backup myself and got the database in var/lib/mysql
    Thanks for your support
    My hosting provider was unable to get the database because they are expert in Cpanel and also that vps is self managed

    But because of your help I got my corrupted database back now I am very good!
    Thanks again!
     
    ska_defender, Aug 17, 2009 IP