Migrate server to new backup system

This function converts and migrates a server from the Legacy Backup system to the Backup system.

SecurityBasicAuth
Request
query Parameters
no_convert
integer
Default: 0

Whether to convert the server from the Legacy Backup system to the Backup system.

  • 1 — Convert.
  • 0 — Do not convert.
Enum: 0 1
Example: no_convert=1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/convert_and_migrate_from_legacy_config
Request samples
whmapi1 --output=jsonpretty \
  convert_and_migrate_from_legacy_config
Response samples
application/json
{
  • "metadata": {
    • "command": "convert_and_migrate_from_legacy_config",
    • "reason": "Legacy Backup configuration was renamed from /etc/cpbackup.conf to /etc/cpbackup.conf-1485958451 as a backup copy for your records.",
    • "result": 1,
    • "version": 1
    }
}