How to backup database using WP-CLI in Wordpress?


Root level SSH access to the server

WP-CLI installed.



1. After connecting to the server, move to the directory where your wp-config file resides

cd /home/rootadminz/public_html


2. Run the following command to take backup :

wp export


Was this answer helpful? 0 Users Found This Useful (0 Votes)