Skip to content

Instantly share code, notes, and snippets.

View mschuwalow's full-sized avatar

Maxim Schuwalow mschuwalow

  • LiveIntent
  • Germany
View GitHub Profile
@mschuwalow
mschuwalow / backup-github.sh
Last active May 31, 2024 23:23 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues. Using full_name instead of name and dropping all org stuff.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"<backup-dir>"} # where to place the backup files
GHBU_UNAME=${GHBU_UNAME-"<username>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<password>"} # the password for that account