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):
composer install
Run the script and follow the prompts. You will need your GitHub username, GitHub API token and your BitBucket Username and password.
php Repobackup.php