Backup of mail server(Mail database)

hii have a mail server which has 10 mail database apart from application database.

my boss want me to write a schedule which will take backup of all the mail database.

mail deleted from the main server should be there in the backup server . it should be a schedule which will run on the server early in the morning and take backup of the database.

plz help me? plz do let me know how do we create agent on the server. can u plz also let me know from where i can get syntax to work with the server.

thankx in advance

bye

vikas