Tag Archives: cron

Simple Mysql Backup Script can be used with Crontab

This script backs up all databases on the server it’s running on. Usually ran as a cron job. Hope someone else can use this as well. #!/bin/bash # Backup ALL mysql databases # by crouse – https://crouse.us x=`mysql –user=root –password=REMOVED -B -e "show databases" | wc -l `; y=$((x-2)); for i in `mysql –user=root –password=REMOVED… Read More »

cronhelp – a syntax reminder for crontab

One of the things an admin needs to know how to do quickly, is setup cronjobs. This is of course done using the crontab -e command. The syntax is hard for some to remember and instead of going to google and searching every time I needed to know the syntax again, years ago I created… Read More »