Month: June 2019

MySQL Backup Script

Here is a simple PHP backup script that I run from the commandline to backup mysql. Basically it uses mysql_hotcopy which basically locks a table that copies the physical mysql directoy database folder. All my script does is loop through all the databases to a backup directory, then it tar.gz the folder then deletes the copied folder. You could of couse customize this very easily.

Read More “MySQL Backup Script”