Professional cPanel/WHM mass backup restore automation tool by Hostragons Global Limited.
This script is designed for system administrators, hosting providers, migration specialists, and server engineers who need to restore multiple cPanel accounts quickly and safely.
Built with performance and reliability in mind, this script automates the entire restore workflow using native cPanel restore functionality while providing parallel processing, automatic recovery, resume support, logging, timeout protection, and an interactive interface.
Run directly without downloading files manually:
bash <(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)or:
sudo bash <(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)The script automatically:
✔ Detects cPanel environment
✔ Verifies root access
✔ Detects backup directories
✔ Finds available backup dates
✔ Lets user choose restore source
✔ Restores multiple accounts simultaneously
✔ Handles timeout issues
✔ Automatically retries failed restores
✔ Supports resume after interruption
✔ Generates detailed logs
✔ Creates final restore reports
Instead of restoring accounts one by one, the script can restore multiple accounts simultaneously.
Recommended values:
| Storage Type | Recommended Slots |
|---|---|
| HDD | 2 |
| SSD | 3 |
| NVMe | 4–6 |
Benefits:
- Faster migration
- Better resource utilization
- Reduced total restore time
Supports automatic detection of:
/backup
/home/backup
/mnt/storage
/custom/path
Example:
/backup/
└── 2026-05-24/
└── accounts/
├── cpmove-user1.tar.gz
├── cpmove-user2.tar.gz
├── cpmove-user3.tar.gz
└── cpmove-user4.tar.gz
No need to manually define account names.
If the script stops because of:
- SSH disconnect
- Server reboot
- User interruption
- Network issues
it automatically remembers completed accounts.
Run the same command again:
bash <(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)The script continues from where it stopped.
Large accounts sometimes freeze during restore operations.
The watchdog system:
- Monitors restore process
- Detects hangs
- Stops frozen processes
- Continues automatically
Example:
Timeout: 600 seconds
Failed accounts are not ignored.
The script:
- Stores failed accounts
- Retries automatically
- Performs multiple attempts
- Generates detailed reports
This significantly reduces manual work.
Logs are generated automatically:
/var/log/cpanel_restore
Examples:
main_20260524_142011.log
worker_user1.log
worker_user2.log
worker_user3.log
Logs help with:
- Debugging
- Migration tracking
- Error analysis
- Audit history
Progress information is stored here:
/var/tmp/cpanel_restore_state
Files:
done.txt
failed.txt
done_count.txt
fail_count.txt
counter.lock
Reset progress:
rm -rf /var/tmp/cpanel_restore_stateBefore running the script:
- Linux Server
- Root access
- cPanel/WHM
- Existing restore command:
/scripts/restorepkg- Valid cPanel backup files:
cpmove-user.tar.gz
Supported:
cpmove-user.tar.gz
user.tar.gz
Step 1:
Run:
bash <(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)Step 2:
Select backup directory:
/backup
Step 3:
Choose detected backup date:
[1] 2026-05-24
[2] 2026-05-23
[3] 2026-05-22
Step 4:
Choose parallel slot count:
4
Step 5:
Choose timeout:
600
Step 6:
Restore starts automatically.
╔══════════════════════════════╗
║ FINAL REPORT ║
╚══════════════════════════════╝
Total Accounts : 150
Successful : 145
Failed : 5
Total Time : 00:21:44
Hostragons Global Limited provides enterprise-grade hosting infrastructure and server solutions.
Company Information:
Company Name:
Hostragons Global Limited
Company Number:
14320956
Founded:
2020
Relocated:
2022 → London
Headquarters:
London, United Kingdom
Address:
71–75 Shelton Street
Covent Garden
London
WC2H 9JQ
United Kingdom
Website:
https://www.hostragons.com/en/
Contact:
https://www.hostragons.com/en/contact
Client Area:
WhatsApp:
+44 7367 063425
Telegram:
This script performs real cPanel account restore operations.
Always:
- Test with a small number of accounts first
- Verify backups before production use
- Run with root privileges
- Maintain external backups
The author assumes no responsibility for data loss, server issues, or improper use.
MIT License
Made with ❤️ by Hostragons Global Limited