Regular backups of your WordPress site ensure should the worst happen you’ll be able to get your site back up and running quickly with minimal downtime.
Before running anything other than minor updates to your WordPress is site it’s recommended to perform a backup. This should include all the files, folders and the database that make up your website. This ensures that if a problem occurs whilst updating your site you can quickly revert to a working copy before investigating further.
Higher quality hosting companies regularly update their hardware, the servers where you website lives, perform regular backups and offer redundancy by having multiple copies of your website on different machines. However this isn’t always the case, and even if you think you’re covered it’s worth having your own backup plan in place – just in case.
If your WordPress site has been hacked the quickest way to get it back up and running is to simply replace all the files and database with those from a backup made before the hacking took place. But you do need to make sure everything is updated and secure after this – otherwise the site will still be an easy target. A backup of the hacked site is useful to help diagnose how the attack took place.