Skip to main content

A script to backup / mirror GitHub repositories.

Project description

gitbackhub

GitHub Workflow Status (branch) PyPI

A script to backup / mirror GitHub repositories.

Config

Get yourself a personal access token on GitHub that has the repo scope.

Config file in ~/.config/gitbackhub/config.ini.

[main]
user = GitHubUserName
access_token = AccessToken
directory = /path/to/target/directory

[user:GitHubUserName]
[user:AnotherGitHubUserName]

[org:GitHubOrgName]
[org:AnotherGitHubOrgName]

[repo:SomeGitHubUser/some-repo]
[repo:YetAnotherGitHubUserName/another-repo]
[repo:YetAnotherGitHubOrgName/yet-another-repo]

Make sure the file is not readable by anybody but yourself since it contains your GitHub token.

Help

$ gitbackhub --help
Usage: gitbackhub [OPTIONS]

Options:
    --access-token TEXT
    --user TEXT
    --directory DIRECTORY  The data directory to clone to
    --config PATH
    --help                 Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitbackhub-0.2.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

gitbackhub-0.2.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page