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!

Problems with cpbackups!!

Discussion in 'Data Protection' started by Rivaman, Aug 30, 2006.

  1. Rivaman

    Rivaman Registered

    Oct 8, 2004
    Likes Received:
    Trophy Points:

    Hi Ladies & Gents,

    I am having a problems with my daily cpanel backups. The weekly and Monthly seem to be up to date but the daily is about 3 or 4 days behind. I have looked at the config in WHM and everything seems to be fine. So you know I am backing up accounts to another server. I am clueless right now. Any ideas on what to check or what could be the problem?

    I also checked the date and time to see if there was a conflict but everything is fine there. Is there anyone he had experienced the same or knows what I can do?

  2. gflamerich

    gflamerich Well-Known Member

    Jul 21, 2003
    Likes Received:
    Trophy Points:

    Just start with the easy, did you receive the email report?
    Could be that crond isn't running, we had same problem once, just try this.
    /etc/rc.d/init.d/crond restart
  3. driverC

    driverC Well-Known Member

    Jul 23, 2004
    Likes Received:
    Trophy Points:
    If your server has a lot of accounts or is overloaded Cpanel`s cron started backup doesn`t work. In this case set up your own cron job or log in and create a backup manually from shell. Here is how to do it:

    touch -B 170000 /backup/cpbackup/daily;nohup nice -n 19 /scripts/cpbackup &

    Wait a second to let it start. Then press enter. Now it should go back to the shell where you can enter commands. Enter top. Then press i. Now you should see all the processes that are currently running. You should now see either rsync or pkgacct processes. That means you started the process successfully. Press q to leave top. Then type exit to log out. The backup will keep running in the background. Preferably start the backup so that it will not run during peak business hours.

    You can also set up a cron job to execute the command above. For some reason it is much more reliable then Cpanel`s cron command.

    The touch command doesn`t work with all versions of touch. On some servers you got to do:

    touch -t 05050505 /backup/cpbackup/daily

    PLEASE NOTE: Canel does suspend the creation of backup if the load is above the load you specified on WHM for log file processing to be suspended (backup will be resumed later but only if the load goes down). At least it used to be like that. I`m not sure if they still do it that way but I pretty much do think so. Make sure you set this value to a higher number. By default it is 0 so the load can be 1 or 2 depending on the amount of CPUs which is usually not enough because most servers have a higher load even if they are not overloaded (i.e. because cron jobs are all run in the same second which will increase the load but the server will be idle again a second after this so the load doesn`t really mean that much).
    #3 driverC, Aug 31, 2006
    Last edited: Aug 31, 2006

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