Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Dictating weekly cpbackup day?

Discussion in 'Data Protection' started by Man0warr, Jul 13, 2006.

  1. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    Is it possible to change what day the weekly cpbackup occurs? Did a few searches and couldn't find an answer.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. jonyzinho

    jonyzinho Active Member

    Joined:
    Apr 2, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
  3. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    Thats similar but not really the problem, we just want to have the weekly backup happen on Sunday instead of Thursday.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    You could just delete the weekly backups before the night you want them to be done. They will be done if there are none, and from that point on, it'll be the same day each week. You will need to delete the weekly directory as well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    Thank you, we will try that this weekend.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    We deleted the old backup and the directory Saturday night to see if it would run early sunday morning, it didn't :/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    You deleted the actual "weekly" directory as well?

    The key line in the backup script is:
    Code:
    if (! -e "${basedir}/weekly" || isolderthen(6,"${basedir}/weekly")) {
    
    If the "weekly" directory does not exist when the backup script is called, it should run the weekly backup, as long as WHM is set to do weekly backups. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    We deleted weekly directory on the server stores the backups to via FTP, do we also need to delete the weekly directory in /home/cpbackuptmp/cpbackup/ ? I think it puts all the backups here first before FTPing them. That may be why it didn't run because the weekly was still there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Dallas, TX
    Well we deleted that folder and cpbackup weekly ran this morning, deleting the folder on the FTP server did nothing. Thanks PWS!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    You got the right folder. Now all you have to do is restart it this Saturday night. ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice