CN116723104A - Configuration recovery method and device - Google Patents

Configuration recovery method and device Download PDF

Info

Publication number
CN116723104A
CN116723104A CN202310572132.0A CN202310572132A CN116723104A CN 116723104 A CN116723104 A CN 116723104A CN 202310572132 A CN202310572132 A CN 202310572132A CN 116723104 A CN116723104 A CN 116723104A
Authority
CN
China
Prior art keywords
time
backup file
operation information
restored
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310572132.0A
Other languages
Chinese (zh)
Inventor
杨唐军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202310572132.0A priority Critical patent/CN116723104A/en
Publication of CN116723104A publication Critical patent/CN116723104A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Abstract

The specification provides a configuration recovery method and device, and relates to the technical field of communication. A backup recovery method is applied to management equipment and comprises the following steps: periodically generating a backup file and recording operation information on the management device; determining a backup file corresponding to the generation time closest to the time to be restored as a target backup file; and performing configuration recovery based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered. By the method, the flexibility of configuration recovery can be improved.

Description

Configuration recovery method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a configuration recovery method and apparatus.
Background
With the development of network technology, the number of network devices deployed in a network is also increased, and management devices perform unified management. When the management device manages the network device in the network, the configuration of the network device can be backed up, and the staff can restore the configuration of the network device through the backup, so that the reliable management of the network device is realized.
In the current implementation, the management device forms the backup file in a manual or automatic mode, and the backup file is selected by a worker to restore, so that part of configuration cannot be restored to the network device, and the management flexibility of the network device is reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a backup restoration method and apparatus.
With reference to the first aspect of the embodiments of the present specification, the present application provides a backup restoration method, applied to a management device, including:
periodically generating a backup file and recording operation information on the management device;
determining a backup file corresponding to the generation time closest to the time to be restored as a target backup file;
and performing configuration recovery based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered.
Optionally, after the operation information recorded on the management device, the method further includes:
if the backup file does not exist before the time to be restored, acquiring the operation information before the time to be restored;
and performing operation recovery according to the operation information before the time to be recovered.
Optionally, determining the backup file corresponding to the generation time closest to the time to be restored as the target backup file includes:
acquiring time to be recovered and equipment identification of network equipment to be recovered;
determining a backup file corresponding to the generation time closest to the time to be restored as a target backup file;
determining configuration information corresponding to the equipment identifier in the backup file;
based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered, carrying out configuration recovery, specifically:
and carrying out configuration recovery based on the determined configuration information in the target backup file and the operation information of the network equipment corresponding to the equipment identifier, which is recorded after the closest production time.
Optionally, the management device is an SDN controller, or a server in the cloud platform.
With reference to the second aspect of the embodiments of the present specification, the present application provides a backup recovery apparatus, applied to a management device, including:
a backup unit for periodically generating a backup file and recording operation information on the management device;
the determining unit is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
and the recovery unit is used for carrying out configuration recovery based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered.
Optionally, the determining unit is further configured to obtain operation information before the time to be restored if the backup file does not exist before the time to be restored;
and the recovery unit is also used for carrying out operation recovery according to the operation information before the time to be recovered.
Optionally, the determining unit includes:
the receiving module is used for acquiring the time to be recovered and the equipment identification of the network equipment to be recovered;
the file determining module is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
the configuration determining module is used for determining configuration information corresponding to the equipment identifier in the backup file;
the recovery unit is specifically configured to perform configuration recovery based on the configuration information determined in the target backup file and the operation information of the network device corresponding to the device identifier recorded after the closest production time.
Optionally, the management device is a software defined network SDN controller, or a server in the cloud platform.
With reference to the third aspect of the embodiments of the present specification, the present application provides a management apparatus, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps implementing any of the above.
In connection with a fourth aspect of the embodiments herein, the application provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps implementing any of the above.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the backup file is periodically generated, and the operation information carried out on the management device is recorded, after the time to be restored is selected, the management device can determine the backup file closest to the time to be restored as the target backup file, and the operation information between the target backup file and the time to be restored is used for carrying out configuration restoration, so that the flexibility of the management device for carrying out configuration restoration is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a configuration restoration method in accordance with the present application;
fig. 2 is a network configuration diagram to which a configuration restoration method according to an embodiment of the present application is applied;
FIG. 3 is a schematic diagram of determining a target backup file based on a time to restore in a configuration restoration method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of searching configuration information and operation information based on a device identifier in a configuration recovery method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a configuration restoration device according to the present application;
fig. 6 is a schematic structural view of a management apparatus according to the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The application provides a backup recovery method, as shown in fig. 1, applied to management equipment, comprising the following steps:
and S100, periodically generating backup files and recording operation information on the management equipment.
The management device may be an SDN (software defined network ) controller or a server in a cloud platform for performing a nano-tube on a network device, and of course, may also include management devices in other networks, which is not limited.
As shown in fig. 2, the management device may be configured by itself or configured for the network device, and the backup file may be recorded with the configuration of the management device itself and the configuration for the networking global, and these configurations may be referred to as configuration information.
Operations on the management device that are global to the networking and operations on one or more network devices may also be logged into an operation log, which may be referred to as operation information.
The generation of the backup file on the management apparatus is periodic, and the file name in the backup file or the backup file itself may record the time of generating the backup file, for example, the setting of every day 03:00 time to generate the backup file (hereinafter referred to as generation time), the file name of the backup file generated at 2023, 2 nd and 1 st day may be recorded as 202301010300, or the time may be recorded to a specific location of the backup file. Of course, the cycle is not limited to the above-described time, and may be one week, one month, or the like, and is not limited thereto.
An operation log (log) may be generated in the management device, and when a worker performs an operation on the management device, information such as the time of the current operation, the operation object, and the operation content may be written in the operation log, and the information such as the time, the operation object, and the operation content recorded in the operation log may be referred to as operation information.
S101, determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file.
The management apparatus may acquire a point of time as the time to be restored, for example, 2023, 2, 3, and 16 days as the time to be restored. The time to be recovered can be carried in a recovery request sent by a worker on a remote device, or can be input directly by the worker on a management device.
After the management device obtains the time to be restored, the generation time closest to the time to be restored is determined according to the generation time of the stored backup file, as shown in fig. 3, backup files 1 to 4 are stored on the management device, the generation time is 2023, 2 nd month 1 day 3, 2023, 2 nd month 3 day 3, 2023 year 2 nd month 3 day 3, and 2023, 4 nd day 3, respectively, the generation time of 2023, 2 nd month 3 day 3, and the generation time closest to the time to be generated can be determined, and the backup file 3 corresponding to the generation time is determined as the target backup file.
S102, performing configuration recovery based on the operation information recorded between the closest generation time and the time to be recovered of the target backup file.
After the management device determines the target backup file, an operation performed between the generation time of the target backup file and the time to be restored needs to be acquired, and the operation is recorded in an operation log. The management apparatus reads the operation log, and extracts therefrom the operation information recorded in the operation log between the generation time (2023, 2, 3 days) and the time to be restored (2023, 2, 3, 16 days).
Thereafter, the management device can perform configuration recovery according to the obtained target backup file and the operation information. Specifically, the management device may perform configuration restoration according to the target backup file, so that the management device restores to the configuration corresponding to the target backup file.
And then, the management equipment executes the operation information acquisition again, and the configuration of the network equipment related to the target backup file and the operation information is synchronized to the network equipment, so that the management equipment and the network equipment managed by the management equipment are restored to the time to be restored by the staff.
In the embodiment of the specification, the backup file is periodically generated, and the operation information carried out on the management device is recorded, after the time to be restored is selected, the management device can determine the backup file closest to the time to be restored as the target backup file, and the operation information between the target backup file and the time to be restored is used for carrying out configuration restoration, so that the flexibility of the management device for carrying out configuration restoration is improved.
Optionally, after the operation information recorded on the management device in step S100, the method further includes:
s103, if the backup file does not exist before the time to be restored, the operation information before the time to be restored is acquired.
S104, performing operation recovery according to the operation information before the time to be recovered.
If the management device is just on line and does not reach the preset time point, the backup file is not generated in the management device. At this time, the management apparatus may directly read all the operation information recorded in the operation log before the time to be restored, and perform operation restoration according to the operation information, thereby completing configuration restoration of the management apparatus.
Optionally, step S101 determines a backup file corresponding to a generation time closest to the time to be restored as a target backup file, including:
S101A, acquiring time to be recovered and equipment identification of the network equipment to be recovered.
S101B, determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file.
S101C, determining configuration information corresponding to equipment identification in the backup file;
step S102, performing configuration recovery based on the target backup file and the operation information recorded between the closest generation time and the time to be recovered, specifically:
and carrying out configuration recovery based on the determined configuration information in the target backup file and the operation information of the network equipment corresponding to the equipment identifier, which is recorded after the closest production time.
When the management device performs configuration recovery, unified configuration recovery can be performed for the networking global (i.e. all network devices), and configuration recovery can also be performed for a certain network device or certain network devices in the networking. When configuration restoration is required for part of network devices, a worker can select the network device to be restored at the management device, or can select the network device to be restored on the management page of the remote device and generate a restoration request carrying the device identifier corresponding to the network device to be restored. The device identification may be a unique identification of the network device in the network, an IP (internet protocol ) address or a MAC (media access control, media Access Control) address, etc.
And the management equipment determines configuration information and operation information corresponding to the equipment identification from the target backup file and the operation log according to the equipment identification carried in the selection or recovery request of the staff. In the backup file and operation log, the configuration information and operation information may be marked by a device identifier to indicate that the portion of the configuration information and operation information corresponds to a certain network device or devices, as shown in fig. 4.
After the management device obtains the configuration information in the target backup file and the operation information in the operation log, the management device can synchronize the configuration information and the operation information with the network device corresponding to the device identifier so as to complete the configuration recovery of the target network device.
Through the device identifier, the management device can perform configuration recovery on part of the network devices, and the flexibility of the management device in configuration recovery is further improved.
Correspondingly, the application provides a backup recovery device which is applied to management equipment, as shown in fig. 5, and comprises:
a backup unit for periodically generating a backup file and recording operation information on the management device;
the determining unit is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
and the recovery unit is used for carrying out configuration recovery based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered.
Optionally, the determining unit is further configured to obtain operation information before the time to be restored if the backup file does not exist before the time to be restored;
and the recovery unit is also used for carrying out operation recovery according to the operation information before the time to be recovered.
Optionally, the determining unit includes:
the receiving module is used for acquiring the time to be recovered and the equipment identification of the network equipment to be recovered;
the file determining module is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
the configuration determining module is used for determining configuration information corresponding to the equipment identifier in the backup file;
the recovery unit is specifically configured to perform configuration recovery based on the configuration information determined in the target backup file and the operation information of the network device corresponding to the device identifier recorded after the closest production time.
Optionally, the management device is a software defined network SDN controller, or a server in the cloud platform.
Accordingly, the present application provides a management device, as shown in fig. 6, comprising a processor and a machine-readable storage medium storing machine-executable instructions capable of being executed by the processor, the processor being caused by the machine-executable instructions to: method steps implementing any of the above.
Accordingly, the present application provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps implementing any of the above.
The technical scheme provided by the embodiment of the specification can comprise the following beneficial effects:
in the embodiment of the specification, the backup file is periodically generated, and the operation information carried out on the management device is recorded, after the time to be restored is selected, the management device can determine the backup file closest to the time to be restored as the target backup file, and the operation information between the target backup file and the time to be restored is used for carrying out configuration restoration, so that the flexibility of the management device for carrying out configuration restoration is improved.
It is to be understood that the present description is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be made without departing from the scope thereof.
The foregoing description of the preferred embodiments is provided for the purpose of illustration only, and is not intended to limit the scope of the disclosure, since any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A backup restoration method, applied to a management device, comprising:
periodically generating a backup file and recording operation information on the management device;
determining a backup file corresponding to the generation time closest to the time to be restored as a target backup file;
and performing configuration recovery based on the target backup file and the operation information recorded between the closest generation time and the time to be recovered.
2. The method according to claim 1, further comprising, after the operation information recorded on the management device:
if the backup file does not exist before the time to be restored, acquiring the operation information before the time to be restored;
and performing operation recovery according to the operation information before the time to be recovered.
3. The method of claim 1, wherein determining the backup file corresponding to the generation time closest to the time to be restored as the target backup file comprises:
acquiring time to be recovered and equipment identification of network equipment to be recovered;
determining a backup file corresponding to the generation time closest to the time to be restored as a target backup file;
determining configuration information corresponding to the equipment identifier in the backup file;
the configuration recovery is performed based on the operation information recorded between the target backup file and the closest generation time to the time to be recovered, specifically:
and carrying out configuration recovery based on the determined configuration information in the target backup file and the operation information of the network equipment corresponding to the equipment identifier, which is recorded after the closest production time.
4. The method of claim 1, wherein the management device is a software defined network, SDN, controller, or a server in a cloud platform.
5. A backup restoration apparatus, applied to a management device, comprising:
a backup unit for periodically generating a backup file and recording operation information on the management device;
the determining unit is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
and the recovery unit is used for carrying out configuration recovery based on the target backup file and the operation information recorded between the nearest generation time and the time to be recovered.
6. The apparatus of claim 5, wherein the device comprises a plurality of sensors,
the determining unit is further configured to obtain operation information before the time to be restored if the backup file does not exist before the time to be restored;
and the recovery unit is also used for carrying out operation recovery according to the operation information before the time to be recovered.
7. The apparatus according to claim 5, wherein the determining unit includes:
the receiving module is used for acquiring the time to be recovered and the equipment identification of the network equipment to be recovered;
the file determining module is used for determining the backup file corresponding to the generation time closest to the time to be restored as a target backup file;
the configuration determining module is used for determining configuration information corresponding to the equipment identifier in the backup file;
the recovery unit is specifically configured to perform configuration recovery based on the configuration information determined in the target backup file and the operation information of the network device corresponding to the device identifier, which is recorded after the closest production time.
8. The apparatus of claim 5, wherein the management device is an SDN controller, or a server in a cloud platform.
9. A management device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: method steps of any of claims 1-4 are achieved.
10. A machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: method steps of any of claims 1-4 are achieved.
CN202310572132.0A 2023-05-18 2023-05-18 Configuration recovery method and device Pending CN116723104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310572132.0A CN116723104A (en) 2023-05-18 2023-05-18 Configuration recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310572132.0A CN116723104A (en) 2023-05-18 2023-05-18 Configuration recovery method and device

