Description
This function displays pending and completed backups in the /home
directory.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Backup::list_backups
— This function lists the account's backup files.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
status |
string |
The backup's status. |
|
Complete |
localtime |
string |
When the backup completed. |
The time and date that the backup completed, in human-readable 24-hour format. |
Fri Nov 1 14:51:47 2013 |
file |
string |
The backup's name. |
A tar.gz file name. |
backup-11.1.2013_14-51-47_user.tar.gz |
time |
integer |
When the backup completed. |
The time that the backup completed, in Unix time format. |
1383335507 |
reason |
string |
A reason for failure. Note: This function only returns areason value if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded.
|
|
1 |