shadowtek Posted February 26, 2019 Share Posted February 26, 2019 Hi Guys, Just wondering if anyone knows of a solution that can be implemented where WHMCS will take a "FULL" cpanel backup of an account prior to terminating a hosting account? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 26, 2019 Share Posted February 26, 2019 You could try the PreModuleTerminate hook and use the cpanel backup API . Unless you use a custom cpanel module or someone knows how to call the cpanel client in whmcs, you will need your own cpanel api client. However, that API only starts a backup and provides a PID . So, you can't terminate the account until that process finishes. in the hook, you could return abortcmd=true, but 100% sure if that terminates the whole termination process or just that one attempt. If just that one attempt, on each cron run it should try to cancel the account again and thus you can do a check if the backup finished and if so allow the termination to happen. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.