# 使用 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
- **版本:** 3.0-rc6
- **来源摘要:** Automate MySQL backups
- **主页:** <https://sourceforge.net/projects/automysqlbackup/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- automysqlbackup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

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


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