Automatically Keeps a directory full of git mirrors up to date with remote
Requires
- Cron - for updates
- git - for doing git operations
To start Mirroring a new GIT repo:
cd /home/yourname/gitmirror/
git clone --mirror [email protected]:YOURGITNAME/REPONAME
Example cron entry for keeping mirrors up to date once a day:
32 4 * * * git-mirror ~/gitmirrors/ >>/var/log/git-mirror.log 2>&1