Today, my blog was hacked by some server backdoor codes. The good thing is that I already regularly back up some files and the database. However, the oversight was that I didn’t include everything necessary in the backups. I forgot to include the uploaded images folder in the backup. Hence, it consumed me a significant amount of time to re-upload all the images.
So to prevent this incident from reccurring again, here is a checklist of the files a typical WordPress site needs to save for the backup.
- Upload folder
- Themes folder
- Plugins folder
- wp-config.php
- .htaccess (if modified)