This function restores a configuration backup from a file. If the backup file does not contain any changes, the system does not write to the configuration file.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ restore_config_from_file \ module='Main' \ path='/var/cpanel/cpanel.config'
{- "metadata": {
- "command": "restore_config_from_file",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}