CN101183979B - Method and device of configuration backup - Google Patents

Method and device of configuration backup Download PDF

Info

Publication number
CN101183979B
CN101183979B CN2007101716682A CN200710171668A CN101183979B CN 101183979 B CN101183979 B CN 101183979B CN 2007101716682 A CN2007101716682 A CN 2007101716682A CN 200710171668 A CN200710171668 A CN 200710171668A CN 101183979 B CN101183979 B CN 101183979B
Authority
CN
China
Prior art keywords
configuration
file
backup
configuration data
data
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.)
Active
Application number
CN2007101716682A
Other languages
Chinese (zh)
Other versions
CN101183979A (en
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.)
Huawei Technologies Co Ltd
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai Huawei 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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CN2007101716682A priority Critical patent/CN101183979B/en
Publication of CN101183979A publication Critical patent/CN101183979A/en
Application granted granted Critical
Publication of CN101183979B publication Critical patent/CN101183979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and the device for backup configuration; wherein, the method comprises the following steps: a configuration order is received, a message for modifying configuration data is sent to a memory database according to the configuration order; the memory database modifies and collects the existing relevant configuration data in the configuration backup file according to the message for modifying configuration data; according to the configuration order, the newly-added configuration data related to the configuration is stored in the preset transaction log file. When in on-line configuration, the invention avoids persistent data configuration when the system is busy, thereby the configuration efficiency is improved, and the customer satisfaction is improved.

Description

