Restore a zpanel backup on LEMP

Posted October 22, 2014 5.6k views

How can I restore my website from a zpanel-backup into LEMP stack?

  • I’m on Centos 7 with LEMP stack
  • the Zpanel backup contains ( database-backup.sql and the website folder)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Transfer the mysql dump to your droplet and import it:

mysql -u root -p database-name < /path/to/database-backup.sql.sql

Then create a MySQL user for your site: How To Create a New User and Grant Permissions in MySQL | DigitalOcean.

Finally, copy the files to /var/www or /var/www/html (depending on your setup) and you should be good to go.

by Etel Sverdlov
MySQL is a powerful database management system used for organizing and retrieving data. This tutorial explains how to to create new MySQL users and how to grant them the appropriate permissions.