Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    6

    Default Backup Execution Time

    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

  2. #2
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Edit the root crontab - "crontab -e" .

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  4. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks Squirrel for keeping me honest.

  5. #5
    Member
    Join Date
    Sep 2004
    Posts
    6

    Default

    Thanks for the help.

  6. #6
    BANNED
    Join Date
    Dec 2004
    Posts
    105

    Default

    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

  7. #7
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

  8. #8
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Question

    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?

  9. #9
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Default

    Hi Guys,

    Nevermind.....The search feature is a wonderful thing ;-) I found my answer /scripts/cpbackup

    Thanks anyways..

    Kevin

  10. #10
    Member
    Join Date
    Oct 2003
    Posts
    173

    Default

    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

  11. #11
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by WestBend
    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.

  12. #12
    Member
    Join Date
    Jan 2003
    Posts
    141

    Default

    Quote Originally Posted by cPanelBilly
    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.

    It has (WHM 9.9.9 cPanel 9.9.9-S15)

  13. #13
    Member
    Join Date
    Feb 2002
    Posts
    26

    Default

    Quote Originally Posted by eagle
    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 9pm

Similar Threads & Tags
Similar threads

  1. Configure backup - one time backup
    By will72wein in forum Data Protection
    Replies: 2
    Last Post: 02-09-2010, 09:47 AM
  2. Maximum Execution Time of 30 seconds..
    By DeadBeet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-16-2008, 02:02 PM
  3. Cron jobs - Fatal error: Maximum execution time of 30 seconds exceeded
    By torres87 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-03-2008, 02:32 AM
  4. Squirrelmail - Maximum execution time of 30 seconds exceeded
    By aingaranweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-21-2006, 10:37 PM
  5. Backup....at what time?
    By r3diensten in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 04-13-2005, 09:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube