Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chriswiegman/gh-backup
A simple utility to easily backup all my public GitHub repos
https://github.com/chriswiegman/gh-backup
backup backup-script git github golang
Last synced: 1 day ago
JSON representation
A simple utility to easily backup all my public GitHub repos
- Host: GitHub
- URL: https://github.com/chriswiegman/gh-backup
- Owner: ChrisWiegman
- License: mit
- Created: 2023-07-06T15:43:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-18T19:10:57.000Z (about 2 months ago)
- Last Synced: 2024-08-18T20:27:40.083Z (about 2 months ago)
- Topics: backup, backup-script, git, github, golang
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# gh-backup
A simple CLI utility, written in GoLang, to backup all of your public GitHub repos.
# Installing gh-backup
There are a few options for installing gh-backup. You can use [Homebrew](https://brew.sh) (recommended), you can install it from the "releases" page here or you can build it manually.
## Install from Homebrew
Installing from [Homebrew](https://brew.sh) is the recommended approach on both Mac and Linux as it allows for automatic updates when needed. To install from Homebrew run the following command:
```
brew install ChrisWiegman/gh-backup/gh-backup
```## Download from GitHub releases
Simply download the latest release from our [release page](https://github.com/ChrisWiegman/gh-backup/releases) and extract the CLI to a location accessible by your system PATH
**Note for Mac users** I have not signed the download copy so you'll need to manually allow it in your Mac settings if you download it from the releases page. Install it via Homebrew to avoid this step.
## Build manually
You will need [Go](https://go.dev) installed locally to build the application for now.
1. Clone this repo `git clone [email protected]:ChrisWiegman/gh-backup.git`
2. CD into the repo and run `make install`Assuming you have Go properly setup with `GOBIN` in your system path, you should now be able to use Kana. Run `gh-backup --version` to test.
# Using
Run the backup in the directory where you want your backups to live
```gh-backup ```