Friday, September 20, 2013

Block backup in cPanel, during business hours

Block backup in cPanel, during business hours

This example will release the full backup in cPanel from 23:00 PM to 06:00 AM everyday including Sunday:


In the shell type the following command:

env EDITOR=nano crontab -e

At the end of the file enter:

00 23 * * 1,2,3,4,5,6,7 chmod 755 /scripts/pkgacct 
00 06 * * 1,2,3,4,5,6,7 chmod 000 /scripts/pkgacct

Type CTRL + X (to exit), then Y (To tell you want to save changes) and ENTER (To confirm you want to save the file).

Now restart CRON service, your server:

/etc/init.d/crond restart

No comments:

Post a Comment