A kind of method and apparatus of configuration backup
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus of configuration backup.
Background technology
Configuration data is the core data of communication system, when communication system is carried out Configuration Online, configuration data need be configured backup in real time, configuration backup refers to the static snapshot of the configuration data in a certain moment of system is backed up preservation in the mode of persistence, so that in case of necessity can be from the backup of persistence the recovery system Backup Data, the backup mode of persistence generally is that the mode with file is kept among the non-volatile memory media, and for example the mode with file is kept in hard disk or the flash memory.Generally, configuration data manages in the mode of database, so the mode that configuration backup is backed up in realtime with database is carried out.
The database that adopts in the communication system can be divided into commercial relational database and memory database.Wherein commercial data base is supported incremental backup, Database Backup mechanism can guarantee the real-time of configuration backup, so configuration backup, and recovery configuring data to the configuration restore in the system all can adopt the mechanism of database to carry out from the persistence file of configuration backup, after the configuration restore success, the configuration data when configuration data that system is current and system configuration backup is in full accord.Wherein the DB Backup of memory database is not generally supported incremental backup, all need the total data of database is carried out persistence to finish Database Backup during each the backup, in this case, when the amount of configuration data of network element system is big, adopt the back mechanism of memory database very consuming time.
In the prior art, adopting the back mechanism of memory database to carry out the process of Configuration Online can be referring to Fig. 1, and configurating terminal sends configuration order to dispensing unit; Carrying out Configuration Online when dispensing unit receives this configuration order handles, and to memory database transmission configuration database modify instruction and configuration backup instruction, memory database carries out persistence to whole configuration datas, be written in the configuration backup file of appointment, and returning configuration result to dispensing unit, dispensing unit returns configuration result to configurating terminal.Adopting the internal storage data Kuku to be configured the process of recovery can be referring to Fig. 2, and dispensing unit sends the configuration restore instruction to memory database, and memory database receives this instruction afterwards from specified file recovery configuring data.
In research and practice process to prior art, the inventor finds that there is following problem at least in prior art: incremental backup is not supported in the backup of available technology adopting memory database, need the whole configuration datas of persistence during configuration backup, so system's Configuration Online overlong time, when abnormal conditions such as power down occurring in the configuration backup process, the current configuration data of system is lost; The time of implementation of Configuration Online order is long, causes that easily configuration is overtime; The user may think that the Configuration Online of system is unavailable in addition, has reduced user's satisfaction.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of method and apparatus of configuration backup, can shorten the configuration backup time in the Configuration Online process, has improved allocative efficiency.
For solving the problems of the technologies described above, the embodiment of the invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of method of configuration backup on the one hand, comprising: receive configuration order,
Send modification configuration data message according to described configuration order to memory database;
Described memory database is according to described modification configuration data message, to existing configuration data change set relevant with configuration in the configuration backup file;
According to described configuration order, newly-increased configuration data that will be relevant with configuration is written in the default transaction journal file.
The embodiment of the invention also provides a kind of device of configuration backup on the other hand, comprising:
Receiving element is used to receive configuration order;
Transmitting element is used for sending the message of revising the configuration backup file existing configuration data relevant with configuration according to described configuration order;
Memory cell is used for according to the described configuration order that receives, the newly-increased configuration data that storage is relevant with configuration.
Above technical scheme as can be seen, because when carrying out Configuration Online, only need the set of existing configuration data in the configuration backup file that the change Configuration Online relates to, the newly-increased configuration data relevant with configuration is written in the default transaction journal file, therefore avoided in system carrying out when busy the persistence configuration data, greatly improve allocative efficiency, improved user's satisfaction.
Description of drawings
Fig. 1 is the flow chart of configuration backup in the prior art;
Fig. 2 is the flow chart of recovery configuring in the prior art;
The method flow diagram that Fig. 3 provides for the embodiment of the invention one;
The method flow diagram that Fig. 4 provides for the embodiment of the invention two;
The method flow diagram that Fig. 5 provides for the embodiment of the invention three;
The device schematic diagram that Fig. 6 provides for the embodiment of the invention four;
The device schematic diagram that Fig. 7 provides for the embodiment of the invention five;
The device schematic diagram that Fig. 8 provides for the embodiment of the invention six.
Embodiment
The embodiment of the invention provides a kind of method and apparatus of configuration backup, when being used to carry out Configuration Online, only need the set of configuration data in the configuration backup file that the change Configuration Online relates to, the configuration data increment relevant with configuration is written in the default transaction journal file, persistence configuration more consuming time is placed on system carries out during the free time.For making technical scheme of the present invention clearer, enumerate embodiment below and be elaborated:
Referring to Fig. 3, the method flow diagram for the embodiment of the invention one provides comprises:
101: dispensing unit receives the configuration order that configurating terminal sends;
102: dispensing unit is carried out the Configuration Online processing, and the configuration data relevant with configuration is divided into: existing configuration data of being correlated with configuration in the configuration backup file and the newly-increased configuration data of being correlated with configuration;
103: send configuration data to memory database and revise message, described memory database is to existing configuration data change set relevant with configuration in the described configuration backup file;
104: dispensing unit is written to the described newly-increased configuration data relevant with configuration in the default transaction journal file according to described configuration order.
Wherein, described transaction journal file identifies with transaction number, and transaction number can a unique corresponding configuration operation.Generate when described transaction number is disposed by network element system, is made up of two 32 integers, first is the configuration serial number, is increased progressively successively by 0 beginning, and second is 32 integers that produce at random or adopts other assignment algorithms generations, as timestamp.
So far, finished the Configuration Online process, can further include after the step 104:
105: return configuration result to described configurating terminal.
This embodiment as can be seen, because when carrying out Configuration Online among this embodiment, dispensing unit according to the configuration order that receives will be relevant with configuration the configuration data that increases newly be saved in the transaction journal file, relevant existing configuration data change with configuration is gathered in the configuration backup file, has avoided carrying out problems such as setup time that the persistence configuration data causes is long.
Referring to Fig. 4, the method flow diagram that provides for the embodiment of the invention two:
201: dispensing unit receives the configuration order that configurating terminal sends;
202: dispensing unit is carried out the Configuration Online processing, and the configuration data relevant with configuration is divided into: existing configuration data of being correlated with configuration in the configuration backup file and the newly-increased configuration data of being correlated with configuration;
203: send configuration data to memory database and revise message, described memory database is to existing configuration data change set relevant with configuration in the described configuration backup file;
204: dispensing unit is written to the described newly-increased configuration data relevant with configuration in the default transaction journal file according to described configuration order.
Wherein, described transaction journal file identifies with transaction number, and transaction number can a unique corresponding configuration operation.Generate when described transaction number is disposed by network element system, is made up of two 32 integers, first is the configuration serial number, is increased progressively successively by 0 beginning, and second is 32 integers that produce at random or adopts other assignment algorithms generations, as timestamp.
So far, finished the Configuration Online process, can further include after the step 204:
205: return configuration result to described configurating terminal.
After finishing above-mentioned steps, also can comprise the following steps that above-mentioned configuration data is recovered:
206:, described configuration backup file and described transaction journal file are checked according to the transaction number corresponding relation of described configuration backup file and described transaction journal file;
207: send the message of recovering described configuration backup file to described memory database;
208: described memory database is the recovery configuring data from described configuration backup file;
209: finish receiving described recovery configuring data-message, recover described transaction journal file, and send the message of revising configuration data in the memory database to described memory database.
This embodiment as can be seen, in the Configuration Online process, system is saved in the relevant configuration data that increases newly with configuration in the transaction journal file, the configuration backup mode of the existing configuration data change set relevant in the configuration backup file with configuration, promote Configuration Online efficient, improved user satisfaction.
Referring to Fig. 5, the method flow diagram that provides for the embodiment of the invention three:
301: dispensing unit receives the configuration order that configurating terminal sends;
302: dispensing unit is carried out the Configuration Online processing, and the configuration data relevant with configuration is divided into: existing configuration data of being correlated with configuration in the configuration backup file and the newly-increased configuration data of being correlated with configuration;
303: send configuration data to memory database and revise message, described memory database is to existing configuration data change set relevant with configuration in the described configuration backup file;
304: dispensing unit is written to the described newly-increased configuration data relevant with configuration in the default transaction journal file according to described configuration order.
Wherein, described transaction journal file identifies with transaction number, and transaction number can a unique corresponding configuration operation.Generate when described transaction number is disposed by network element system, is made up of two 32 integers, first is the configuration serial number, is increased progressively successively by 0 beginning, and second is 32 integers that produce at random or adopts other assignment algorithms generations, as timestamp.
So far, finished the Configuration Online process, can further include after the step 304:
305: return configuration result to described configurating terminal.
After finishing above-mentioned steps, also comprise the following steps that derive the configuration backup file:
306: when system's operation was idle, dispensing unit was derived described configuration backup file;
307: send configuration backup message to described memory database;
308: described memory database carries out persistence to whole configuration datas;
309: receive the message that described memory database is finished persistence, empty described transaction journal file.
After finishing above-mentioned steps, also can comprise the following steps that above-mentioned configuration data is recovered:
310:, described configuration backup file and described transaction journal file are checked according to the transaction number corresponding relation of described configuration backup file and described transaction journal file.
311: send configuration data message in the described configuration backup file of recovery to described memory database;
312: described memory database is the recovery configuring data from described configuration backup file.
This embodiment as can be seen, in the Configuration Online process, employing is saved in the relevant configuration data that increases newly with configuration in the transaction journal file, the mode of the configuration of the existing configuration data change set relevant in the configuration backup file with configuration, when system is idle, comparing persistence consuming time again handles, and empty the transaction journal file of preserving newly-increased configuration data, therefore when configuration restore, systematically the configuration restore time is exactly the time of recovery configuring backup file, whole process has promoted Configuration Online efficient, has taken into account the efficient of configuration restore simultaneously.
Above-mentioned each default transaction journal file described in implementing is: the file of the configuration data that increases newly that interim storage is relevant with configuration when being used for Configuration Online when system during the free time, can empty described transaction journal file.
More than method that the embodiment of the invention is provided be described, enumerate embodiment below the device that the embodiment of the invention provides be described:
Referring to Fig. 6, be the device schematic diagram that the embodiment of the invention four provides, this device comprises:
Receiving element 401 is used to receive configuration order;
Transmitting element 402 is used for sending the message of revising the configuration backup file existing configuration data relevant with configuration according to described configuration order;
Memory cell 403 is used for according to the described configuration order that receives, the newly-increased configuration data that storage is relevant with configuration.This memory cell identifies with transaction number, and transaction number can unique corresponding once-through operation, and the initial transaction number of this memory cell 403 equals the maximum transaction number of described configuration backup file.Transaction number is made up of two 32 integers, and first 32 integer configuration serial numbers are increased progressively successively by 0 beginning, and second is 32 integers that produce at random; Perhaps, first 32 integers configuration serial numbers are increased progressively successively by 0 beginning, and second generates according to timestamp.
Referring to Fig. 7, be the device schematic diagram that the embodiment of the invention five provides, this device comprises:
Receiving element 401 is used to receive configuration order;
Transmitting element 402 is used for sending the message of revising the configuration backup file existing configuration data relevant with configuration according to described configuration order;
Memory cell 403 is used for according to the described configuration order that receives, the newly-increased configuration data that storage is relevant with configuration.This memory cell identifies with transaction number, and transaction number can unique corresponding once-through operation, and the initial transaction number of this memory cell 403 equals the maximum transaction number of described configuration backup file.Transaction number is made up of two 32 integers, and first 32 integer configuration serial numbers are increased progressively successively by 0 beginning, and second is 32 integers that produce at random; Perhaps, first 32 integers configuration serial numbers are increased progressively successively by 0 beginning, and second generates according to timestamp.
First recovery unit 501 is used for sending the message of recovering configuration data in the described memory database configuration backup file.Can integrate with described transmitting element 402.
Second recovery unit 502, the user recovers the configuration data in the described memory cell 403.
Wherein, this device can also comprise:
Inspection unit 503 is used for checking the corresponding relation of described memory cell 403 and described memory database configuration backup file.
Referring to Fig. 8, be the device schematic diagram that the embodiment of the invention six provides, this device comprises:
Receiving element 401 is used to receive configuration order;
Transmitting element 402 is used for sending the message of revising the configuration backup file existing configuration data relevant with configuration according to described configuration order;
Memory cell 403 is used for according to the described configuration order that receives, the newly-increased configuration data that storage is relevant with configuration.This memory cell identifies with transaction number, and transaction number can unique corresponding once-through operation, and the initial transaction number of this memory cell 403 equals the maximum transaction number of described configuration backup file.Transaction number is made up of two 32 integers, and first 32 integer configuration serial numbers are increased progressively successively by 0 beginning, and second is 32 integers that produce at random; Perhaps, first 32 integers configuration serial numbers are increased progressively successively by 0 beginning, and second generates according to timestamp.
Lead-out unit 601 is used for deriving the configuration backup file of described memory database, the concurrent delivery part message of purchasing;
Empty unit 602, be used to receive when finishing configuration backup message, empty the configuration data in the described memory cell 403.
First recovery unit 501 is used for sending the message of recovering configuration data in the described memory database configuration backup file.Can integrate with described transmitting element 402.
Wherein, this device can also comprise:
Inspection unit 503 is used for checking the corresponding relation of described memory cell 403 and described memory database configuration backup file.
Above embodiment as can be seen, in the Configuration Online process, system adopts the configuration backup mode of increment, has improved Configuration Online speed greatly, has improved user's satisfaction; And when improving configuration backup efficient, taken into account the efficient of configuration restore.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of method and apparatus of the configuration backup of incremental mode of supporting provided by the present invention is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. the method for a configuration backup is characterized in that, comprising:
Receive configuration order, send to memory database according to described configuration order and revise configuration data message;
Described memory database is according to described modification configuration data message, to existing configuration data change set relevant with configuration in the configuration backup file;
According to described configuration order, newly-increased configuration data that will be relevant with configuration is written in the default transaction journal file.
2. method according to claim 1 is characterized in that, described will the relevant configuration data that increases newly be written in the default transaction journal file with configuration after, described method also comprises:
Return configuration result to the configurating terminal that sends described configuration order.
3. method according to claim 1 is characterized in that, described will the relevant configuration data that increases newly be written in the default transaction journal file with configuration before, described method also comprises:
Form the transaction number that identifies described transaction journal file by two 32 integers, first 32 integer configuration serial numbers are increased progressively successively by 0 beginning, and second is 32 integers that produce at random; Perhaps,
Form the transaction number that identifies described transaction journal file by two 32 integers, first 32 integers configuration serial numbers are increased progressively successively by 0 beginning, and second generates according to timestamp.
4. method according to claim 3 is characterized in that, the initial transaction number of described transaction journal file equals the maximum transaction number of described configuration backup file.
5. method according to claim 1 is characterized in that, described will the relevant configuration data that increases newly be written in the default transaction journal file with configuration after, described method also comprises:
When system's operation is idle, derive described configuration backup file;
Send configuration backup message to described memory database;
Described memory database carries out persistence to whole configuration datas;
Receive described memory database and finish the message of persistence, empty described transaction journal file.
6. method according to claim 3 is characterized in that, in the described transaction journal file that will the relevant configuration data that increases newly be written to appointment with configuration after, described method also comprises:
According to the transaction number corresponding relation of described configuration backup file and described transaction journal file, described configuration backup file and described transaction journal file are checked.
7. method according to claim 6 is characterized in that, after described configuration backup file and described transaction journal file were checked, described method also comprised:
Send configuration data message in the described configuration backup file of recovery to described memory database;
Described memory database is the recovery configuring data from described configuration backup file;
Finish receiving described recovery configuring data-message, recover described transaction journal file, and send modification configuration data message to described memory database.
8. the device of a configuration backup is characterized in that, comprising:
Receiving element is used to receive configuration order;
Transmitting element is used for sending the message of revising the configuration backup file existing configuration data relevant with configuration according to described configuration order;
Memory cell is used for according to the described configuration order that receives, the newly-increased configuration data that storage is relevant with configuration.
9. device according to claim 8 is characterized in that, described device also comprises:
Lead-out unit is used to derive described configuration backup file, the concurrent delivery part message of purchasing;
Empty the unit, be used to receive when finishing configuration backup message, empty the configuration data in the described memory cell.
10. device according to claim 8 is characterized in that, described device also comprises:
First recovery unit is used for sending and recovers described configuration backup file configuration data message, can integrate with described transmitting element.
11. device according to claim 10 is characterized in that, described device also comprises:
Second recovery unit is used for recovering the configuration data of described memory cell.
12. device according to claim 8 is characterized in that, described device also comprises:
Inspection unit is used to check the corresponding relation of described memory cell and described configuration backup file.
CN2007101716682A 2007-11-27 2007-11-27 Method and device of configuration backup Active CN101183979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101716682A CN101183979B (en) 2007-11-27 2007-11-27 Method and device of configuration backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101716682A CN101183979B (en) 2007-11-27 2007-11-27 Method and device of configuration backup

