Skip to content

Instantly share code, notes, and snippets.

@hacklschorsch
hacklschorsch / mysql_backup_cron
Created December 5, 2011 10:28
Rolling MySQL snapshots in two lines of code
# Scope: Back up the MySQL database
# Author: Florian Sesser <fs@it-agenten.com>
# Date: 2011-11-11, 2011-12-05
# This script is to be placed into /etc/cron.d/ (it's a cron config file)
# We are on a debian-based distribution and use the debian-sys-maint
# account. If you need to create an account for backup purposes, it
# has to have permissions to "read" and "lock tables:
#