How to translate TrueNAS Core 12/13 Cron job scripts to Scale?

I actually came across this : TrueNAS-Report and this is doing what I need.

But to answer your question, I like getting the backup via Email so I have it automatically somewhere else should something fail.