Manual restore of WHM and all accounts from server files

david26uk

Member
Apr 24, 2014
18
1
3
cPanel Access Level
Root Administrator
Hi There,

Is it possible to manually restore WHM accounts and databases from server files?

Unfortunate my dedicated server failed to boot last week due to a kernel upgrade (thanks GoDaddy). I was forced to re-provision the server.

I have a fresh install + all server files - that's it.

Many thanks for your time.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
Hello :)

That third-party guide does reference "/var/lib/mysql" where your databases are stored. Note that this method of restoring a server is not supported. Ideally, you should backup your accounts using the included backup options so they can be restored in situations like this.

Thank you.
 

david26uk

Member
Apr 24, 2014
18
1
3
cPanel Access Level
Root Administrator
database

as Michael explained not the best way but I have done it many times without issue
Thanks Guys - I have done it this way and everything appears OK

Note: I'm unable to restore innodb tables though, so I've learned keeping daily backups is vital (prevention better than solution)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
I'm not sure how much it will help in this particular case, but you may find the following thread useful if you need to repair InnoDB:

InnoDB Repair Guide

Thank you.