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.

WHM Backup Issue

Discussion in 'General Discussion' started by Deker, Nov 7, 2011.

  1. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    Hello,

    This is about 2 weeks that automatic backup does not work in my WHM.
    I didn't made any changes under "WHM >> Backup >> Configure Backup".
    Anybody knows that what's wrong with my WHM and how to fix the issue?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you check your most recent backup logs in /usr/local/cpanel/logs/cpbackup and let us know if you see any specific error messages?

    Thank you.
     
  3. milind

    milind Well-Known Member

    Joined:
    Jan 15, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Nasik (Maharashtra), India
    cPanel Access Level:
    Root Administrator
    Is logging (Backup Access Logs) enabled while configuring Backups? if yes, please let us know the output of logs.
     
  4. Deker

    Deker Well-Known Member

    Joined:
    Feb 15, 2011
    Messages:
    79
    Likes Received:
    1
    Trophy Points:
    8
    There is not any new log files in cpbackup directory !
     
  5. 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
    Do you have backups enabled to back up locally to a location or to FTP back up? Could you try re-saving the area itself to see the results?

    Next, in root SSH, check if crond is running:

    Code:
    ps aux | grep crond
    Try restarting it if it isn't running:

    Code:
    /etc/init.d/crond restart
    Additionally, check that the cpbackup cron entry is in the root crontab:

    Code:
    grep cpbackup /var/spool/cron/root
    Finally, check if the cron is even being executed:

    Code:
    grep cpbackup /var/log/cron
    You might try manually running a backup to see if you get any additional errors if the above aren't showing any issue:

    Code:
    /scripts/cpbackup --force
    At that point, check the log file that should be writing to /usr/local/cpanel/logs/cpbackup location for the forced cpbackup
     
  6. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Tristan

    I too have the same issues as milind.
    I followed your suggestions and found that I can force the backup to run if I run:

    Code:
    /scripts/cpbackup --force
    
    So my problem seems to be a scheduling one..
    Checked my /var/log/cron file and found it to be empty so I added the following line:

    Code:
    0 5 * * * /scripts/cpbackup
    
    However I think my syntax is wrong becuase nothing got backed up this morning.
    Any ideas?

    grep cpbackup /var/log/cron
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's possible the backups were not older than 24 hours because you forced a backup generation earlier in the day. If that was the case, then the accounts would not be backed up until the next run. You can see the full backup logs in:

    Code:
    /usr/local/cpanel/logs/cpbackup/
    Thank you.
     
  8. monkey64

    monkey64 Well-Known Member

    Joined:
    Nov 6, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Michael

    It has been 48 hours since the last "forced" backup, and despite adding the command to the /var/log/cron file (see above), nothing has been backed up.

    Any ideas?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page