WebsiteBackup
Start extracting a backup's files to a folder
Changed onThis function starts copying the website files of the domain parameter out of the named backup into a folder under the account's home directory, and returns an operationId return value immediately.
Note:
- Poll the WebsiteBackup::operation_status function with the returned id for progress and the terminal state. The WebsiteBackup::list_operations function recovers the id if the client loses it.
- The extraction is non-destructive. It never overwrites an existing file and never activates anything. It only places a copy of the archived document root under the named folder.
- Because nothing live is touched, the per-account backup lock does not gate it and it may run alongside another operation.
- Both the folder creation and the extraction run confined to the account's jail wherever the account is normally confined, so a jailed account cannot redirect the write outside its jail.
- Pre-flight checks run synchronously and fail this call. The account must own the domain, the archive must exist, and the expanded archive must fit on disk.
- The operation runs under a two-hour wall-clock cap.
- This function requires the account's backup feature and is unavailable to demo (shared) accounts.
post/WebsiteBackup/extract_backup
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Request body application/x-www-form-urlencoded
Example request
{
"domain": "example.com",
"id": "example.com-2026.08.18_12-53-12",
"path": "backup-restore/example.com"
}Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "extract_backup",
"module": "WebsiteBackup",
"result": {
"data": {
"operationId": "2026-08-18T12:53:12Z.1"
},
"status": 1
}
}Changes
- info
endpoint added
- info