The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    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.
     
  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:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Here's an older thread you might find helpful:

    API and Backup

    Thank you.
     
Loading...

Share This Page