How To Backup Your WordPress Site

by Ryan Dube

The process of setting up and operating a WordPress site can be pretty involved. But the last thing you want to do is stop there and never backup your WordPress site.

Over time, as you develop content for your site and build traffic, there’s always a risk of a server issue or a hacking attack taking down your website and potentially wiping out your site.

Table of Contents

    Taking a backup of your WordPress site is a critical piece of insurance against losing all of your content and all of the work you put into it. In this article, you’ll learn how to perform a full backup of your WordPress site manually, and how to use the best WordPress plugins for automatic backups.

    Components Of a WordPress Website Backup

    To understand how a WordPress backup works, it’s important to understand the components of a WordPress site that need to be backed up in order to recover.

    So long as you have a copy of the version of the core WordPress installation that matches the version of WordPress you’re currently running on your site, you don’t need to backup the core WordPress files. 

    In this scenario, you only need to backup your MySQL Database, the wp-content directory, and the wp-config.php file.

    How to Manually Backup Your WordPress Site

    If you have your Core WordPress installation ZIP file already, then you can perform the fastest type of backup for your WordPress site.

    Note: If you do want to perform a full backup of everything in your home directory, on the same cPanel Backups page under Partial Backups, you can select the Download button under Download a Home Directory Backup and this will download all folders and files in your site’s home directory.

    Perform Automatic WordPress Backups With Plugins

    Manual backups are fast and convenient, but you need to remember to do them on a regular interval. If you forget to take a backup and you’ve created a lot of new content before your website crashes or gets infected with a virus, you could potentially lose all of that new content when you recover your last backup.

    A smarter solution is to install one of the many excellent WordPress plugins that are available to automate the backup process.

    There are a lot of great WordPress backup plugins to choose from (see the list at the bottom of this section). The example shown below uses the UpdraftPlus WordPress backup plugin

    UpdraftPlus lets you backup your WordPress site to any popular cloud services like Dropbox, Google Drive, Rackspace Cloud, or even FTP or email.

    On this page, you can select the blue Restore button to restore your site using the backup that was taken on that day.

    Note: Every time you backup your WordPress site, UpdraftPlus stores the three backup files in your Google Drive account with the date of the backup in the name. This means three new files are added to your account as frequently as you perform backups. 

    So monitor your Google Drive backup folder and make sure to delete very old backups to conserve account space.

    In addition to UpdraftPlus, there are a number of excellent automatic WordPress backup plugins to choose from.

    Practice Your WordPress Backup Solution

    The worst time to discover that your chosen WordPress backup solution doesn’t actually work the way you expected it to is after your site has crashed or is hacked.

    So, once you choose one of the solutions above, practice taking a full backup of your WordPress site using that solution. Then, perform a full recovery and ensure your site still works as required.

    Before you test any of the automated WordPress plugin solutions, always do a full manual WordPress backup using the manual procedure described above. This way if the plugin doesn’t work or somehow corrupts your site, you’ll have an alternative backup that you can use to manually recover your site.

    Exit mobile version