摘要 |
A data recovery method and device, comprising: converting, according to a preset encoding method, device data into a character string parameter recognizable by a command line interface (CLI) command; converting the converted character string parameter into a CLI command, and storing the converted and obtained CLI command; after upgrading a device, parsing the stored CLI command to obtain the character string parameter; and converting the parsed and obtained character string parameter into device data, and storing the device data in a memory database. |