Backup GitHub hosted repositories to a local directory.
-
Create GitHub access token with full
repo
level to access (only clone) private repositories -
Edit directory and account to backup of
config.exmple.json
and save it asconfig.json
{ "githubapi": { "oauthtoken": "TODO_FULL_REPO_LEVEL_ACCESS_TOKEN", "owner": "AnonymerNiklasistanonym" }, "backupdir": "backup" }
-
Run script
npm install # -------- Normal ---------- npm run build npm prune --production node . # -------- Dev ---------- npm run dev