https://github.com/samrocketman/github-backups
A simple set of scripts which helps me keep an offline backup of my GitHub work.
https://github.com/samrocketman/github-backups
Last synced: about 2 months ago
JSON representation
A simple set of scripts which helps me keep an offline backup of my GitHub work.
- Host: GitHub
- URL: https://github.com/samrocketman/github-backups
- Owner: samrocketman
- Created: 2015-02-17T05:20:41.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2020-10-18T07:11:50.000Z (over 5 years ago)
- Last Synced: 2025-01-06T10:13:22.245Z (over 1 year ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My GitHub backups
This is a script which simply runs and regularly backs up my GitHub repositories
because I prefer to have local copies of my things on my server.
# What does it back up?
* Repositories
* Repository wikis
* Gists
# How to configure.
Configure [gitlab-mirrors][gm] to replicate where you want. I have it
configured so that it mirrors repositories local only with
`no_remote_set=true`.
cp config.yml.SAMPLE config.yml
And that's it.
Please note, `cron.sh` has a hard coded path because I'm lazy. It's meant for
cron jobs but feel free to copy/modify it for your own cron jobs.
# How does it compare to gitlab-mirrors
`gitlab-mirrors` does all of the hard work of the actual mirroring. This
project merely talks to the GitHub API and then passes arguments to
`gitlab-mirrors`.
For this to be effective you need two cron jobs. One for `gitlab-mirrors` and
one for this project.
[gm]: https://github.com/samrocketman/gitlab-mirrors