# 使用 Homebrew 安装 gitbackup

查看 gitbackup 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitbackup
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gitbackup
- **软件包管理器:** Homebrew
- **版本:** 1.3.1
- **来源摘要:** Tool to backup your Bitbucket, GitHub and GitLab repositories
- **主页:** <https://github.com/amitsaha/gitbackup>
- **仓库:** <https://github.com/amitsaha/gitbackup>
- **最后更新:** 2026-07-25T20:55:23-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitbackup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.1
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

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

- **Geiger 风险:** blue / 中
- 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

## Combined YAML source

View the package source record on GitHub. [combined/gitbackup.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gitbackup.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
