Backup WordPress database without cPanel | No Plugins

Here is how you can backup your WordPress database without using any plugins but with some simple codes. In order to do that, first log in to your WordPress dashboard and navigate to your theme functions, i.e., functions.php file.

We will be using some custom codes in the theme functions file; alternatively, you can also create your own plugin. Anyway, on the Functions.php file, copy and paste the provided code and update the file.

After updating, simply refresh your WordPress dashboard. You will then find a Database Backup option. Click on this and you can download the database for your website. You can open the database using Notepad++ and make changes as needed. Backing up database is important especially if you do a periodic backup of your whole website.

After completing the backup, you can simply remove the custom codes from the theme functions file if you no longer need the option. Just remove the codes, update the file, and then refresh your dashboard—the database backup option will be gone. We hope this guide was useful in demonstrating how to backup your WordPress database effectively without any plugins. Thank you very much!

Recent blogs