Here's a great example. This includes a comprehensive log-shipping solution, but you can pull out the full backup/restore pieces. I've implemented this at a place that has not been running it for about 1year without a hitch.
http://www.sqlservercentral.com/articles/Administering/customlogshipping/1201/
John Rowan
======================================================
======================================================
Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden