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!

How to change cPanel backup to use mysqldump -f instead?

Discussion in 'Database Discussion' started by hamidkh, Feb 20, 2018.

  1. hamidkh

    hamidkh Registered

    Apr 30, 2007
    Likes Received:
    Trophy Points:
    I am wondering if there are any ways to change the way cPanel backup works to do mysqldump -f (force) instead of regular mysqldump as it currently does when it comes to the database backup.

    This will help in the cases where there is corrupted table(s) in a database in which current cPanel backup doesn't create any backups of those databases at all.

    Thanks in advance.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    It's not possible to change how mysqldump functions as part of the backup process. Generally, the goal of the backup process is to ensure that all of the data backed up is valid. The better approach is to ensure the "Backup Failure" notification type in "WHM >> Contact Manager" is set to a value that sends you a notification when backups fail. Then, you can choose to solve the corruption issue so that future backups of the database are successful. That said, one potential alternative is to enable "Per Account and Entire MySQL Directory" in "WHM >> Backup Configuration" if you'd like to also generate a backup of the entire MySQL directory.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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