Backing up your WordPress photo blog is critical in case something goes wrong with your site whether on your part or through some outside attack. While there are many security precautions you should take in protecting your website, you always need to be on the safe side and have a backup copy. And even though your web hosting company may run a backup of your files, many hosts charge an additional fee to restore your data. So the easiest way to make sure you’re covered is to run your own backups. That way, you can restore your data for free whenever you need to. You should always back up your WordPress site before you perform any updates. See my post on keeping your WordPress site updated for more information.
Although you can perform a full backup of everything you have at your web hosting company, it’s usually quicker and more convenient to just backup your specific WP photo blog. To backup your WordPress site, you need to save a copy of your WordPress files along with the MySQL database for that particular WP installation.
For backing up your WordPress files, you can use an FTP client or the File Manager within your web hosting control panel interface. If you only have one WordPress site installed, the files will usually be located in your root or public_html directory. Be sure to copy all of the “.php” files and the folders beginning with “wp-“. If you have multiple WordPress sites, the files you need to backup will be in the subdirectory you specified when you performed the installation.
Next, you need to backup the MySQL database that WordPress uses to store your site data. You can use the phpMyAdmin tool to make a backup copy of your database. If you have multiple MySQL databases and need to know which one corresponds to the site you want to backup, take a look at the wp-config.php file. If you scroll through, you will see the name of the database that site uses. This is the one you need to copy in phpMyAdmin.
When you launch the phpMyAdmin tool, select the correct database on the left and click the Export tab. Make sure all the tables are selected. You can accept all the default selections, but make sure you check the Add DROP TABLE box. Click the Go button to make a copy of your database.
Believe me, making sure you have a backup copy of your WordPress site will save you a lot of hassles down the line!