cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Backup → Restore one cPanel account from a backup

AI-generated

Summary

Restore a cPanel account from a local backup tarball or extracted directory by specifying the backup file path and optionally customizing restoration behavior.

Inputs

  • Cpmovepath (required) — File path to the cpmove tarball or directory containing the extracted cpmove account backup to restore.
  • Username — Username to assign to the restored account; if omitted, the username from the backup is used.
  • Dedicated Ip — Whether to assign a dedicated IP address to the restored account (1 for yes, 0 for no).
  • Delete Archive — Whether to delete the backup tarball or extracted directory after restoration (1 to delete, 0 to keep).
  • Mail Location — Server location for the account's email after restoration; .local for local server, .existing for location in backup data.
  • Overwrite — Whether to overwrite an existing account with the restored one (1 to overwrite, 0 to not).
  • Restricted — Whether to perform a restricted restore with security checks on the backup (1 for restricted, 0 for normal).
  • Update A Records — Whether to update the account's DNS A records: all to replace all old IPs, basic to replace only cPanel-provided records.

Output shape

an object containing the WHM API response indicating success or failure of the restore operation

The output reflects the WHM API response for the restoration request, including any error messages if restoration fails. No pagination applies.

Links

Discussion