All pastes #880631 Raw Edit

Stuff

public text v1 · immutable
#880631 ·published 2008-01-29 20:47 UTC
rendered paste body
#!/bin/csh
umask 066
set disk = `echo $bkppath\/$bkpdate\/mysql`  # default storage location
foreach i (`ls -1 /var/lib/mysql | grep -vF . | grep -v -e ibdata -e ib_logfile`)
  /usr/bin/mysqldump --allow-keywords $i > ${disk}/${i}.sql
end
exit