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.

Where is cpbackup log?

Discussion in 'Data Protection' started by RandyO, Jul 16, 2006.

  1. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    where can I find the log that dictates when monthly, weekly backups are perfomed? I have monthly backups that have not run and I can not seem to find what the issue is yet.

    thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    There isn't a log, which is a pain.

    Best bet is to run the backup interactively, but first make sure that if you have a separate backup partition, that it isn't full.
     
  3. RandyO

    RandyO Well-Known Member

    Joined:
    Jun 17, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Well that is odd. So how does the system know to replace the "weekly" and "monthly" copies? If the monthly folder is empty and the system does not replace them, it must not look at the folder for the expiration date on the backup. I just figured there had to be a date file or like somewhere.

    I suppose I can manually copy over the monthly copies but that would seem to indicate that they will not be replaced on schedule when they are a month old.
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    It looks at the date of the folder not the files within.

    Here's the magic line in the backup script:
    Code:
    if (! -e "${basedir}/monthly" || isolderthen(29,"${basedir}/monthly")) {
    
    It says if the monthly directory does not exist, or is older than 29 days, then do monthly backup.
     
Loading...

Share This Page