This function lists all available cparchive files.
Note:
MM.DD.YYYY represents the file's date in month, date, and year format.HH-MM-SS represents the file's timestamp in hour, minute, and second format.The function checks the following filenames, where USER represents the cPanel account's filusername::
cpmove-USERcpmove-USER.tarcpmove-USER.tar.gzUSER.tarUSER.tar.gzbackup-{MM.DD.YYYY}{HH-MM-SS}{USER}.tarbackup-{MM.DD.YYYY}{HH-MM-SS}{USER}.tar.gzThe function checks for these filenames in the following locations:
/home/home2/home3/root/usr/usr/home/webHTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ list_cparchive_files
{- "data": {
- "quickrestore_files": [
- {
- "file": "cpmove-username1.tar.gz",
- "path": "/home",
- "user": "username"
}
]
}, - "metadata": {
- "command": "list_cparchive_files",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}