Skip to content

Instantly share code, notes, and snippets.

@jacobpatton
jacobpatton / data.md
Last active March 19, 2018 20:08 — forked from anonymous/data.md
  2010 2011 2012 2013 2014 2015 2016 2017
A 1 2 3 4 5 6 7 8
B 1   3 4 5 6 7 8
C 1 2     8 10 3 2
D 2 2 2 2 2 2 2 2
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted