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.

cPanel Backup problems

Discussion in 'Data Protection' started by musioc, Apr 5, 2014.

  1. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Hello dears

    We was introduced a system to terminate and then restore backup via API
    Problems :
    1 - Subdomains will not restore even if we use parameter &subdomains=1
    2 - Recently we found that cPanel does not delete cpanel databases after terminating user account
    So cpanel user backup will not restore and we have to drop databases via phpmyadmin and then try to restore manually :(
     
  2. es2alna

    es2alna Well-Known Member

    Joined:
    Mar 30, 2014
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
  3. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    I think terminate account is ok (manual terminate)
    But when I use API problem occurs and then I can not remove databases even via terminate an account in whm
    So I have to remove them from phpmyadmin

    This is API (removeacct) result :
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you let us know which particular API you are using to terminate the account? Could you elaborate a little more on the nature of this custom script? The log output you provided shows the databases were successfully removed.

    Thank you.
     
  5. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Hello
    I am sure cPanel backup Or cpanel Terminate api has problem
    We update cPanel in stable mode but problem exists yet.

    We use https://server:2087/json-api/removeacct?user=username api (json or xml) to terminate account
    Then we use https://server:2087/xml-api/createacct?username=... to create account
    and then using these 2 api to add backup queue and activate queue
    1 - https://$server:2087/json-api/restore_queue_add_task?api.version=1&user=username&restore_point=$restore_point&subdomains=1&mail_config=1&mysql=1&give_ip=0
    2 - https://server:2087/json-api/restore_queue_activate?api.version=1

    We did not changed this script recently. It worked well about 2 or 3 months ago but now it has broken for all of our servers (about 10 servers)


    The problem is that terminate api can not remove mysql databases. I have to go to phpmyadmin and remove them manually and then re-run restore queue.

    - - - Updated - - -

    It is OK if I terminate account via WHM and try to restore backup (via api)
    It is not OK if I terminate account via api and then try to restore account via WHM
    It is not OK if I terminate account via api then create account and terminate again via whm, because I have to manually remove databases.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please feel free to open a support ticket so we can reproduce this issue. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page