automysqlbackup(8)
β¨ automysqlbackup β¨
okay bestie, welcome to automysqlbackup(8) β she's a little script that backs up ALL your databases on the daily, the weekly, AND the monthly. three whole timeframes. she's booked and busy. π
π SYNOPSIS π
automysqlbackup
that's it. that's the whole vibe. you just run her. β¨
π DESCRIPTION π
so like, this manual page is the quick lil rundown of the automysqlbackup command. it's giving "briefly documents", and honestly? we love that for us.
the configuration? it lives inside the /etc/default/automysqlbackup file. that's her home. that's where you go to tell her what to do. π
πΈ PARAMETERS πΈ
these are the everyday, main-character settings you'll find in that config file. no cap.
USERNAME=dbuserβ the username you use to access the MySQL server, e.g.dbuser. who are you logging in as, bestie?PASSWORD="password"β the password to access the MySQL server, e.g.password. (yes the manpage says "Username" here. we're just gonna keep it real and tell you it's the password. π)DBHOST=localhostβ host name (or IP address) of the MySQL server, e.g.localhost.DBNAMES="DB1 DB2 DB3"β the list of DBNAMES for your Daily/Weekly Backup, e.g."DB1 DB2 DB3". drop 'em all in there, space-separated, slay.BACKUPDIR="/backups"β where the backup directory lives, e.g./backups.MAILCONTENT="stdout"β mail setup! what would you like mailed to you? choices are:log: send only the log filefiles: send the log file and the sql files as attachments (see docs)stdout: will simply output the log to the screen if run manually.quiet: Only send logs if an error occurs to theMAILADDR.
MAXATTSIZE="4000"β set the maximum allowed email size in k. (4000= approx 5MB email [see docs]). like, keep it reasonable bestie.MAILADDR="user@domain.com"β email address to send mail to? (user@domain.com). where do the receipts go??
π ADVANCED OPTIONS π
ok now we're in the deep end. this is the highkey stuff. π¦
MDBNAMES="mysql $DBNAMES"β list of DBBNAMES for Monthly Backups. (yep, the original really does say DBBNAMES. iconic typo, we keep it. π)DBEXCLUDE=""β list of DBNAMES to EXCLUDE ifDBNAMESare set to all (must be in"quotes). not you, not you, and definitely not you.CREATE_DATABASE=yesβ includeCREATE DATABASEin the backup? yes or no, your call.SEPDIR=yesβ separate backup directory and file for each DB? (yesorno). keep your girls organized fr fr.DOWEEKLY=6β which day do you want weekly backups at? (1to7where1is Monday).COMP=gzipβ choose compression type. (gziporbzip2).COMMCOMP=noβ compress communications between the backup server and the MySQL server?LATEST=noβ additionally keep a copy of the most recent backup in a separate directory. main character backup gets her own room. πMAX_ALLOWED_PACKET=β the maximum size of the buffer for client/server communication. e.g.16MB(maximum iSOCKET=β for connections to localhost. sometimes the Unix socket file must be specified. lowkey important.#PREBACKUP="/etc/automysqlbackup/mysql-backup-pre"β command to run before backups (uncomment to use). it's commented out, so uncomment it if you want it, bestie.#POSTBACKUP="/etc/automysqlbackup/mysql-backup-post"β command run after backups (uncomment to use). same deal.
heads up: those last two are commented out with a # in the config β they do nothing until you uncomment them. π
π AUTHOR π
this manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>. for the Debian GNU/Linux system, but can be used by others. we stan a generous king. π«Ά
and that's the whole page, bestie!! π written by wipe_out, dated 6 Sep 2008 β yeah she's vintage, she's a classic, she's still out here backing up your databases. no notes. periodt. β¨ππ¦
π¦ where this page comes from
- debian bookworm: automysqlbackup 2.6+debian.4-4 Β· GPL-2.0-or-later
- debian trixie: automysqlbackup 2.6+debian.4-4 Β· GPL-2.0-or-later
- ubuntu jammy: automysqlbackup 2.6+debian.4-4 Β· GPL-2.0-or-later
- ubuntu noble: automysqlbackup 2.6+debian.4-4 Β· GPL-2.0-or-later
- ubuntu resolute: automysqlbackup 2.6+debian.4-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: automysqlbackup 2.6+debian.4-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms