Repo-backup is, surprise surprise, a program for backing up your repositories. It’s just a small program which lets you download a local version of all the repositories on GitHub or GitLab you own or have expressed interest in.
This started off as a side project to help me keep an updated version of several repositories I was interesting (original post). However it became quite invaluable recently when I was travelling, often having little to no internet, so I thought I’d clean it up and publish on crates.io so others can benefit too.
Pre-compiled binaries are available on GitHub Releases, otherwise if you have the Rust compiler installed you can run
cargo install repo-backup.
I’ve added the following line to my
crontab so it’ll be run every night at 1am:
0 1 * * * /home/michael/.cargo/bin/repo-backup