Created
April 9, 2013 22:45
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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