2021-07-23 11:07:43 +02:00
2021-07-23 11:03:31 +02:00
2021-07-22 23:31:11 +02:00
2021-07-22 23:31:11 +02:00
2021-07-22 23:31:11 +02:00
2021-07-22 23:31:11 +02:00
2021-07-22 23:31:11 +02:00
2021-07-23 11:07:43 +02:00
2021-07-22 23:31:11 +02:00
2021-07-22 23:31:11 +02:00

Simple Github Backup

A simple Github backup image, which will fetch a mirror backup of all repos the user is associated with from Github

Usage

docker run -it --rm \
  -e GITHUB_TOKEN="$GH_TOKEN" \
  -v "$PWD/backup:/backup" \
  --cap-drop=all \
  --user "$UID:$GID" \
  ghcr.io/morten-olsen/github-backup

note: --user is not required, but recommended instead of running as root. Remember to give the user write access to the backup directory

Backup structure

|-{user1}
|  |-{repo1}
|  |  |-info.json
|  |  |-git
|  |  |  |-...
|  |-{repo2}
|  |  |-info.json
|  |  |-git
|  |  |  |-...
|-{user2}
|  |-{repo1}
|  |  |-info.json
|  |  |-git
|  |  |  |-...
Description
Docker image for easily create a backup of all Github repositories associated to your user
Readme 132 KiB
Languages
TypeScript 90.1%
Dockerfile 8.9%
Shell 1%