AutoMySQLBackup (Monthly)

| | Comments (0) |

The contents (text) of mac5 are all stored in a MySQL database. I use a script called AutoMySQLBackup to run daily, weekly, and monthly backups of the contents. These "dumps" are then copied over every night by Retrospect to a backup server (currently Mac17's external Seagate drive.)

I routinely check these to make sure they are running by inspecting the contents of a recent dump. I noticed in the monthly set that besides "fivefor1_mtfiveforks" was another database "mysql". Went on a wild goose chase looking under the /etc/periodic/monthly script and couldn't even find AutoMySQLBackup. Turns out the monthly (and weekly) runs are all addressed in a single daily script under /etc/periodic/daily. Oh. Right. Set it up 3 years ago... who can remember.

Turns out I had not noticed an extra "advanced" setting that had a default database "mysql" in it, and so I was backing up a default, empty database every day for the past several years. Not much space, and easy enough to correct. While there decided I should add the gallery2 database (which holds photo titles, descriptions, and comments.)

So on OZ in
HD2:private:etc:periodic:daily:automysqlbackup.sh are two lines:
DBNAMES="fivefor1_mtfiveforks gallery2"
MDBNAMES="fivefor1_mtfiveforks gallery2" <-under advanced settings


Leave a comment

About this Entry

This page contains a single entry by Jeb published on June 8, 2008 11:30 AM.

Movable Type 4 was the previous entry in this blog.

SMTP Inbound on Domino is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.31-en

Good Reads

Flickr Badge

www.flickr.com
This is a Flickr badge showing items in a set called Wallet. Make your own badge here.