有没有办法按时间表恢复MySQL数据库

I've been creating scheduled MySQL backups and then sending them via FTP to another test server using PHP. I need to know if there is a program that I can run to restore the files on my other server but using a scheduled restore?

Thanks

You can create a CRON job which launches a shell code.

For instance if you want to inject a backup database:

mysql -u user -ppassword database < yourbackupfile.sql

Now if you want to create a dump:

mysqldump -u user -ppassword database > yourbackupfile.sql