# 使用 Homebrew, apk, dnf, MacPorts, Nix 安装 autorestic

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

## 安装

```sh
sudo av install brew:autorestic
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install autorestic
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install autorestic
```

  证据: MacPorts ports tree: sysutils/autorestic/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add autorestic
```

  证据: Alpine Linux edge package indexes: autorestic from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install autorestic
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#autorestic
```

  证据: nixpkgs package indexes: pkgs/by-name/au/autorestic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:autorestic
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/autorestic>
- **版本:** 1.8.3
- **来源摘要:** High level CLI utility for restic
- **主页:** <https://autorestic.vercel.app/>
- **仓库:** <https://github.com/cupcakearmy/autorestic>
- **上游文档:** <https://autorestic.vercel.app/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/cupcakearmy/autorestic/archive/refs/tags/v1.8.3.tar.gz>
- **最后更新:** 2026-07-25T14:18:27-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- autorestic (cli)
- autorestic (别名)

## 依赖

- restic

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.8.3
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/cupcakearmy/autorestic
- 检测到的最新版本: v1.8.3 (当前)
## 项目历史与用法

autorestic is a config-driven backup wrapper around restic. Its niche is turning restic's low-level repository commands into a YAML-managed backup layout with named locations, multiple backends, hooks, retention policies, and cron-oriented automation.

### 项目历史

The project was created in 2019 by cupcakearmy as a higher-level CLI for restic. The official README and docs frame it as a response to restic becoming cumbersome when many locations need to be backed up to multiple destinations.

The first GitHub release, 0.1 Alpha, was published in June 2019. Later documentation describes the version 2 configuration format and a migration path for users coming from the older 0.x series, indicating a rewrite or format break significant enough for backup operators to notice.

### 采用历史

autorestic's adoption path is typical of small but useful backup tooling: binaries and shell installer first, then package-manager availability. Its own installation docs list Homebrew, Fedora, AUR, Docker, and manual binary installation, while the package input records availability in Homebrew, Fedora, Alpine, MacPorts, and Nix.

### 使用方式

Users define locations and backends in `.autorestic.yml`, then run commands such as backup, forget, check, restore, or cron integration through the `autorestic` executable. The docs emphasize storing backend credentials in environment variables or a sibling `.autorestic.env` file so repository keys do not have to live directly in YAML.

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

For package users, autorestic is interesting because it packages an opinionated workflow rather than a storage engine. It depends on restic's ecosystem but adds a declarative layer that makes repeated laptop, server, and Docker-volume backups easier to reproduce across machines.

### 时间线

- 2019: GitHub repository created and 0.1 Alpha release published.
- 2020s: Version 2 YAML configuration and environment-file credential handling documented.
- 2020s: Distribution through Homebrew, Fedora, AUR, Docker, and other package sets broadened the install path beyond the upstream shell installer.

### Related projects

- restic: the backup program autorestic wraps.
- rclone-compatible and cloud backends: commonly reached through restic backend configuration.
- system cron: used by autorestic's scheduled backup workflow.

### 来源

- <https://github.com/cupcakearmy/autorestic>
- <https://raw.githubusercontent.com/cupcakearmy/autorestic/master/docs/pages/backend/env.md>
- <https://raw.githubusercontent.com/cupcakearmy/autorestic/master/docs/pages/config.md>
- <https://raw.githubusercontent.com/cupcakearmy/autorestic/master/docs/pages/index.md>
- <https://raw.githubusercontent.com/cupcakearmy/autorestic/master/docs/pages/installation.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ./.autorestic.yml, ~/.autorestic.yml, ~/.config/autorestic/.autorestic.yml

## Credential files

- Unix: ./.autorestic.env, ~/.autorestic.env, ~/.config/autorestic/.autorestic.env
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** autorestic
- **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

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

- Nix - autorestic: normalized package name match | nixpkgs package indexes: pkgs/by-name/au/autorestic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - autorestic - 1.8.3-r16: normalized package name match | Alpine Linux edge package indexes: autorestic from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Config driven, easy backup cli for restic. | https://github.com/cupcakearmy/autorestic
- dnf - autorestic - 1.8.3-12.fc45: normalized package name match | Fedora Rawhide package metadata: autorestic from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Config driven, easy backup cli for restic | https://github.com/cupcakearmy/autorestic
- MacPorts - autorestic: normalized package name match | MacPorts ports tree: sysutils/autorestic/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [restic](https://pkg.so/zh-hans/brew/restic/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [resticprofile](https://pkg.so/zh-hans/brew/resticprofile/) - Shares pkgdb curated category or tags: backup, cli, restic, system.
- [redu](https://pkg.so/zh-hans/brew/redu/) - Shares pkgdb curated category or tags: backup, cli, restic, 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.
- [borgbackup](https://pkg.so/zh-hans/brew/borgbackup/) - Shares pkgdb curated category or tags: backup, cli, system.
- [duplicity](https://pkg.so/zh-hans/brew/duplicity/) - Shares pkgdb curated category or tags: backup, cli, system.
- [httm](https://pkg.so/zh-hans/brew/httm/) - Local package facts share a topical domain. Shared terms: backup, cli, level, system.

## Combined YAML source

View the package source record on GitHub. [combined/autorestic.yml](https://github.com/mxcl/pkgdb/blob/main/combined/autorestic.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
