Skip to main content

cPanel backups stopped being made suddenly

Comments

11 comments

  • cPanelMichael
    Hello :) Check to ensure the "crond" service is running on your system. You can restart it via:
    service crond restart
    Also, you should kill those hanging backup processes. EX:
    kill -9 PID
    Thank you.
    0
  • postcd
    SOLVED Thanks alot Michael, that helped. Crond was running, so i restarted it. Then i killed these hanged backup processes as you suggested and today i see new daily backups was created. Not sure why backup processes was hanged, but it appears backups are working again now.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • postcd
    The issue repeats, please is there any command that i can run via cron to automatically kill the backup processes if they run too long? time?
    0
  • cPanelMichael
    The issue repeats, please is there any command that i can run via cron to automatically kill the backup processes if they run too long? time?

    It's a better idea to terminate the backup process and then remove the temporary backup archive data for the account so that it's generated successfully on the next backup attempt. Otherwise, you risk corrupted restore data if you kill the parent process before the backup completes. Thank you.
    0
  • postcd
    Because issue with hanged backups continued i tried to add this script into crontab:
    #!/bin/bash # This script will kill process which running more than X hours # egrep: only processes matching set phrasses # grep: only processes running more than X (30) hours PIDS="`ps eaxo bsdtime,pid,comm | egrep "pkgacc|pkgggg|pkkkkk" | grep " 30:" | awk '{print $2}'`" for pid in ${PIDS}; do { kill -9 $pid; }; done;
    0
  • cPanelMichael
    Because issue with hanged backups continued i tried to add this script into crontab:

    Hello @postcd, Have you considered opening a support ticket so we can take a closer look and determine why your backup processes are hanging? Thank you.
    0
  • johnbVegas
    Does CPanel offer a automated backup that is an app or can be executed with a cron job that would backup the last week or month for a file? It would date it so you can find a particular file by date. I just want to backup one file that is created every day with a php script but this file gets overwritten each day by script. Thanks
    0
  • cPAdminsMichael
    Does CPanel offer a automated backup that is an app or can be executed with a cron job that would backup the last week or month for a file? It would date it so you can find a particular file by date. I just want to backup one file that is created every day with a php script but this file gets overwritten each day by script. Thanks

    You can kind of already do that today with the cPanel Backup feature. You can set retention to whatever you require, enabling you to restore single files within that "range". So if your backup retention is 1 month, you are able to restore files and folders back 1 month. As cPanel Backup backs up whole accounts, I recommend using the incremental backup type.
    0
  • johnbVegas
    ok thank you, I will check it out
    0
  • cPRex Jurassic Moderator
    Here's the documentation on that: Backup Configuration | cPanel & WHM Documentation
    0

Please sign in to leave a comment.