Publications (1)

Publication Number Publication Date
CN116723104A true CN116723104A (en) 2023-09-08

Family

ID=87874324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310572132.0A Pending CN116723104A (en) 2023-05-18 2023-05-18 Configuration recovery method and device

Country Status (1)

Country Link
CN (1) CN116723104A (en)

Similar Documents

Publication Publication Date Title
CN108255641B (en) CDP disaster recovery method based on cloud platform
CN110784495B (en) Block chain-based discovery and configuration information management method for big data cluster system
CN107688611B (en) Saltstack-based Redis key value management system and method
CN112769924B (en) Distributed deployment method, device, equipment and medium of RocktMQ
CN109542330B (en) Data storage method, data query method and device
CN110765203B (en) Method and system for realizing MySQL master-slave synchronization and performance acquisition of container
CN104750738B (en) A kind of method for updating the data information, back end, management node and system
CN103092959A (en) Processing method and device for task time zone
CN104202387A (en) Metadata recovery method and related device
CN115277727A (en) Data disaster recovery method, system, device and storage medium
CN102594874B (en) Synchronization processing method and device
CN110740355A (en) Equipment monitoring method and device, electronic equipment and storage medium
CN111404978B (en) Data storage method and cloud storage system
CN116723104A (en) Configuration recovery method and device
CN111400276A (en) Real-time synchronous database migration device and method
CN111797060B (en) Offline video recording method, device and equipment and computer readable storage medium
CN102244619B (en) Equipment management method, gateway and server
CN112910697A (en) Fault processing method and device
CN112433882A (en) Method for recording and recovering micro-service deployment information
CN111224935A (en) Synchronization method and device for user login state
CN108494859B (en) Network data synchronization method and system
CN107864096B (en) Path adjusting method and device
CN116389311A (en) Node service deployment method, device, equipment and medium
CN117493272A (en) Method and device for synchronizing resources among clusters, computer equipment and storage medium
CN115460054A (en) Cloud service management and release method and system based on shared memory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination