A cPanel account is in suspended state — billing flagged it, or abuse-team locked it. The customer has paid (or the issue is otherwise resolved) and they need yesterday’s data back. The mechanically correct sequence is restore before unsuspend, not the other way around, because some restore paths refuse to operate on suspended accounts.
What’s happening
A suspended cPanel account has its UserDomain entries kept but services disabled: Apache vhost commented out, mail accounts disabled, FTP locked, no shell access. The home directory and databases are intact. JetBackup’s restore can target a suspended account directly; some other tools refuse and require unsuspend first. Choose the path that doesn’t briefly expose the account.
How to verify
Confirm the account’s current state and what backups exist:
whmapi1 listsuspended | grep <user>
ls /var/cpanel/suspended/<user>
jetbackup5api -F getRestorePoints -D '{"account":"<user>"}'
quota -u <user>
The /var/cpanel/suspended/<user> file contains the suspension reason. The backups list confirms what snapshots are available.
The fix
- Don’t unsuspend before restoring. The point of having both states is that a suspended account stays unreachable from the public internet during the restore — the worst-case is the restore doesn’t change anything customer-visible.
- Restore from JetBackup directly. WHM > JetBackup 5 > Restore > Accounts. The restore writes to
/home/<user>and the databases; the suspension state isn’t affected. - Verify the restore as you would normally: check home directory contents, database integrity, mail folder structure.
- Then unsuspend:
whmapi1 unsuspendacct user=<user>. Apache, mail, FTP, and shell access return immediately. - Communicate the sequence to the customer: “we restored the account while it was still suspended, then unsuspended it. The site went from down to operational at $TIME.” Customers appreciate the precision.
Stack Harbor handles suspended-account restores in compliance with the billing/abuse workflow under environment management.