cPanel API to create backup of specific DB
Hi,
I am looking for a way via which I can take backups of selected MySQL DB via API.
Does anyone know how I can achieve this?
-
Hi @harshitpeer You really don't need the api for db backups, you can use mysqldump to achieve this. The MySQL related API functions that exist can be found here:UAPI Modules - Mysql - Developer Documentation - cPanel Documentation Thanks! 0 -
hello Team, But unfortunately, there is no backup available in Uapi, how do we backup a particular database with uapi, can you point it to right way to get it workable. ? thank you 0 -
@kvvaradha - there is not currently an API command that lets a cPanel user backup a specific database. If you'd like to see that in the future, I'd recommend submitting a feature request using the link in my signature so the developers can see if that is something they can add. 0 -
thank you @cPRex. Can you also suggest me a way to backup multiple databases from cpanel to my backup server. ? I tried to enable the exec for a cpanel user specific. But its not possible i feel. is there anyway to use mysqldump to backup the databases from our program itself. 0 -
If your cPanel user has shell access they would have the MySQL dump command available. There isn't another way for a cPanel to execute that command currently, so a feature request for an additional API call would be the best way to go if you wanted to see that change. 0
Please sign in to leave a comment.
Comments
5 comments