# 使用 Homebrew, apt, dnf, zypper 安装 backupninja

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

## 安装

```sh
sudo av install brew:backupninja
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install backupninja
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install backupninja
```

  证据: Debian stable package indexes: backupninja from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install backupninja
```

  证据: Fedora Rawhide package metadata: backupninja from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install backupninja
```

  证据: openSUSE Tumbleweed package metadata: backupninja from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:backupninja
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/backupninja>
- **版本:** 1.2.2
- **来源摘要:** Backup automation tool
- **主页:** <https://0xacab.org/liberate/backupninja>
- **上游文档:** <https://0xacab.org/liberate/backupninja>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://0xacab.org/liberate/backupninja/-/archive/backupninja_upstream/1.2.2/backupninja-backupninja_upstream-1.2.2.tar.gz>
- **最后更新:** 2026-07-23T08:43:11Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- backupninja (cli)
- ninjahelper (cli)
- backupninja (别名)
- ninjahelper (别名)

## 依赖

- bash
- dialog

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.2.2
- 管理器更新时间: 2026-07-23
- 本地数据: OK
- 上游仓库: https://0xacab.org/liberate/backupninja
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

backupninja is a long-running Unix backup coordinator that turns system backups into ordered, scheduled configuration files under /etc/backup.d. Its value is orchestration: it wraps tools such as rdiff-backup, duplicity, borg, restic, database dumpers, and custom scripts behind one simple configuration style.

### 项目历史

The official changelog records an initial release on 2004-10-08. By late 2004 it had moved to ini-style configuration, root-run handler scripts, a /usr/share/backupninja library directory, scheduled actions, system-report handlers, test mode, and /etc/backup.d permissions.

The 2005 releases added much of the shape administrators still recognize: hourly scheduling, numeric ordering fixes, duplicity and maildir handlers, subversion hotbackup, LDAP support, vserver support, mysql configuration improvements, and safer duplicity options.

Later releases modernized the handler ecosystem rather than replacing the core idea. The 2018 1.1.0 release added initial borgbackup support; the 2021 1.2.0 release introduced restic support, tests, a --version flag, and a Keep a Changelog project format; the 2023 1.2.2 release added Prometheus metrics for backup status.

### 采用历史

backupninja has classic distribution-style adoption. The supplied package-manager facts list Homebrew, Debian, Ubuntu, Fedora, and openSUSE packages, while the changelog references Debian bug numbers across many releases. Its audience is administrators who prefer auditable files and cron-like scheduling over a single monolithic backup product.

### 使用方式

Users configure global behavior in /etc/backupninja.conf and drop per-action files into /etc/backup.d. backupninja processes suffix-based handlers in alphabetical order, supports scheduled when clauses, can test runs without performing backups, and provides ninjahelper as a curses-based wizard for creating action configuration files.

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

backupninja is package-nerd history in miniature: a small Debian-era shell tool that survived by being boring, extensible, and distribution-friendly. It is useful precisely because it delegates storage mechanics to packaged backup programs while standardizing scheduling, reporting, handler discovery, and config layout.

### 时间线

- 2004: Initial release recorded in the official changelog.
- 2004: 0.3 rewrote scripts in bash and switched to ini-style configuration.
- 2005: 0.4.4 added duplicity, maildir, subversion hotbackup, and --run support.
- 2005: 0.6 added LDAP and vserver support plus expanded duplicity options.
- 2018: 1.1.0 added initial borgbackup support.
- 2021: 1.2.0 introduced restic support, tests, --version, and Keep a Changelog format.
- 2023: 1.2.2 added Prometheus metrics for backup status.

### Related projects

- The README lists rdiff-backup, duplicity, borgbackup, restic, mysqlhotcopy, mysqldump, PostgreSQL backup handling, Subversion backup support, and arbitrary shell scripts as backup action families. Its design is also adjacent to cron, sysvinit-style ordering, and distribution packaging.

### 来源

- <https://0xacab.org/api/v4/projects/liberate%2Fbackupninja>
- <https://0xacab.org/liberate/backupninja/-/blob/master/README.md>
- <https://0xacab.org/liberate/backupninja/-/raw/master/CHANGELOG.md>
- source_facts.package-manager


## 安全说明

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

- Unix: /etc/backupninja.conf, /etc/backup.d/
## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - backupninja - 1.2.2-1: normalized package name match | Debian stable package indexes: backupninja from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight, extensible meta-backup system | https://0xacab.org/liberate/backupninja
- Ubuntu apt - backupninja - 1.2.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: backupninja from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight, extensible meta-backup system | https://0xacab.org/liberate/backupninja
- dnf - backupninja - 1.2.2-11.fc45: normalized package name match | Fedora Rawhide package metadata: backupninja from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Lightweight, extensible backup system | https://0xacab.org/liberate/backupninja
- zypper - backupninja - 1.2.2-3.5: normalized package name match | openSUSE Tumbleweed package metadata: backupninja from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Lightweight, extensible meta-backup system | https://0xacab.org/liberate/backupninja


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [bash](https://pkg.so/zh-hans/brew/bash/) - Runtime dependency declared by Homebrew.
- [dialog](https://pkg.so/zh-hans/brew/dialog/) - Runtime dependency declared by Homebrew.
- [borgmatic](https://pkg.so/zh-hans/brew/borgmatic/) - Shares pkgdb curated category or tags: automation, backup, cli, system.
- [resticprofile](https://pkg.so/zh-hans/brew/resticprofile/) - Shares pkgdb curated category or tags: automation, backup, cli, system.
- [gnu-tar](https://pkg.so/zh-hans/brew/gnu-tar/) - Shares pkgdb curated category or tags: backup, cli, system.
- [rclone](https://pkg.so/zh-hans/brew/rclone/) - Shares pkgdb curated category or tags: backup, cli, system.
- [rsync](https://pkg.so/zh-hans/brew/rsync/) - Shares pkgdb curated category or tags: backup, cli, system.
- [cliclick](https://pkg.so/zh-hans/brew/cliclick/) - Shares pkgdb curated category or tags: automation, cli, system.
- [restic](https://pkg.so/zh-hans/brew/restic/) - Shares pkgdb curated category or tags: backup, cli, system.
- [borgbackup](https://pkg.so/zh-hans/brew/borgbackup/) - Shares pkgdb curated category or tags: backup, cli, system.
- [bashish](https://pkg.so/zh-hans/brew/bashish/) - Local package facts share a topical domain. Shared terms: bash, cli, dialog, system.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
