---
title: "Yet another MySQL backup procedure"
date: "2010-05-04"
path: "/53-yet-another-mysql-backup-procedure.html"
section: "/ramblings"
aliases:
  - "/53"
  - "/53-yet-another-mysql-backup-procedure"
  - "/53.html"
  - "/ramblings/53-yet-another-mysql-backup-procedure.html"
---

Simple script to backup a MySQL database and delete files older than two days:

<https://gist.github.com/5081943>

In this case we get two files created each run, the main SQL file and a Zipped version. Next step: roll out Zmanda across all MySQL instances!
