This function restores a file or directory from a backup to the file or directory's original location.
Important:
When you disable the File Storage role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Restore \ restore_file \ backupID='weekly/2017-07-03' \ path='/public_html/index.php' \ overwrite='1'
{- "apiversion": 3,
- "func": "restore_file",
- "module": "Restore",
- "result": {
- "data": {
- "success": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}