StorX Integration Series: Backup with cPanel.
StorX Network l Storage #DePIN Powered by #XDC
Experience the faster, safer, more affordable and completely decentralized enterprise-grade cloud storage solution.
What is cPanel (Control Panel for Website Management)? cPanel is a web-based control panel that allows users to manage their websites, domains, emails, databases, and files easily. It is mainly used by website owners and hosting clients. Provides a graphical interface for managing web hosting without needing to use command-line tools.
What are the use cases of integrating the cpanel with StorX?
1. Website & Database Backups
Automatically backup website files, databases, and emails from cPanel to StorX. Ensure disaster recovery in case of server failures, hacking, or accidental deletions. Use cron jobs to automate periodic backups (daily, weekly, or monthly).
2. Migration & Disaster Recovery
Quickly restore websites, databases, and configurations from StorX in case of system crashes. Migrate cPanel accounts easily by restoring data from StorX to a new server.
3. Offsite Backup for Hosting Providers
Hosting providers can offer remote backups to clients as an add-on service. Protect customer data from local hardware failures and data loss risks.
4. Log & Configuration File Archiving
Store server logs, configurations, SSL certificates, and other important files securely. Retain logs for compliance, security auditing, and troubleshooting.
5. Version Control & File History
Keep multiple versions of backups for easy rollbacks. Restore a specific version of a file if an update breaks a website or database.
6. Email Backup & Archiving
Backup all cPanel email accounts to StorX to ensure no email loss. Useful for businesses needing long-term email storage & compliance.
7. Reducing Local Storage Costs
Free up cPanel server storage by moving older backups to StorX. Avoid disk space overages on web hosting plans.
8. Secure & Encrypted Data Storage
Use StorX’s decentralized, encrypted storage to prevent data breaches & cyberattacks. Ensure compliance with GDPR, HIPAA, and other data protection regulations.
9. Backup Automation with Scripts & Tools
Use s3cmd, rclone, or cron jobs to automate backups from cPanel to StorX. Integrate with cPanel backup tools (JetBackup, WHM backup, etc.) to store backups directly in StorX.
Prerequisite
How to get the access key, secret key, and endpoints from the StorX?
Let’s look at how we can integrate the Cpanel with storX and automate the backup.
Step 1. Configure cPanel Backups
a. Enable Native cPanel Backup:
b. Verify Backup Output:
C. Let’s configure s3cmd with the storx using the access credentials:
dnf install -y s3cmd
s3cmd — version
s3cmd — configure
Manually you can use the below command
s3cmd put /backup/your_backup_file_location s3://your_bucket_name/
Login to storX to confirm as below.
Let’s Automate the process using the below Commands
crontab -e
0 2 * tar -czvf /backup/cpanel-test.tar.gz -C /backup cpanel-test && s3cmd put /backup/your_file_location s3://your_bucket_name/