# Install gitbackup with Homebrew

Tool to backup your Bitbucket, GitHub and GitLab repositories. Version 1.3.1 via Homebrew; verified 2026-06-02.

## Install

```sh
sudo av install brew:gitbackup
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gitbackup
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:gitbackup
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gitbackup>
- **Version:** 1.3.1
- **Source summary:** Tool to backup your Bitbucket, GitHub and GitLab repositories
- **Homepage:** <https://github.com/amitsaha/gitbackup>
- **Repository:** <https://github.com/amitsaha/gitbackup>
- **Upstream docs:** <https://github.com/amitsaha/gitbackup#readme>
- **License:** MIT
- **Source archive:** <https://github.com/amitsaha/gitbackup/archive/refs/tags/v1.3.1.tar.gz>
- **Last updated:** 2026-06-02T22:18:46Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gitbackup (cli)
- gitbackup (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.3.1
- Package-manager updated: 2026-06-02
- Local data: ok
- Upstream repository: https://github.com/amitsaha/gitbackup
- Upstream latest detected: v1.3.1 (current)
## Project history and usage

gitbackup is a Go command-line tool for backing up repositories from GitHub, GitLab, Bitbucket, and Forgejo. It is aimed at users and teams that want local or migration-style copies of hosted Git repositories.

### Project history

Amit Saha's project dates back to at least 2017, when the README pointed readers of a Linux Journal article to the lj-0.1 era of the source. The tool grew from repository cloning into a broader backup utility with service-specific authentication, OS-specific configuration paths, Docker images, and a GitHub migration mode.

### Adoption history

gitbackup serves a practical niche rather than a broad platform role: independent developers, consultants, and organizations that want a repeatable backup path for repositories spread across hosted forges. Homebrew packaging gave macOS users a direct installation path, while release binaries and containers cover other deployments.

### How it is used

Practitioners configure service tokens, choose a provider, and run gitbackup to clone repositories into a backup directory. GitHub users can also use migration-oriented commands that retrieve archive artifacts supported by GitHub's Migration API.

### Why package nerds care

The package is a reminder that source hosting is not a backup strategy by itself. In package-manager terms, gitbackup wraps forge APIs, Git clone behavior, and host-specific credentials into one installable disaster-recovery utility.

### Timeline

- 2017: v0.1-era source associated with a Linux Journal backup article.
- 2019: 0.4 and 0.5 release tags followed the early Go CLI line.
- 2021: 0.6 added the documented GitHub OAuth device flow.
- 2026: README described commercial support by Common Loop Works Pty Ltd.

### Related projects

- Git provides the clone and repository data model.
- GitHub, GitLab, Bitbucket, and Forgejo provide the hosted repository APIs.
- GitHub's Migration API supplies the archive-based GitHub backup mode.

### Sources

- <https://formulae.brew.sh/formula/gitbackup>
- <https://github.com/amitsaha/gitbackup>
- <https://github.com/amitsaha/gitbackup/releases>
- <https://raw.githubusercontent.com/amitsaha/gitbackup/master/README.md>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: $XDG_CONFIG_HOME/gitbackup/gitbackup.yml, ~/.config/gitbackup/gitbackup.yml
- macOS: ~/Library/Application Support/gitbackup/gitbackup.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gitbackup
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, github, gitlab.
- [git-spice](https://www.automicvault.com/pkg/brew/git-spice/) - Shares av.db curated category or tags: cli, developer-tools, git, github, gitlab.
- [microplane](https://www.automicvault.com/pkg/brew/microplane/) - Shares av.db curated category or tags: cli, developer-tools, git, github, gitlab.
- [gh](https://www.automicvault.com/pkg/brew/gh/) - Shares av.db curated category or tags: cli, developer-tools, git, github, version-control.
- [ghorg](https://www.automicvault.com/pkg/brew/ghorg/) - Shares av.db curated category or tags: backup, bitbucket, cli, developer-tools, git.
- [gickup](https://www.automicvault.com/pkg/brew/gickup/) - Shares av.db curated category or tags: backup, cli, developer-tools, git.
- [git-open](https://www.automicvault.com/pkg/brew/git-open/) - Shares av.db curated category or tags: cli, developer-tools, git, github, version-control.
- [git-xargs](https://www.automicvault.com/pkg/brew/git-xargs/) - Shares av.db curated category or tags: cli, developer-tools, git, github, version-control.

## Combined YAML source

View the package source record on GitHub. [combined/gitbackup.yml](https://github.com/automic-vault/db/blob/main/combined/gitbackup.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
