• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Manual Database rescue

aaronouthier

New Pleskian
Ok. I ran into a small problem with my Plesk Server. I accidentally typed "rm -rf /etc", instead of "rm -rf etc", on the production server... On a positive note, we don't host customer sites, just our own. On the down side, there are about a dozen web sites down now. I had been bugging the boss for over a year to purchase a backup drive for the system, but he never did.

Fortunately, I am an advanced Linux user, and, after purchasing a 1 TB backup drive, I used a linux boot USB stick, and imaged the primary drive onto the backup drive. Afterward, I went about reinstalling the OS. I had been wanting to reinstall anyway, but was waiting for the boss to purchase a backup drive. Irony...

Anyway, I've started to get the websites re-provisioned, and getting the file content copied back into place for each site. Although I a a wizard with Linux, one area I've never been very good with is Databases. I need to recover them from the original install, but I'm not too sure how to go about that post-mortem. Can I just copy the database stores into the same location on the new install? I don't imagine I can. All of the sites were wordpress sites. Those don't function so well without their database content. :(
 
Oh, I should probably mention: I was originally on Ubuntu 16.04.4, but decided to go with CentOS 7 this time around, since Ubuntu didn't support quotas.
 
If you have used the built-in Plesk backup function, go from there and restore the databases from the corresponding subscriptions.

If you have SQL dumps of the databases, you can easily import them into the databases.

If you have neither one, things will become anything between difficult to impossible.
 
Back
Top