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.

Question Backup

Discussion in 'General Discussion' started by flavio, Apr 29, 2011.

  1. flavio

    flavio Member

    Joined:
    Mar 7, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cpbackupstatus.cfg the file is being updated on all the folders daily, weekly and monthly.
    Thus the weekly and monthly backups not running.
    daily backups running perfekt.

    Any info?

    My setup / etc / cpbackup.conf


    BACKUP2 yes
    BACKUPACCTS yes
    BACKUPCHECK yes
    BACKUPDAYS 0,1,2,3,4,5,6
    BACKUPDIR /backup
    BACKUPENABLE yes
    BACKUPFILES yes
    BACKUPFTPDIR
    BACKUPFTPHOST
    BACKUPFTPPASSIVE yes
    BACKUPFTPUSER
    BACKUPINC no
    BACKUPINT daily
    BACKUPLOGS no
    BACKUPMOUNT yes
    BACKUPRETDAILY 1
    BACKUPRETMONTHLY 1
    BACKUPRETWEEKLY 1
    BACKUPTYPE normal
    COMPRESSACCTS yes
    DIEIFNOTMOUNTED yes
    GZIPRSYNCOPTS --rsyncable
    LINKDEST no
    LOCALZONESONLY no
    MYSQLBACKUP accounts
    USEBINARYPKGACCT no
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Are you getting anything in the log file at /usr/local/cpanel/logs/cpbackup location when the backup runs to indicate what is happening? Can you paste the output of what it has for the monthly or weekly backup attempt in that log file?

    While it might update the cpbackupstatus.cfg file, it should do that after the weekly or monthly backup has been started and look at the timestamp on those folders before processing any information in the folder. That's why it would be helpful to see the actual log for what it is doing during the backup attempt.
     
  3. flavio

    flavio Member

    Joined:
    Mar 7, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    [cpbackup] Started at Mon May 2 09:37:50 2011
    [cpbackup] backup point /backup/cpbackup/daily is 0.02 days old
    [cpbackup] backup point /backup/cpbackup/weekly is 0.44 days old
    [cpbackup] backup point /backup/cpbackup/monthly is 0.44 days old
    [cpbackup] The following backups were already up to date: daily,weekly,monthly
    [cpbackup] Shutting down mount


    cpbackupstatus.cfg = last_run_time=1304301835

    backup files of weekly and monthly folder was not updated since February.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Please open up a ticket about this issue. I cannot see any reason that this would be happening to cause the backups to continue to not function. We would likely move the old monthly and weekly backups and then re-force a backup using "/scripts/cpbackup --force", change the mtime of the folders for weekly and monthly to show them older than a month and re-run it again after that to see the results.

    For opening up a ticket, you can use WHM > Support Center > Contact cPanel or the link in my signature.
     
  5. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Tristan
    Have a related issue and would like to know if it is the folders mtime or the last_time_run under each of the folders that determines whether a specifik type of backup is to created or not
    The documentation say "cPanel & WHM creates a monthly backup if the existing monthly backups are more than 29 days old" but it doesn't say if it is folder mtime or last_time_run that determines this.
    They are not the same. For ex at moment the monthly folder shows May 7 01:00 but last_time_run in the cpbackupstatus.cfg in the monthly folder shows 1303254445 (April 20 01:04 in our timezone).
    So am I to change the folder time or the last_time_run in order to get the monthly to run at a specific date
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    To test this, I simply changed the mtime for the monthly folder to a month ago:

    Code:
    touch -t 201104081024 /backup/cpbackup/monthly
    The /backup/cpbackup/monthly/cpbackupstatus.cfg file had this time in it:

    Code:
    last_run_time=1305007303
    Which translates to Tue May 10 2011 01:01:43 GMT-0500 (CST) for epoch to date conversion. At that point, I ran /scripts/cpbackup and this shows in the /usr/local/cpanel/logs/cpbackup/1305043291.log file:

    It didn't update weekly as the weekly mtime on the folder was May 10, while the monthly mtime was April 8. It appears to go by the mtime on the top level of the monthly folder.
     
  7. kjg

    kjg Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Thank you for the quick reply
    This will make life much easier for us.
     
Loading...

Share This Page