Skip to content

Instantly share code, notes, and snippets.

@ryansb
Created April 9, 2013 22:45
Show Gist options
  • Save ryansb/5350082 to your computer and use it in GitHub Desktop.
Save ryansb/5350082 to your computer and use it in GitHub Desktop.
Back up all git repos owned by all the users in the FOSSBox Github organization.
#!/bin/bash
set -e
cd backups
USERS=`python -c "import requests
for u in requests.get('https://api.github.com/orgs/FOSSRIT/public_members').json():
print u['login']"`
for user in $USERS
do
/home/gitback/github_backup.sh $user
done
/home/gitback/github_backup.sh FOSSRIT org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment