Tag: cron

linux - Automatic MySQL Database Backups Using CRONTAB

Automatic MySQL Database Backups Using CRONTAB

Here is how to set up a cronjob that automatically backs up a MySQL database to a file every hour. Okay, so first we need to create a new script that will be executed via cron: #!/bin/bash YEAR=`date +%Y` MONTH=`date +%m` DAY=`date +%d` HOUR=`date...

email 3249062 1280 - Get Email Alert on low Disk Space

Get Email Alert on low Disk Space

Here is a small script that will send you an email when the disk usage rises above the percentage specified by the THRESHOLD variable (90% in the example bellow). If you don’t want to step up to a full monitoring solution such as Nagios...