aboutsummaryrefslogtreecommitdiff
path: root/scripts/git-backup/README
blob: aacf691c0d50300637b493727138058d23ed9f50 (plain)
1
2
3
4
5
6
7
8
9
10
* git-backup - backup script

This simply copies all git repositories from my git forge (git.c41ro.win) to my local server.

1. Drop this script in /opt/git-backup/ and make it executable.
2. Create a new ssh keypair and put the private key under /opt/git-backup/ssh-key (this file needs to have 0600 permissions).
3. Add a new cron job like this `@daily /opt/git-backup/backup.sh >> /opt/git-backup/backup.sh`.


License: It's like 10 lines bro. MIT if you must.