cPanel API to create backup of specific DB

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

kvvaradha

Member
Jul 9, 2014
8
0
51
cPanel Access Level
DataCenter Provider
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
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
895
313
cPanel Access Level
Root Administrator
@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.
 

kvvaradha

Member
Jul 9, 2014
8
0
51
cPanel Access Level
DataCenter Provider
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.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,810
895
313
cPanel Access Level
Root Administrator
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.