Loading...
 

Greg's tiki blog

HDA MySQL backup

Sunday 20 of November, 2011

To backup MySQL

- setup backup job using Webmin
-- Save backup to /mnt/samba/Misc/backup
-- Config command to run after backup (see script below)
-- Ensure share is duplicated
-
{CODE (caption="zipup bash script" wrap=1)}

  1. zipup
  2. !/bin/sh

cd $1
sleep 5
fdate=$(date +"%Y-No value assignedd")
tar -cz -f $fdate.tar *.sql
rm -f *.sql
{CODE}