{"id":50915708,"url":"https://github.com/hostragons/cpanel-mass-backup-restore","last_synced_at":"2026-06-16T14:32:34.642Z","repository":{"id":360011133,"uuid":"1248365349","full_name":"hostragons/cpanel-mass-backup-restore","owner":"hostragons","description":"Professional cPanel/WHM mass backup restore script with parallel processing, resume support, watchdog timeout, retry system, logs, and Hostragons branding.","archived":false,"fork":false,"pushed_at":"2026-05-24T14:54:34.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T16:26:13.202Z","etag":null,"topics":["backup-script","bash","cpanel","cpanel-backup","cpanel-restore","hosting","linux","migration","restore","server-migration","shell-script","web-hosting","whm","whm-backup-script"],"latest_commit_sha":null,"homepage":"https://www.hostragons.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hostragons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T14:49:32.000Z","updated_at":"2026-05-24T14:55:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hostragons/cpanel-mass-backup-restore","commit_stats":null,"previous_names":["hostragons/cpanel-mass-backup-restore"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hostragons/cpanel-mass-backup-restore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostragons%2Fcpanel-mass-backup-restore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostragons%2Fcpanel-mass-backup-restore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostragons%2Fcpanel-mass-backup-restore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostragons%2Fcpanel-mass-backup-restore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hostragons","download_url":"https://codeload.github.com/hostragons/cpanel-mass-backup-restore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostragons%2Fcpanel-mass-backup-restore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup-script","bash","cpanel","cpanel-backup","cpanel-restore","hosting","linux","migration","restore","server-migration","shell-script","web-hosting","whm","whm-backup-script"],"created_at":"2026-06-16T14:32:33.905Z","updated_at":"2026-06-16T14:32:34.629Z","avatar_url":"https://github.com/hostragons.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 cPanel Mass Backup Restore Script\n\nProfessional cPanel/WHM mass backup restore automation tool by **Hostragons Global Limited**.\n\nThis script is designed for system administrators, hosting providers, migration specialists, and server engineers who need to restore multiple cPanel accounts quickly and safely.\n\nBuilt 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.\n\n---\n\n# ⚡ Quick Start\n\nRun directly without downloading files manually:\n\n```bash\nbash \u003c(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)\n```\n\nor:\n\n```bash\nsudo bash \u003c(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)\n```\n\n---\n\n# 📌 What Does This Script Do?\n\nThe script automatically:\n\n✔ Detects cPanel environment  \n✔ Verifies root access  \n✔ Detects backup directories  \n✔ Finds available backup dates  \n✔ Lets user choose restore source  \n✔ Restores multiple accounts simultaneously  \n✔ Handles timeout issues  \n✔ Automatically retries failed restores  \n✔ Supports resume after interruption  \n✔ Generates detailed logs  \n✔ Creates final restore reports  \n\n---\n\n# ✨ Main Features\n\n## Parallel Restore Engine\n\nInstead of restoring accounts one by one, the script can restore multiple accounts simultaneously.\n\nRecommended values:\n\n| Storage Type | Recommended Slots |\n|-------------|-------------------|\n| HDD | 2 |\n| SSD | 3 |\n| NVMe | 4–6 |\n\nBenefits:\n\n- Faster migration\n- Better resource utilization\n- Reduced total restore time\n\n---\n\n## Automatic Backup Detection\n\nSupports automatic detection of:\n\n```text\n/backup\n/home/backup\n/mnt/storage\n/custom/path\n```\n\nExample:\n\n```text\n/backup/\n└── 2026-05-24/\n    └── accounts/\n        ├── cpmove-user1.tar.gz\n        ├── cpmove-user2.tar.gz\n        ├── cpmove-user3.tar.gz\n        └── cpmove-user4.tar.gz\n```\n\nNo need to manually define account names.\n\n---\n\n## Resume Support\n\nIf the script stops because of:\n\n- SSH disconnect\n- Server reboot\n- User interruption\n- Network issues\n\nit automatically remembers completed accounts.\n\nRun the same command again:\n\n```bash\nbash \u003c(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)\n```\n\nThe script continues from where it stopped.\n\n---\n\n## Watchdog Protection\n\nLarge accounts sometimes freeze during restore operations.\n\nThe watchdog system:\n\n- Monitors restore process\n- Detects hangs\n- Stops frozen processes\n- Continues automatically\n\nExample:\n\n```text\nTimeout: 600 seconds\n```\n\n---\n\n## Automatic Retry System\n\nFailed accounts are not ignored.\n\nThe script:\n\n- Stores failed accounts\n- Retries automatically\n- Performs multiple attempts\n- Generates detailed reports\n\nThis significantly reduces manual work.\n\n---\n\n## Detailed Logging System\n\nLogs are generated automatically:\n\n```text\n/var/log/cpanel_restore\n```\n\nExamples:\n\n```text\nmain_20260524_142011.log\nworker_user1.log\nworker_user2.log\nworker_user3.log\n```\n\nLogs help with:\n\n- Debugging\n- Migration tracking\n- Error analysis\n- Audit history\n\n---\n\n## State Tracking System\n\nProgress information is stored here:\n\n```text\n/var/tmp/cpanel_restore_state\n```\n\nFiles:\n\n```text\ndone.txt\nfailed.txt\ndone_count.txt\nfail_count.txt\ncounter.lock\n```\n\nReset progress:\n\n```bash\nrm -rf /var/tmp/cpanel_restore_state\n```\n\n---\n\n# 🔧 Requirements\n\nBefore running the script:\n\n### Required\n\n- Linux Server\n- Root access\n- cPanel/WHM\n- Existing restore command:\n\n```bash\n/scripts/restorepkg\n```\n\n- Valid cPanel backup files:\n\n```text\ncpmove-user.tar.gz\n```\n\n---\n\n# 📂 Supported Backup Formats\n\nSupported:\n\n```text\ncpmove-user.tar.gz\nuser.tar.gz\n```\n\n---\n\n# 🖥 Example Workflow\n\nStep 1:\n\nRun:\n\n```bash\nbash \u003c(curl -fsSL https://cdn.hostragons.com/storage/bash/cpanel_restore_hostragons.sh)\n```\n\nStep 2:\n\nSelect backup directory:\n\n```text\n/backup\n```\n\nStep 3:\n\nChoose detected backup date:\n\n```text\n[1] 2026-05-24\n[2] 2026-05-23\n[3] 2026-05-22\n```\n\nStep 4:\n\nChoose parallel slot count:\n\n```text\n4\n```\n\nStep 5:\n\nChoose timeout:\n\n```text\n600\n```\n\nStep 6:\n\nRestore starts automatically.\n\n---\n\n# 📊 Final Report Example\n\n```text\n╔══════════════════════════════╗\n║        FINAL REPORT          ║\n╚══════════════════════════════╝\n\nTotal Accounts : 150\nSuccessful     : 145\nFailed         : 5\nTotal Time     : 00:21:44\n```\n\n---\n\n# 🏢 About Hostragons\n\nHostragons Global Limited provides enterprise-grade hosting infrastructure and server solutions.\n\nCompany Information:\n\nCompany Name:\n\nHostragons Global Limited\n\nCompany Number:\n\n14320956\n\nFounded:\n\n2020\n\nRelocated:\n\n2022 → London\n\nHeadquarters:\n\nLondon, United Kingdom\n\nAddress:\n\n71–75 Shelton Street  \nCovent Garden  \nLondon  \nWC2H 9JQ  \nUnited Kingdom\n\nWebsite:\n\nhttps://www.hostragons.com/en/\n\nContact:\n\nhttps://www.hostragons.com/en/contact\n\nClient Area:\n\nhttps://my.hostragons.com/\n\nWhatsApp:\n\n+44 7367 063425\n\nTelegram:\n\nhttps://t.me/hostragons\n\n---\n\n# ⚠ Disclaimer\n\nThis script performs real cPanel account restore operations.\n\nAlways:\n\n- Test with a small number of accounts first\n- Verify backups before production use\n- Run with root privileges\n- Maintain external backups\n\nThe author assumes no responsibility for data loss, server issues, or improper use.\n\n---\n\n# 📜 License\n\nMIT License\n\n---\n\nMade with ❤️ by Hostragons Global Limited\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostragons%2Fcpanel-mass-backup-restore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhostragons%2Fcpanel-mass-backup-restore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostragons%2Fcpanel-mass-backup-restore/lists"}