Backup all databases on a MySQL server.
Change only this lines:
$cfgBackupPath = "/root/backup";
$cfgBackupDate = date("Y-m-d_H-i-s");
$cfgServerHost = "127.0.0.1";
$cfgServerUser = "root";
$cfgServerPass = "";
$cfgBackupPurge = 7; // Max history time in days