If you do a Google search, there's already several how to's out there on how to accomplish this. I'd offer links, but they all seem to be a bit different depending on circumstances, so your own research will be better able to tailor things to your needs.