Auto-backups?

Are automatic backups of files made in any way? I lost all my code due to a script error that erased everything.

No. I’m sorry to hear about your code, but InfinityFree doesn’t do any form of automatic backups, I’m afraid. Doing so would simply be too expensive.

To be on the safe side I’d recommend taking your own periodic backups in the future. After all, even if a host does make automatic backups, that’s no guarantee that they won’t lose them.

Automatic backups are a feature only available on premium hosting. On free hosting, you are responsible for making your own backups.

there is no auto backup here, you have to manually copy your databases and your file, if you think that your hosting will gone someday, dont worry, infinityfree does not instantly delete all your file, it only get suspended, just submit the ticket and it will be re-activate again. But if you really need to backup your website, you can try to make a php script that clone your sql and download it, it will be a bit easier and quicker than go to IF panel and manually download the sql, for the website files, you have to use filezilla to copy it, the zip function inside the web file manager is useless so you have to manually copy all of your files.