How can I change the time the WHM runs the backups ... right now its at a near peak hour and occasionally crashes my server.
Keith
How can I change the time the WHM runs the backups ... right now its at a near peak hour and occasionally crashes my server.
Keith
Edit the root crontab - "crontab -e" .
As sawbuck said, but just in case you don't know, the /scripts/upcp is what you want to change the time for. Backup is part of the cpanel upgrade (upcp). It's the last thing that runs in that job.
Thanks Squirrel for keeping me honest.![]()
Thanks for the help.
I'm a little confused about this
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
48 3 * * * /scripts/upcp
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
Thats mine. So you say the line with /scripts/upcp is also the one that does the WHM backups each day? How do I make it do it lets say 3am? I'm not sure what the 48 so please kindly explain.
Thank you
48 would be 48 minutes after 3 AM. If the crontab entries are not running at what you think are the proper times, double check the server time setting in WHM taking into account your time zone and the location of the server itself.
I was wondering the same thing. Thanks for the answers. Now I have an additional question....Is there a way to execute the backup process manually, without waiting for the set time?
Hi Guys,
Nevermind.....The search feature is a wonderful thing ;-) I found my answer /scripts/cpbackup
Thanks anyways..
Kevin
I was reading this thread and checked my cron and it shows :
1 5 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
But I don't appear to be getting two backups. I looked at the upcp script and it shows :
foreach $line (@CT) {
if ($line =~ /\/scripts\/upcp/) {
$ucp = 1;
}
if ($line =~ /\/scripts\/cpbackup/) {
$bcp = 1;
}
}
if (!$ucp || !$bcp) {
@CT=grep(!/\/scripts\/upcp/, @CT);
@CT=grep(!/\/scripts\/cpbackup/, @CT);
my $rt = int(rand(2.9999999));
my $hour = int(rand(6));
if ($rt == 0) {
$hour = (24-int(rand(4)));
}
if ($hour == 24) { $hour = 0; }
push(@CT,int(rand(60)) . " " . $hour . " * * * /scripts/upcp");
push(@CT,"0 1 * * * /scripts/cpbackup");
open(CR,">/scripts/.crontab");
foreach $line (@CT) {
print CR "$line\n";
}
close(CR);
system("crontab /scripts/.crontab");
unlink("/scripts/.crontab");
}
Which looks like it is pushing the /scripts/backup into the crontab to run seperately.
Can anyone explain this?
thanks
That is correct, due to request backups now run at a different time than upcp. I believe its in release and up, not sure if it has hit stable yet.Originally Posted by WestBend
Originally Posted by cPanelBilly
It has (WHM 9.9.9 cPanel 9.9.9-S15)
well min says run a re 3:20 am and its running right now 9pmOriginally Posted by eagle