<?php $shell = "mysqldump -uroot -pyour_password database_name > "."/tmp/".date('Ymd').".sql"; exec($shell);
crontab -e
* * * * * /usr/local/php/bin/php index.php