# Install automysqlbackup with Homebrew, apt, Nix

Automate MySQL backups. Version 3.0-rc6 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install automysqlbackup
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install automysqlbackup
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:automysqlbackup
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/automysqlbackup>
- **Version:** 3.0-rc6
- **Source summary:** Automate MySQL backups
- **Homepage:** <https://sourceforge.net/projects/automysqlbackup/>
- **Repository:** <https://github.com/mattanja/automysqlbackup>
- **Upstream docs:** <https://github.com/mattanja/automysqlbackup#readme>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- automysqlbackup (cli)
- automysqlbackup (alias)

## Install behavior

- Post-install hook: not defined
- Service: declared
- Caveats: 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: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.0-rc6
- Local data: ok
- Upstream repository: https://sourceforge.net/projects/automysqlbackup/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** orange / medium
- 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 Details

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

## Other Package-Manager Records

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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [percona-xtrabackup](https://www.automicvault.com/pkg/brew/percona-xtrabackup/) - Shares av.db curated category or tags: backup, cli, data, database, mysql.
- [dumpling](https://www.automicvault.com/pkg/brew/dumpling/) - Shares av.db curated category or tags: backup, cli, data, database, mysql.
- [mydumper](https://www.automicvault.com/pkg/brew/mydumper/) - Shares av.db curated category or tags: backup, cli, data, database, mysql.
- [kitchen-sync](https://www.automicvault.com/pkg/brew/kitchen-sync/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [lazysql](https://www.automicvault.com/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [mysql](https://www.automicvault.com/pkg/brew/mysql/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [percona-server](https://www.automicvault.com/pkg/brew/percona-server/) - Shares av.db curated category or tags: cli, data, database, mysql.
- [whodb-cli](https://www.automicvault.com/pkg/brew/whodb-cli/) - Shares av.db curated category or tags: cli, data, database, mysql.

## Combined YAML source

View the package source record on GitHub. [combined/automysqlbackup.yml](https://github.com/automic-vault/db/blob/main/combined/automysqlbackup.yml)


## Sources

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