The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IMPORTANT: WHERE are the BACKUP cron file located?

Discussion in 'General Discussion' started by oSM, Sep 2, 2002.

  1. oSM

    oSM Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    WHM Backup is set to backup WEEKLY. Now the funny thing is that it decides to run on a Monday at 12PM every week... Just about the BUSIEST TIME a web server gets.... MY question is simple...


    WHERE are the backup cron files located? I want to change the schedules for Cpanels backup program.
     
  2. Curt

    Curt Well-Known Member

    Joined:
    Oct 16, 2001
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    I would also like to know this one, anyone have an answer???

    Thanks!
     
  3. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    I don't use the cpanel backup function, but look under:

    /etc/cron.weekly

    If you don't find it there, then do this:

    crontab -e

    There should be a line there for the backup, just modify it to your needs.
     
  4. powersurgetek

    powersurgetek Registered

    Joined:
    Dec 21, 2001
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    The backup script runs as part of the upcp script. You should be able to change the time that it runs by changing the time that upcp runs in your crontab.
     
  5. SonServers

    SonServers Well-Known Member

    Joined:
    Oct 24, 2001
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    So, does that mean that if you have Cpanel updates set to manual only, the backups don't happen? Or, does upcp still run everything except the update when you are set to manual?

    Thanks
     
  6. bdraco

    bdraco Guest

    [quote:1a9b703cd3][i:1a9b703cd3]Originally posted by SonServers[/i:1a9b703cd3]

    So, does that mean that if you have Cpanel updates set to manual only, the backups don't happen?
    [/quote:1a9b703cd3]

    [quote:1a9b703cd3]Or, does upcp still run everything except the update when you are set to manual?[/quote:1a9b703cd3]
    yes

    [quote:1a9b703cd3]
    Thanks[/quote:1a9b703cd3]
     
  7. oSM

    oSM Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    i notice that if one sets the backup to run weekly... it sometimes runs on a WEDNESDAY!!! How does one set it to run on a sunday or monday morning? at perhaps 2am on monday?
     
  8. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    450
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    All over!
    [quote:e0b8df4a23][i:e0b8df4a23]Originally posted by bert[/i:e0b8df4a23]

    I don't use the cpanel backup function, but look under:

    /etc/cron.weekly

    If you don't find it there, then do this:

    crontab -e

    There should be a line there for the backup, just modify it to your needs.[/quote:e0b8df4a23]


    Bert:

    I did what you said and the below is what came up. Now how the heck do I set all of my backups to runon Sunday at 3am?

    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    11 5 * * * /scripts/upcp
    */5 * * * * /usr/local/cpanel/bin/dcpumon &/dev/null 2&&1
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The cronjob file containing the schedule for cpanel updates and backing up is /var/spool/cron/root.
    The line ending with /scripts/upcp is the one that sets the time and needs to be changed.
    11 5 * * * /scripts/upcp means it is set to run at 5:11am daily.
    To run on Sunday at 3am it needs to be changed to
    0 3 * * 0 /scripts/upcp
    Monday morning 2am would be
    0 2 * * 1 /scripts/upcp
     
  10. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    450
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    All over!
    [quote:7607fd6b1a][i:7607fd6b1a]Originally posted by squirrel[/i:7607fd6b1a]

    The cronjob file containing the schedule for cpanel updates and backing up is /var/spool/cron/root.
    The line ending with /scripts/upcp is the one that sets the time and needs to be changed.
    11 5 * * * /scripts/upcp means it is set to run at 5:11am daily.
    To run on Sunday at 3am it needs to be changed to
    0 3 * * 0 /scripts/upcp
    Monday morning 2am would be
    0 2 * * 1 /scripts/upcp[/quote:7607fd6b1a]


    Is this right? This is what i did and got:
    cd /etc/cron.weekly
    then
    crontab -e
    then I made the changes so my backup will run at 3am every day. EG:
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    0 3 * * * /scripts/upcp
    */5 * * * * /usr/local/cpanel/bin/dcpumon &/dev/null 2&&1
     
  11. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    [quote:7492c37b2b][i:7492c37b2b]Originally posted by ThunderHostingDotCom[/i:7492c37b2b]

    [quote:7492c37b2b][i:7492c37b2b]Originally posted by squirrel[/i:7492c37b2b]

    The cronjob file containing the schedule for cpanel updates and backing up is /var/spool/cron/root.
    The line ending with /scripts/upcp is the one that sets the time and needs to be changed.
    11 5 * * * /scripts/upcp means it is set to run at 5:11am daily.
    To run on Sunday at 3am it needs to be changed to
    0 3 * * 0 /scripts/upcp
    Monday morning 2am would be
    0 2 * * 1 /scripts/upcp[/quote:7492c37b2b]


    Is this right? This is what i did and got:
    cd /etc/cron.weekly
    then
    crontab -e
    then I made the changes so my backup will run at 3am every day. EG:
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    0 3 * * * /scripts/upcp
    */5 * * * * /usr/local/cpanel/bin/dcpumon &/dev/null 2&&1[/quote:7492c37b2b]

    I've never edited my cron jobs with the crontab command. I just played with it now and found out it doesn't matter what directory you are in to start. The actual file you edited is /var/spool/cron/root but you did it through the ssh function. I just download, edit, and upload mine.

    Yes, the line 0 3 * * * /scripts/upcp does mean 3am daily.
     
Loading...

Share This Page