There are quite a few backup plugins available for your WordPress site, but often the best things in life are the simple things, so let's look at a foolproof way of backing up your site.
- You can always get all WordPress, theme and plugin files from the relevant developers if something happens. The only time that does not work, is if you are not keeping one of your themes or plugins up to date for one reason or another; although best practice is to keep everything up to date, you might have a good reason. So you will need to keep copies then.
- You definitely need a backup of your child theme's functions.php and style.css files, unless you made no changes to it.
- The simplest way to backup your files is to keep a copy of your website files on your local computer. Let's use FileZilla to show you how:
- In the settings for your site, tick the options for synchronized browsing and directory comparison:
- Then files which are different on your local computer than on the server will be highlighted in red, and non-copied files will be highlighted in yellow, making it real handy to see if your backup is up to date:
Database backup using cPanel
- cPanel is one of the most used control panels by your website host. The backup feature can be used to backup your MySQL database.
- In your cPanel, look for Backup:
- Then look for Download a MySQL Database Backup and select the database you want to back up:
- This will save a download a *.gz file to your local computer.
- There is no need to unzip this file to restore it, just leave it as is.
- In case you need to restore your saved database, use the same cPanel program, look for Restore a MySQL Database Backup, and browse to the *.gz file you saved earlier and upload it:
- Be patient while your system goes through its paces to restore your database.