Skip to main content

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.

Release files for gitbackhub 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitbackhub 0.2.0
File Size Uploaded
gitbackhub-0.2.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitbackhub 0.2.0
File Interpreter ABI Platform
gitbackhub-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / gitbackhub-0.2.0.tar.gz

Download URL gitbackhub-0.2.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
da28e9e9be05ec1293aee303e497d77b8ae337b9ca67a2e3076c49e53dd471f6
BLAKE2b-256 checksum
How to use checksums
ec199a0ee446ed3dc9c195615357cb37b8501d0da4b53d179950b6efaf8aa611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release files / gitbackhub-0.2.0-py3-none-any.whl

Download URL gitbackhub-0.2.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4727db92b1735f2fc8822a53aa17036f5703a22bb74fb377c5783336d96ec247
BLAKE2b-256 checksum
How to use checksums
dd8004a5128aee3cc35a8e73690ef21272e84d5dc34b6e7e9c5c77a35002e3e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page