The simplest script to make an archive of a Github user/org
APACHE-2.0 License
The simplest script to make an archive of all repos in a Github user/org.
Depends on: gh
and jq
.
See the backup.sh
and Dockerfile
files for variables.
I use this to run a daily backup on my homelab.
Local:
./backup.sh
Docker:
export GH_TOKEN=...
docker run -it --rm -e GH_TOKEN=$GH_TOKEN -v $PWD/data:/data ghcr.io/danielfrg/github-archive:main