# 使用 Homebrew, apt, Nix 安装 automysqlbackup

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

## 安装

```sh
sudo av install brew:automysqlbackup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install automysqlbackup
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install automysqlbackup
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#automysqlbackup
```

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

## 软件包事实

- **软件包键:** brew:automysqlbackup
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/automysqlbackup>
- **版本:** 3.0-rc6
- **来源摘要:** Automate MySQL backups
- **主页:** <https://sourceforge.net/projects/automysqlbackup/>
- **上游文档:** <https://sourceforge.net/projects/automysqlbackup/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- automysqlbackup (cli)
- automysqlbackup (别名)

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: You will have to edit $HOMEBREW_PREFIX/etc/automysqlbackup/automysqlbackup.conf to set AutoMySQLBackup up to find your database and backup directory. The included service will run AutoMySQLBackup every day at 04:00.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.0-rc6
- 本地数据: OK
- 上游仓库: https://sourceforge.net/projects/automysqlbackup/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

AutoMySQLBackup is a shell-script utility for scheduled MySQL backup rotation. It is small, old-school ops software: edit a root-owned config, call the script from cron, and rotate daily, weekly, and monthly dumps.

### 项目历史

The official GitHub README says the script was originally developed by a team on SourceForge and that the GitHub repository was created as a clone for further maintenance after the SourceForge project appeared unmaintained. GitHub metadata dates the mattanja/automysqlbackup repository to October 2012.

The README emphasizes operational responsibility and restore procedures as much as installation. That is typical for backup tooling: the script can automate mysqldump runs, but users still need offline copies, permissions, encryption choices, and tested restores.

### 采用历史

The batch input lists packages for Homebrew, Debian, Ubuntu, and Nix. That is modest but real adoption for a narrowly scoped backup script.

Its GitHub metadata shows a small repository with a low star/fork count compared with general developer tools, so the history should be read as practical sysadmin utility adoption rather than broad developer-culture prominence.

### 使用方式

The README documents installing to /usr/local/bin, creating /etc/automysqlbackup, copying automysqlbackup.conf to myserver.conf, then running automysqlbackup with that config path or from cron.daily.

Credentials live in the same configuration files as the backup settings: the documented defaults include CONFIG_mysql_dump_username, CONFIG_mysql_dump_password, host, socket, and encryption settings.

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

AutoMySQLBackup is significant as an example of a package-manager-distributed cron-era admin script. Packaging matters because users expect the executable, sample config, cron integration, and filesystem permissions to land in predictable places.

### 时间线

- Pre-2012: Original AutoMySQLBackup project maintained on SourceForge.
- 2012: mattanja/automysqlbackup GitHub repository created as a continued-maintenance clone.
- 2020s: Package remains available in a small set of package managers for users who want a simple MySQL dump rotation script.

### Related projects

- mysqldump is the underlying MySQL dump tool commonly used by scripts like AutoMySQLBackup.
- cron is the traditional scheduler used in the README examples.
- Modern alternatives include database-native backup tooling, Percona XtraBackup, and managed-database snapshot systems.

### 来源

- <https://api.github.com/repos/mattanja/automysqlbackup>
- <https://github.com/mattanja/automysqlbackup#readme>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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/automysqlbackup/automysqlbackup.conf, /etc/automysqlbackup/myserver.conf

## Credential files

- Unix: /etc/automysqlbackup/automysqlbackup.conf, /etc/automysqlbackup/myserver.conf
## 源数据库详情

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

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

- Debian apt - automysqlbackup - 2.6+debian.4-4: normalized package name match | Debian stable package indexes: automysqlbackup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | daily, weekly and monthly backup for your MySQL database | http://sourceforge.net/projects/automysqlbackup/
- Nix - automysqlbackup: normalized package name match | nixpkgs package indexes: pkgs/by-name/au/automysqlbackup/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - automysqlbackup - 2.6+debian.4-4: normalized package name match | Ubuntu 24.04 LTS package indexes: automysqlbackup from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | daily, weekly and monthly backup for your MySQL database | http://sourceforge.net/projects/automysqlbackup/


## 相关链接

- [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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [mydumper](https://pkg.so/zh-hans/brew/mydumper/) - Shares pkgdb curated category or tags: backup, cli, data, database, mysql.
- [percona-xtrabackup](https://pkg.so/zh-hans/brew/percona-xtrabackup/) - Shares pkgdb curated category or tags: backup, cli, data, database, mysql.
- [dumpling](https://pkg.so/zh-hans/brew/dumpling/) - Shares pkgdb curated category or tags: backup, cli, data, database, mysql.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [mysql@8.0](https://pkg.so/zh-hans/brew/mysql-8-0/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [mysql@8.4](https://pkg.so/zh-hans/brew/mysql-8-4/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [lazysql](https://pkg.so/zh-hans/brew/lazysql/) - Shares pkgdb curated category or tags: cli, data, database, mysql.
- [rainfrog](https://pkg.so/zh-hans/brew/rainfrog/) - Shares pkgdb curated category or tags: cli, data, database, mysql.

## Combined YAML source

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