#!/bin/sh
MAKINGBACKUP=0
if [ "$command" = "/CMD_SITE_BACKUP" ]; then
if [ "$action" = "backup" ]; then
MAKINGBACKUP=1
fi
fi
if [ "$MAKINGBACKUP" -eq 1 ]; then
HOUR=`date +%k`
if [ "$HOUR" -ge [color="red"]1[/color] ] && [ "$HOUR" -lt [color="red"]2[/color] ]; then
//this is a valid time, exit.
exit 0;
else
echo "Backups must be created between 1am and 2am";
exit 1;
fi
fi
may i know how to disable user backup?
it will cause server load high.
* * * * * root nice -n 19 /usr/local/directadmin/dataskq