# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.8.3
- **来源摘要:** High level CLI utility for restic
- **主页:** <https://autorestic.vercel.app/>
- **仓库:** <https://github.com/cupcakearmy/autorestic>
- **最后更新:** 2026-07-25T14:18:27-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- autorestic (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
