I want to be able to push a repository to Github at midnight, every night. I know that Github isn't a back-up service, and, in no way am I expecting it to be this - I just want the best up-to-date version on Github and this works for me, and, my team. What I was thinking is this:
Creating a Bash script that pushes the repository to Github normally
In Crontab, execute the script at midnight every day of the week.
Would this be the best method to use? If so, this seems easy enough to do.
My next problem :) I want an email to be sent to me, after the repository has been pushed, so it would just send an email saying: "Repository Pushed.. Ok" or if there was a problem, it would alert me to this. Is this possible? If so, could anyone please provide some examples of how to do this.
Hope someone can help :)