API backup mysql
I've been working through the documentation and have managed to code a php script to create account backups on a reseller service using the remote access key.
What I am now trying to do is generate a partial backup, namely just backing up the mysql dbs. From my research it appears this is not possible via the api, even if you have the cpanel username and password. But what I have found is this website siteautobackup.com is able to do backups just of the mysql dbs - if you use the remote access key it does all dbs, if you specify a cpanel username password it can do a single account.
Can someone point me in the direction of where in the api documentation I can find out about mysql db backups using a remote access key or backing up an individual cpanel account mysql db.
Thanks.
-
Hello :) Currently, the cPanel API2 Backups module only provides the ability to list backups with the Backups::listfullbackups function. The MysqlFE module is documented here: cPanel API 2 - MysqlFE Have you considered developing a script uses the "mysqldump" utility to backup the databases? Thank you. 0 -
Thanks Michael For mysql dump I would therefore need shell access, but this I do not have. If API2 backup module only allows the listing of available backups and not create partial backups, then how is the site siteautobackup.com able to do just a mysql backup of a cpanel account with just being provided a cpanel username and password? Cheers 0 -
So is there no way to create a partial backup via your apis or known method with just a username and password remotely? What about API 1? 0
Please sign in to leave a comment.
Comments
3 comments