A simple PHP script to backup your BitBucket and GitHub repositories
First grab a copy via github:
git clone https://github.com/JimMackin/RepoBackup.git
Grab any dependencies (you'll need a copy of composer):
Run the script and follow the prompts. You will need your GitHub username, GitHub API token and your BitBucket Username and password.