A script to backup / mirror GitHub repositories.
Project description
gitbackhub
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitbackhub-0.2.0.tar.gz.
File metadata
- Download URL: gitbackhub-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da28e9e9be05ec1293aee303e497d77b8ae337b9ca67a2e3076c49e53dd471f6
|
|
| MD5 |
ac3c9265c90ce21f0318fc37710870bb
|
|
| BLAKE2b-256 |
ec199a0ee446ed3dc9c195615357cb37b8501d0da4b53d179950b6efaf8aa611
|
File details
Details for the file gitbackhub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gitbackhub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4727db92b1735f2fc8822a53aa17036f5703a22bb74fb377c5783336d96ec247
|
|
| MD5 |
5723f1d45ecb80f5be6d2df75eb393cc
|
|
| BLAKE2b-256 |
dd8004a5128aee3cc35a8e73690ef21272e84d5dc34b6e7e9c5c77a35002e3e6
|