#dumpmyrepos
This python script will backup all of your git repos using ssh locally, supports github gitlab and bitbucket. All settings are passed using a config.yml file
as first install the script with pip
pip install --user https://github.com/kernelfolla/dumpmyrepos/archive/master.zip
now create a config.yml file
dumpmyrepos --make-config=config.yml
finally run the script
dumpmyrepos --config=config.yml
or read all available options
dumpmyrepos --help
services Github, Gitlab and Bitbucket supports authentication via a private token or a key/secret (bitbucket), my suggestion is to use this way instead of username/password because you can always remove these keys from yur panel, or change password without breaking your backup settings. Anyway username/password authentication is supported for all 3 services
You do need to have your ssh keys uploaded for the computer that you are running the backup on.
dumpmyrepos is a "Marino Di Clemente" open source project, distributed under the MIT license.