#!/bin/sh
/bin/mkdir -p /backup/mysql_backup/`date +\%Y-\%m-\%d`
/bin/tar czfP /backup/mysql_backup/`date +\%Y-\%m-\%d`/`date +\%s`.tgz /var/lib/mysql
chmod -R 700 /backup/mysql_backup
