Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2010
    Posts
    70

    Question Is it possible to only restore the databases from WHM?

    One of our clients asked us to retrieve old database data which has been accidentally lost.

    Too save time, I prefer to use the WHM interface to restore an account backup, but it seems to have no option to restore ONLY the database and keep the home dir intact.

    Am I overlooking something? Also, I am wondering wether a homedir restore removed all new e-mails as well (since they reside in the homedir). So basically, these are the two questions:
    • Is there a way to restore only the database and keep the homedir intact?
    • Does restoring the homedir remove all new mail since the last backup?
    • If so, is there a way to restore the homedir without overwriting the mail dir?

    Any help would be greatly appreciated.

    Thanks in advance.

  2. #2
    Member
    Join Date
    Oct 2009
    Posts
    55

    Default

    I can't find any way of doing this via WHM, however you can achieve your goal via SSH:

    Code:
    mysql -u user_name -p user_dbname < filename.sql
    (you'll be prompted for the db user's password)

  3. #3
    Member
    Join Date
    Oct 2009
    Posts
    55

    Default

    Found on another post:

    To restore a database, please do the following:
    • Login to your control panel and click Backups.
    • Click the Browse button next to the option which says Restore a MySQL Database.
    • Select the .sql.gz file which you want restored.
    • Click the Open button and click the Upload button.

Similar Threads & Tags
Similar threads

  1. Restore MySQL databases
    By markerpower in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-30-2008, 04:08 PM
  2. Restore Backups not Restoring Databases
    By dataferret in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-08-2008, 12:37 PM
  3. Replies: 1
    Last Post: 02-11-2008, 12:40 PM
  4. How to backup + restore large databases?
    By GaryW in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-03-2005, 08:50 AM
  5. How to make sure your MySQL Databases restore/move
    By ddihosting in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-31-2004, 07:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube