How to back up your WordPress Site
Have you ever lost your WordPress site? Have you’ve been hacked and you need to restore a clean version of your site? Perhaps your website just broke after installing a plugin, theme or add-on. Maybe your hosting providers servers crashed, or your simply forgot to renew your hosting plan, and they’ve deleted your site. Having a site back up should be one of the main priorities when you set up a site, if your site goes down, so can your business creditability.
Whilst most host providers offer “back up” services, most only create back ups of your database, that means if the files are lost, or corrupted, you can say goodbye to your site. To prevent loss of business as well as pulling out your own hair, and put in place a back up strategy for your business, trust me its going to help you in the long run.
The following article you’ll learn how to back up your WordPress site, we’ll cover a doing a back up manually, and also some useful plugins that will help you do it all in one! If you’ve got a back up of your site created, restoring a previous version of your sites going to be easy!
Just note that on shared hosting plans, doing a full back up of your site daily may slow down your site as it takes up considerable server resources, so only consider doing it once a month. You can back up your database daily or weekly if required as its only a small file. With the plugin solutions below, most will give you these options.
Manual Back Up
Manually backing up your site is going to be a more tedious process, and restoring it will take more time than the options below. Its still very useful to know, and if you’ve got some technical knowledge then its going to be a breeze. For those of you who aren’t technical you may want to skip ahead to the plugin options in the next section.
Your WordPress directory contains various sub-folders, wp-content, wp-includes, your config files, themes and plugins required by your site. WP-content contains all themes, plugins, cache, and image uploads, you don’t want to lose this data. WP Admin carries the details for your WordPress admin area, you don’t want to lose that either. Finally the wp-includes folder contains WordPress core files, it helps to have these when making your back up again.
For both you’ll need to download your Database and Files.
PLEASE READ THE NEXT SECTIONS CAREFULLY!
Back Up Your Site via cPanel
Note! If your site is large (over 3GB) its best to use FTP, as using cPanel may increase server load and slow down your site.
You can create the back up quite easily by doing the following:
- Login to your web host and navigate to cPanel. For most web hosts, the cPanel is usually the first page you encounter when you login.
- Navigate to the File Manager, and go to your root directory which should be your public_html or Home directory.
- From here, just locate your WordPress files and folders. These will include:
- wp-admin, wp‐includes, wp-content, all files which have a wp- prefix, index.php, xmlrpc.php.
- In many situations WordPress is installed directly in the root and looks something like this:
- Before you can download your WordPress directory you’ll need to compress it.
- Click on your WordPress directory, and select Compress from the menu bar. Alternatively, right-click on the folder and choose Compress from the drop-down options.
- Choose the compression type e.g. ZIP, GZIP etc from the dialog box that opens. I would recommend ZIP.
- Then just hit the Compress File(s) button and wait for the process to complete. Your server will save your compressed WordPress folder
- Click on the archive file you just created and choose Download from the menu. Alternatively, right-click on the archive and choose Download.
- Choose a secure location on your hard disk and save your backup and you’re done!
Top Tip: Upload the backup to another location, such as your Dropbox account, Google Drive, or even email it if its not too large. Try to have more than one copy incase one fails.
If your web host uses a different control panel e.g. vDeck, Plesk, etc, the process is still similar, locate your File Manager, and just follow the steps above i.e. Locate File Manager -> Locate your WordPress directory -> Compress -> Download, and repeat (once a week would be suitable).
Back Up Your Site using FTP
For this example i’m going to show you how to use FileZilla to backup your site.
- First you’ll need to go back to your cPanel and make sure to set up an FTP account (it should be located in the FTP Manager section, if you’ve got lots of images also enable SFTP), note the details you’ll need them for the next step.
- Use FileZilla to connect to your account, you’ll need the following information:
- Host: enter your domain name, for example, if your domain is johndoephoto.com enter johndoephoto.com
- Username: enter your cPanel username.
- Password: enter your cPanel password.
- Port – you can leave this blank unless your hosting provider states otherwise.
- Now its time to download those files.
- Step 1 – On the left locate the backup folder you want to add your content to, if you haven’t got one created already, you can create a folder called back up on the desktop.
- Step 2 – On the right hand side locate Public_HTML
- Step 3 – Now drag and drop your wp-content folder to the left, and also locate your wp-config file and move this also.
- Step 4 – Wait until it finishes.
Backing up your WordPress Database
To backup your database, you’ll want to be logged into your cPanel as above. Then you complete the following steps:
- Find your phpMyAdmin option, its generally located in “database tools”.
- You should then be in your phpMyAdmin admin panel, on the right select the database you want to backup. In order to find the correct Data base, it is necessary to check the wp-config.php file: then open it and find the line that starts with “define(‘DB_NAME’ ”
- Now that you know the Database name, you can click on it in PhpMyadmin and export it:
- Finally you’ll get to the export page, you’ll want to use the quick export method, and then simply hit go:
Thats it! You’ve now successfully completed a full back up of your site.
The next section will explain how to use plugins to create a site back up.
Finding it difficult to create a manual back up of your site? Not a problem, there are plenty of plugin solutions that can help you create a full back up of your site. In the following section we cover some details on useful plugins you can use to create backups of (and in many cases they also help restore ) your site.
UpdraftPlus WordPress Backup
One of the highest rated back up plugins on WordPress.org UpdraftPlus WordPress Backup is a powerful tool. Its free to use, and you can back up your entire site to the cloud (Amazon S3, Dropbox, Google Drive, FTP, Email and various other options). Using this plugin will allow you to restore your site in a single click, you can schedule back ups, and even split larger sites into multiple archives. Packed full of features, and with ease of use I would highly recommend this plugin.
Just make sure that you’re not running your back ups too often, especially on shared hosting, as this may use up your data allocation.
If you don’t have your own cloud storage options, or want premium support with the plugin, you can upgrade to UpdraftPlus Premium, this will store all of your backups on their own cloud service.
BlogVault is simple to use, its safe, and it makes backing up your site painless. To make a back up of your site you should first sign up for a BlogVault account, then you can download and install the plugin (they also offer to do this for you). As soon as the plugin is activated it will make a back up of your entire site, thats the database and files. The plugin will then make regular back ups of your site, and it only backs up new site information daily. You can then revert back to any previous version in the last 60 days. You can also download a full back up of your site to your computer, or use the featured to migrate a site to a new domain or hosting.
BlogVault also has a really unique feature called “Test Restore” which allows you to check the back up version before you go live with it. You can simply choose an old back up version, temporarily restore it on BlogVaults test servers, and review it before pushing it live on your own.
BlogVaults pricing starts from $9.00 a month or $89.00 for the year for single site.
VaultPress was founded by Matt Mullenweg, one of the co-founders of WordPress, and developed by his team at Automattic. Its a great way to keep your site secure, with regular malware checks, daily back ups, automated restores and a 30 day back up archive its a great tool. Much like BlogVault you can also use the plugin to migrate your site from one hosting to another.
Another added bonus with VaultPress is the built in spam protection it offers with integrated Askimet, so you can be sure to prevent spam attacks on your site. Once you get this plugin set up it should be nothing but plain sailing for you.
VaultPress plans starts from $9.00 a month or $99.00 for the year for single site.
BackWPup is a free plug-in that allows you to create a full back up on the cloud for your site (Dropbox, FTP, Amazon S3). With a single backup zip file you can easily restore your site. See the following article on how to create a free back up here.
With BackWPup, you can back up your database and export WordPress XML. Another good feature of this free WordPress backup plugin is you can check, repair and optimize your WordPress database easily.
There is a BackWPup Pro version available for more comprehensive cover starting from $75 for the year, with a $45 yearly renewal fee.