Spydersnet is dedicated to provide information on how to set up websites SECURELY.
It’s hard to find a webmaster who hasn’t been hacked at least once. We have been there, done that. It’s not fun.
If you have a good web host, they have your backups ready. If they don’t, you will have to restore everything manually.
I have even restored content from Google’s cache because I didn’t have an up-to-date backup.
Look around on the site if you don’t want to be in a similar situation.