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

hamidkh

Registered
Apr 30, 2007
3
0
151
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

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.