How to backup WordPress database on EasyEngine

Backup or export MySQL WordPress EasyEngine database is very easy, here is the guide. This guide is for EasyEngine version 4 and newer.

Enter to the web directory, for example, i’m will backup database for web

cd /opt/easyengine/sites/

Now run the following command for backup database web, this command is based on wp-cli

ee shell $domain --command="wp db export $dbfilename"Code language: PHP (php)

Check .sql file backup with command ls, and make sure SQL file backup is exist.

Leave a Comment