Cron Entries for Backuping up files and DB?

Is it possible to create a cron entry in the XenForo tools -> Cron Entries to backup all of the files and the database as well, and to also email? Would this be a bad idea?

Thanks guys.
You can do that with rsync and mydumper, is very easy and much more reliable compared to a web interface.
Thank you so much Floren. Apologies for my absolutely laziness, but on the off-chance there's some amazing 'everybody knows about it' guide for doing this, could you share? Otherwise I'll do my research.

Thanks again.