Follow the instructions here for creating users on source server:
(ignore the rest of instructions on that blog post)
Capistrano set up will then be the same as http://socialsynergyweb.org/network/blog/building-capistrano-recipe-rail...
Running git commands, etc
capfile would run http://en.wikipedia.org/wiki/Secure_copy command from destination to secure copy over db dump.
For our general info