Archive for 2 August 2013

A simple cron job to perform a recurring MySQL database backup

I’ve written a simple script that performs a MySQL database dump and can be added as a cron job to run at regular intervals. This script will dump the entire database to a file and gzip it, while also creating a log of its activities. Before starting, identify which user the script should run as. I [...]