Sometime we need to get database backup for security purpose. This script help to get database backup in a sql file. It is mentioned that the sql file my be emailed by using cronjob too.

Code: