If you have your own cPanel reseller account, then there’s a high chance that your web host manages the backups for all your cPanel accounts held within your reseller. Do you know how often they take backups? What precautions they take to ensure your website data is safe? Do you know what would happen in the event that your web host closed down?
Take control of your website backups with WHM Backup Solutions, a FREE and open source PHP script that allows you to schedule backups of all accounts within a reseller storing backups safely within the account home directory, a remote FTP server or even remote SCP storage.
Allows you to creates backups of every account within your WHM account.
Able to specify what to backup based on Username; Package Name, Domain Name, Account Owner or IP Address. You can also exclude accounts just as simple.
Authenticate is via API Token, Hash Key or WHM Password. Individual cPanel account passwords not required.
Store backups in home directories or transfer backups via FTP, Passive FTP or SCP/SSH.
Configure the script by editing the simple config file in under 5 minutes (The configuration file can also be obscured).
The script can automatically update to the latest version.
The script is hosted on your own server and is completely open source, no need to give a third party access to your WHM account.
Support given to install, troubleshoot or discuss modifications via email or facebook messenger.
Simply put the script once setup asks your cPanel server to create a 100% full backup of each cPanel account within your reseller at the time of your choosing, the backups are then transferred from your cPanel server to either the account home directory, an FTP server or even an SCP server for storage.
How Does This Script Work?
Using PHP we can communicate with the cPanel server’s using an Application Programming Interface (API). This is functionality the developers of cPanel have built in to allow external scripts to run functions on the cPanel servers.
What this script does is uses the listaccts API to retrieve a list of accounts within the reseller and then loops through each account and uses the fullbackup API to perform a full backup of that account.
For more information about how the script works, head over to our blog post.
Is It Really Free?
Yes, 100% FREE! The script is released under the opensource GNU GPL-3.0-or-later license, which for those who only want the highlight means, the entire code is accessible, available to edit and released for free. The only limitation is that any variants must also be released for free.
The requirements are pretty standard for the majority of cPanel resellers.
cPanel/WHM Reseller Account.
Be able to List Accounts within your Reseller.
Be able to click the cPanel logo on the List Accounts page and log into a cPanel account.
You must also have PHP 5.6 or above (If you don’t then you urgently need to contact your web host to upgrade you to PHP 7+).
PHP should also have the following extensions enabled: CURL & FTP (FTP only required if your using the FTP retention script).
What Do I Do If I Need Help?
The script is developed and supported by me! (Peter Kelly). I regularly review and test the script and I am easily contactable via our Facebook page, Twitter or email [email protected]. However, please try to understand that I have a full time job so my replies may take up to 48 hours. If for some reason I don’t respond within 48 hours, please feel free to give me another nudge.
What Do Other People Think?
As people have used the script we’ve reached out and asked for them to post their thoughts on the script on our TrustPilot page. This has led to a 100% Excellent rating! Don’t believe us check them out yourself.
As a lone developer, my ideas for enhancing the backup script is limited to features that I personally use and require.
If you have any ideas for enhancing the script or notice there’s a feature missing please leave a comment, send an email to [email protected], or contact me using Facebook.
cPanel servers have 2 backup systems built in. The first is automated but is only configurable via WHM to the root user. The second is embedded into each cPanel account and is the backup method this script hooks into. The second backup system is manual and allows a full backup of the cPanel account to be created. The cPanel server then sends the backup to either the local home directory of the...
Bug Fix for multiple config files, seperate status.php files now used per config file.
Bug Fix to output error when listaccts access token permission not granted.
Bug Fix where suspended accounts are shown in accounts to be backed up on generating backup list.
Added exclusion & suspended accounts to generate account list output.