#! /bin/sh [ "$1" = "pre-restore" ] || exit 0 cd /var/lib/mysql && find . -type f | xargs rm -f