Creates the backup devices where sql server is installed, creates an error message above 50001, an alert, and an adittional job in case the scripts fails. In the first time backups all databases and then backups the logs until two days past from the last full backup. Then backups the databases again and so on.
You can create a job to run the script by EXEC master..xp_cmdshell 'osql -Usa -P -ic:\....\script.sql'
The comments are in Spanish, because I'm from Argentina. I didn't wanted to translate it, sorry.