#github #backup-utility #github-backup #download-repo

app gitspore

Github backup tool to concurrently download all public and private github repo's of the specified user

5 releases

0.2.4 Apr 10, 2024
0.2.3 Apr 9, 2024
0.2.2 Apr 8, 2024
0.2.1 Apr 7, 2024
0.2.0 Mar 31, 2024

#120 in Filesystem

Download history 203/week @ 2024-03-29 491/week @ 2024-04-05 50/week @ 2024-04-12

744 downloads per month

MIT license

18KB
311 lines

gitSpore

Github backup tool that concurrently downloads all repo's of the specified user.

Note: If no token is provided only the public repo will be downloaded.

Install from Crates.io

cargo install gitspore

Running gitSpore from cli

Usage: gitspore [OPTIONS] -u <USER>

Options:
-u <USER>               Github username
-o <OUTPUT_FOLDER>      folder to save github repo [default: ./]
-t <TOKEN>              Github token - If no token is provided only the public repos will be downloaded [default: None]
-h, --help              Print help

Example CLI commands

./gitSpore config-file # use config file
./gitSpore -u helloimalemur # Download public repo only
./gitSpore -u helloimalemur -t mytoken # Download public and private repo
./gitSpore -u helloimalemur -t mytoken -o /tmp/output_dir # Download public and private repo to specified directory

Running gitSpore from config file

Usage: gitspore config-file

config/Settings.toml

github_username = "helloimalemur"
output_folder = "/tmp/"
github_personal_access_token = "github_xxxxx"

Development and Collaboration

Feel free to open a pull gitsporest, please run the following prior to your submission please!

echo "Run clippy"; cargo clippy -- -D clippy::all
echo "Format source code"; cargo fmt -- --check

Dependencies

~20–32MB
~555K SLoC