Does anybody know how to programmatically backup an SQL server database to another drive and restore it when needed? Sample codes will be highly appreciated.

Thanx in advance