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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Database Discussions' 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 Forums Analyst
    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.

Share This Page