This function lists all of an item's backup locations. An item can be a file, a directory, or a symlink.
Important:
When you disable the File Storage role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Restore \ query_file_info \ path='/public_html/index.php'
{- "apiversion": 3,
- "func": "query_file_info",
- "module": "Restore",
- "result": {
- "data": [
- {
- "backupDate": "2020-07-01T00:00:00.000Z",
- "backupID": "weekly/2017-07-01",
- "backupType": "compressed",
- "exists": 1,
- "fileSize": 199,
- "mtime": 1520043240,
- "path": "/public_html/index.php",
- "type": "file"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}