How to run cronscript for daily DB backup in erpnext

I have already known this for sql DB.
For MariaDB in erpnext, script is making errors.
Provide the exact the cronscript with example.