As already stated by Peter, read the SQL Books, you're looking for something along the lines of: BACKUP ...
stackoverflow.com