Publications (2)

Publication Number Publication Date
CN101183979A CN101183979A (en) 2008-05-21
CN101183979B true CN101183979B (en) 2010-08-18

Family

ID=39449074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101716682A Active CN101183979B (en) 2007-11-27 2007-11-27 Method and device of configuration backup

Country Status (1)

Country Link
CN (1) CN101183979B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101452401B (en) * 2008-12-10 2011-06-22 中兴通讯股份有限公司 Operation method for mapping configuration file to internal memory and system thereof
CN102096669A (en) * 2009-12-14 2011-06-15 深圳速浪数字技术有限公司 Data backup method and data backup device
US8938638B2 (en) * 2011-06-06 2015-01-20 Microsoft Corporation Recovery service location for a service
CN102571455A (en) * 2012-02-24 2012-07-11 深圳市共进电子股份有限公司 Processing method for home gateway to configure worksheets of customer premises equipment (CPE) wide area network (WAN) management protocol (CWMP)
CN105591785A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Detection method and apparatus for log message transmission and loss in distributed system
CN107295540B (en) * 2016-03-31 2021-02-26 华为技术有限公司 Network element configuration method and device
CN107797849B (en) * 2016-08-30 2021-06-08 阿里巴巴集团控股有限公司 Method, device and system for distributed transaction processing
CN106919424A (en) * 2017-02-27 2017-07-04 烽火通信科技股份有限公司 Profile management systems and management method in a kind of ONU of PON
CN109597722A (en) * 2018-12-29 2019-04-09 北京车和家信息技术有限公司 Database backup file restoration methods, device and electronic equipment
CN115484166B (en) * 2022-08-30 2024-04-19 海尔优家智能科技(北京)有限公司 Method and device for backing up configuration information, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866875A (en) * 2006-03-30 2006-11-22 华为技术有限公司 Storage management method and system for realizing data collocation between network element and network management
CN101034364A (en) * 2007-04-02 2007-09-12 华为技术有限公司 Method, device and system for implementing RAM date backup

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866875A (en) * 2006-03-30 2006-11-22 华为技术有限公司 Storage management method and system for realizing data collocation between network element and network management
CN101034364A (en) * 2007-04-02 2007-09-12 华为技术有限公司 Method, device and system for implementing RAM date backup

