All pastes #1955503 Raw Edit

Display all MySQL databases modi

public shellscript v1 · immutable
#1955503 ·published 2010-10-06 10:49 UTC
rendered paste body
#!/bin/sh# This script will find all MySQL databases modified within the last 90 daysexport SEARCHPERIOD="90"export DBPATH="/var/lib/mysql/"find $DBPATH -mtime -$SEARCHPERIOD -type f -exec dirname {} \; | replace $DBPATH "" | uniq