Return account backup progress
Changed onThis function returns progress information for a cPanel account backup.
Note: When the PkgAcct::Create hook is installed, that hook anchors the run's start and finish, and the function reports complete only after it confirms the published archive in the home directory, along with the archive's exact final size. A run that never publishes an archive is therefore never reported as complete. Without the hook, the function falls back to the on-disk marker file. When no run is active, the state return value is none and the other return values are 0 or null. When the function cannot determine the account's disk usage, the estimatedTotalBytes and estimatedPercent return values are 0 even while a run is active.
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "progress",
"module": "BackupInfo",
"result": {
"data": {
"currentBytes": 104857600,
"elapsedSeconds": 42,
"estimatedPercent": 33.3,
"estimatedTotalBytes": 314572800,
"finishedAtEpoch": 1750640400,
"startedAtEpoch": 1750636800,
"state": "inprogress",
"stateSource": "hook"
},
"status": 1
}
}Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - warning
added the new
0.00enum value to the/response property for the response status - warning
added the new
1.00enum value to the/response property for the response status - info
api operation id
progressremoved and replaced withBackupInfo-progress - info
added the optional property
/to the response with the status
- breaking