A tool for backing up repositories from GitHub organizations
Project description
github-backup-tool
BIG NOTE: This is a work-in-progress.
A crunchy tool for backing up repositories of multiple specified GitHub organizations.
What does it do?
It will backup all Git repositories it has access to.
What does it not do?
At this moment, it will not back up:
- Issues
- Comments
- Hooks
- ...
Eventually, backing up of these will be implemented.
How to use?
- Set up a GitHub token, with a "repo" scope.
- Configure the
config.yaml
file accordingly. - Set up your running environment either via a virtualenv or distribution packages:
- virtualenv:
- Create a Python virtual environment via
virtualenv venv
- Activate your
venv
viasource venv/bin/activate
(Consider the shell you are using, and adjuct this step accrodingly.) - Install all the dependencies via
pip install -r requirements.txt
- Create a Python virtual environment via
- distribution packages:
- virtualenv:
- Run
backup.py
.
TODOs:
- Backup abandoned commits in master as a separate branch if commits were pushed to origin forcefully
- Backup issues
- Backup hooks
- Backup information of users, belonging to an organization
- Configuration: allow for ignoring of certain repositories
- Brainstorm about more ideas as to what to back up
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
github-backup-tool-0.0.2.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for github_backup_tool-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea33d174b8a4b6b8acb83966e7b23bdea48b82795d2f9a93a9971ded80f257eb |
|
MD5 | eb8245f2cb9058f99c96628e8b49e481 |
|
BLAKE2b-256 | ad0cf0a05fec76cae90ddd93d8077c5cd575bee996a50753182c6dbc7588168e |