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!

Using JSON To Backup All MySQL Databases In cPanel Account?

Discussion in 'cPanel Developers' started by rss2q, Sep 17, 2014.

  1. rss2q

    rss2q Registered

    Joined:
    Sep 17, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chattanooga, Tennessee, United States
    cPanel Access Level:
    Website Owner
    I'm trying to follow the CPanel API, but I do not see a way to backup all the MySQL databases attached to a regular user's CPanel account using JSON. Is this not possible? If not, what is another method for doing so?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rss2q

    rss2q Registered

    Joined:
    Sep 17, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chattanooga, Tennessee, United States
    cPanel Access Level:
    Website Owner
    I have somewhat considered that. So what methods would one use to backup all the user's website files only "excluding" the databases?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Here's an older thread you might find helpful:

    API and Backup

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice