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
gitbackhub-0.2.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for gitbackhub-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4727db92b1735f2fc8822a53aa17036f5703a22bb74fb377c5783336d96ec247 |
|
MD5 | 5723f1d45ecb80f5be6d2df75eb393cc |
|
BLAKE2b-256 | dd8004a5128aee3cc35a8e73690ef21272e84d5dc34b6e7e9c5c77a35002e3e6 |