The best defense against any sort of security threat is having a complete up to date backup of your site. Backups are one thing that every blogger/webmaster should have. If you are updating your site daily, then you should have daily backups. If your site is really huge and get a lot of comments then you should consider having backups few times a day. We are not suggesting that WordPress is unsafe or anything. All we are suggesting is that if big government sites can be hacked, then so can yours. At WPBeginner, we do our best to protect our data and keeping regular backups. In the past we relied on a free plugin called WP-DB Backup. It is a free solution, but it only backs up your database not the media files, plugins etc. You might think that you have all the media files, but do you have it in the right order? WordPress media library stores images by year and month. If you don’t have the exact order, then you are out of luck. To get rid of the headache of backing up and for peace of mind, we chose to use VaultPress.
VaultPress was started by Matt Mullenweg (WordPress co-founder) and his team (Automattic). These guys can be trusted. VaultPress makes real-time backup of WPBeginner. It is totally hassle free. All you have to do is put your API Key and let the magic happen.
The only downside to VaultPress is that it is a monthly recurring fee. If you run multiple sites, the cost can get pretty outrageous. If you are willing to do a little bit of extra work, then you can end up saving in the long run. There is this very good plugin called BackupBuddy that lets you make full site backups. We have a tutorial for using BackupBuddy.
Please make sure that your site is secure by making regular backups.