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.

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:
    6
    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
     
  2. jonyzinho

    jonyzinho Active Member

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

    Man0warr Well-Known Member

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

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
  5. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Dallas, TX
    Thank you, we will try that this weekend.
     
  6. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    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 :/
     
  7. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    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. ;)
     
  8. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  9. Man0warr

    Man0warr Well-Known Member

    Joined:
    Jun 5, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    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!
     
  10. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You got the right folder. Now all you have to do is restart it this Saturday night. ;)
     
Loading...

Share This Page