For a long time I though the AutoMySQLBackup project had died. Then, after I created many updates, in November of last year I saw some life. Meanwhile, I have continued to update the code and track what people have requested. Low volume project are sometimes hard to keep alive. People think the project is dead and don’t want to use code that will not see updates. Then if you make updates the authors may not come alive often enough to make the changes.
I have updated AutoMySQLBackup again. This time I have included the ability to make backups at the table level by including the table name, with the database name, in the list of databases to be backed up. Adding a ‘.’ between the database name and the table name (data.table) will backup only that table in the database. (IE DBNAME=”mysql test database.table”)
You can download my version here. automysqlbackup.sh.
Some of my improvements include:
- copy (rsync) the local backup files to a remote locations using the COPYDIR variable.
- option to copy files into a directory based on the host name using the variable HOSTNAME. This allows the script to be run from a shared storage directory ( SBM, NFS, NetApp) the data to be kept separate.
- option to backup the full schema only using variable FULLSCHEMA.
- option to backup MySQL configuration file, my.cnf
- remove files older then seven days from the BACKUPDIR directory.
- Added –master-data=2 and –single-transaction to include a replication information as a comment
- The ability to backup a single table in a database.
Image may be NSFW.
Clik here to view.
PlanetMySQL Voting: Vote UP / Vote DOWN