Skip to main content

Restoring user generated full cPanel backup on 11.44 on WHM?

Comments

2 comments

  • cPanelNick
    [quote="jrianto, post: 1681552">I am having problems restoring a user generated full cPanel backup file on WHM 11.44. I am trying to run a restore of a full cPanel backup file stored on the /home folder. Upon initiating the restore with curl, it does not execute. Apparently now the restore function are triggering a series of javascript calls that requires an actual browser with JS functionality to actually process the restoration. This breaks automation scripts that uses curl to initiate restore process through WHM. Is there a workaround for this, maybe using an API, so that during restoration process, it is not required for a JS enabled browser to actually having to wait with the browser window open until the restore process completes? The only workaround I have right now is using phantomjs and casperjs, but it would be great if the solution is right out of the box from WHM. Can you please give me a pointer of a better workaround to accomplish this?
    Will /scripts/restorepkg /home/XXXXX
    work for you? ------------ The transfer system now provides API access in 11.44, however thats only for transferring from a remote machine.
    0
  • jrianto
    Thank you for pointing it out Nick. Yes I am using the /scripts/restorepkg right now, it works. The only down side is that I need to add a cron job to detect if there is any new restore requests, if so, then the restore is triggered. That would be fine I suppose rather than making it more complex which a potential of breaking in the future. Thanks again, really appreciate the insights.
    0

Please sign in to leave a comment.