Automatic mysql backup

Anybody know how to do an automatic backup script that would ftp the file to another server?