• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How To Schedule And Download WordPress Database Backups

Bhagwad Park

Published on: August 15, 2018

Categories: WordPress 0

In a previous article, I’d shown you how to connect to your MySQL WordPress database remotely through the HeidiSQL program. Now if you need to take a backup, it’s extremely easy. Just open your database in HeidiSQL, right-click the database you want and export as SQL. Problem solved!

However, this is purely a GUI interface. It needs a user to manually select the backup option. There’s no command line interface that we can use to schedule a task. So in this tutorial, I’ll show you how to schedule a backup of your database and download it onto your computer.

Why Not Just Use a Plugin?

Two reasons. First, a plugin will perform a backup and either store it on the local server or send it to a 3rd party online storage. If your local server crashes, you lose all your backups. In addition, you want to reduce the load on your WordPress installation as much as possible. This means minimizing cron jobs and reducing the number of plugins.

For these reasons, I prefer to schedule backups remotely and have them downloaded onto my local desktop.

Gathering the Requirements

To schedule a remote backup, we need the following pieces of information first:

  1. The full path to where you want the backup to be stored
  2. Your hostname or IP address
  3. Your database username
  4. Your database password
  5. Your database name

Step 1: Getting the Database Details and Enabling Remote Access

To connect to the database remotely, we need to follow the same initial steps as outlined in my earlier tutorial. Basically, open up your wp-config.php file and get the details. There are screenshots in the tutorial as well, so check it out!

The tutorial also includes instructions on how to enable remote access from cPanel.

Caveat: Due to PCI compliance requirements, you might need to use a different IP address for remote access. Read the instructions on the remote access screen in cPanel for further details.

Step 2: Downloading the mysqldump Utility

This is the standard tool for exporting MySQL databases from the command line. The mysqldump utility is part of the community server package from Oracle. Visit this page and scroll down to download the zip archive.

Download MySQL Community Server

There’s no need to get the debug binaries and test suite. The first one is sufficient. Once you’ve downloaded it, unzip the directories into a permanent location. I personally choose C:\ , but you can put it anywhere you want as long as you remember where it is. Once unzipped, navigate to the “bin” directory to find the “mysqldump.exe” file as shown here:

Location of mysqldump utility

Copy the full path to the file so we can reference it. One way to do this is to use the “where” utility in the Windows command line with the /R parameter indicating the directory to look in. For example:

where /R c:\ mysqldump

Shows this:

Use Where Command to get the Exact Path

I copy this address and keep it with me. Now we have all the ingredients to create the backup command.

Step 3: Creating the Backup Command

The template for the command is this:

[full path to mysqldump.exe] --column-statistics=0 --host [host or IP name] -u [username] -p[password] [database name] > [path to destination filename]

Note that there’s no gap between “-p” and your password!

Plug in all the necessary pieces of information. When you have your final command, open a command line and execute it like this:

Executing mysqldump Command

You’ll get a warning about using your password on the command line, but it can’t be helped. Can’t schedule a task without it! Once the command completes, verify that it works. The backup file should have been created like this:

MySQL Backup Has Been Created

Step 4: Scheduling the Task

Now that we have a working command, we can schedule it to run using the built-in OS task scheduler. On Windows, we can access it like this:

Task Scheduler

Once open, go to Action->Create Basic Task, and a wizard dialogue will open to guide you through the process. Choose the frequency and the time of execution. In the “Action” dialogue, choose “Start a program”, and then paste the entire command into the provided box.

You’ll get a popup asking you to confirm the parameters. Click ok to continue and your task will be scheduled as planned.

Congratulations! You’ve successfully scheduled a remote backup of your WordPress MySQL database onto your local PC!

Bhagwad Park Profile Picture
Bhagwad Park

I’m a NameHero team member, and an expert on WordPress and web hosting. I’ve been in this industry since 2008. I’ve also developed apps on Android and have written extensive tutorials on managing Linux servers. You can contact me on my website WP-Tweaks.com!

Related Posts

What Is Self-Hosted WordPress?

In this post, we’ll differentiate self-hosted WordPress from WordPress.com, and discuss the benefits of the former.

How to Eliminate Render-Blocking Resources in WordPress (& Why You Should)

Many things can slow down your site, including render-blocking resources. These are CSS and JavaScript files that delay the loading of content on your site. As a result, visitors will have to wait longer to interact with your page, which could lead to frustration and instant exits.  So, what can you do to eliminate render-blocking […]

Joomla vs. WordPress: Which One Is Better?

In this post, we’ll consider five differences between Joomla and WordPress and how you might go forward with setting up a WordPress website.

Blogger vs. WordPress: Which One to Use?

Let's compare WordPress and Blogger across five key areas. Then, we'll show you how to set up a professional blog with WordPress.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA