gitbucket organization on Github to acme group on local GitBucket installationgitbucket.acme.local (HTTP and SSH available on default ports)Here is a working script for migrating all repos from github.com/gitbucket to a local installation. We're only providing this example as a skeleton for your migration, not a definitive guide for every system out there.
#!/bin/bash
TMP=tmp_repo
repos=`http https://api.github.com/orgs/gitbucket/repos | jq -r '.[].name'`
gb_userpass='root:root'
for repo in `echo $repos`; do
echo "--- Migrating $repo"
rm -rf $TMP
# clone from source
git clone --mirror https://github.com/gitbucket/$repo $TMP
# create the repo on gitbucket
http --auth $gb_userpass POST http://gitbucket.acme.local/api/v3/orgs/acme/repos name=$repo
# push to gitbucket
pushd $TMP
git remote set-url origin ssh://git@gitbucket.acme.local/acme/$repo.git
git push origin --mirror -f
popd && rm -rf $TMP
done