Also Published As

Publication number Publication date
CN101183979A (en) 2008-05-21

Similar Documents

Publication Publication Date Title
CN101183979B (en) Method and device of configuration backup
CN105389230B (en) A kind of continuous data protection system and method for combination snapping technique
US7043504B1 (en) System and method for parallel primary and secondary backup reading in recovery of multiple shared database data sets
CN106354583B (en) A kind of heat backup method and system of MySQL database
US6594676B1 (en) System and method for recovery of multiple shared database data sets using multiple change accumulation data sets as inputs
CN101739313B (en) Method for protecting and restoring continuous data
CN104182898A (en) Additional recording method of on-line transaction during night mode for bank system
CN104166606A (en) File backup method and main storage device
CN103092903A (en) Database Log Parallelization
US20090063807A1 (en) Data redistribution in shared nothing architecture
CN110807064A (en) Data recovery device in RAC distributed database cluster system
WO2007016412A2 (en) Revenue management system and method
CN104765652B (en) A kind of data backup and data reconstruction method and device
CN101562664A (en) Ticket processing method and system
CN102609479A (en) Memory database node copying method
CN100456255C (en) Device and method for fetching snapshot data
CN107623703A (en) Global transaction identifies GTID synchronous method, apparatus and system
CN110018996A (en) A kind of the snapshot rollback method and relevant apparatus of distributed memory system
CN105589887A (en) Data processing method for distributed file system and distributed file system
CN110209736A (en) Device, method and the storage medium of block chain data processing
CN104636218B (en) Data reconstruction method and device
CN101286886B (en) Method and device to recover configuring information of network appliance
CN107908737A (en) File declustering control method and device
CN101771567A (en) Method for lasting data based on blog or dual-system warm backing up for autonomous internal memory database
CN109656784A (en) A kind of log processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant