]> andersk Git - sql.git/blob - libexec/cron-weekly-local.sh
only run cron jobs on slaves
[sql.git] / libexec / cron-weekly-local.sh
1 #!/bin/bash
2
3 if [[ -s /srv/mysql/master.info ]]; then
4     if [[ `ls /srv/backup/daily/ | wc -l` -ge 3 ]]; then
5         mv /srv/backup/daily/`ls -t /srv/backup/daily/ | tail -n1` /srv/backup/weekly/
6     fi
7 fi
This page took 0.497642 seconds and 5 git commands to generate.