Heya! I just wanted to ask if you ever have any trouble with hackers?

My last blog (wordpress) was hacked and I ended up losing a few months of hard work 
due to no data backup. Do you have any solutions to protect against hackers?