Add script options since not all servers are setup with the same paths
Add the options of supplying a different ssh user name
Update the mirror script to use git.
Do not bother updating if there have not been any changes.
Make sure the .git directory is excluded.
Fixes suggested by shellcheck.

http://www.shellcheck.net/