CN110569146B - Data backup and configuration method, device, storage medium and system - Google Patents

Data backup and configuration method, device, storage medium and system Download PDF

Info

Publication number
CN110569146B
CN110569146B CN201910795818.XA CN201910795818A CN110569146B CN 110569146 B CN110569146 B CN 110569146B CN 201910795818 A CN201910795818 A CN 201910795818A CN 110569146 B CN110569146 B CN 110569146B
Authority
CN
China
Prior art keywords
file
msan
data backup
management system
network management
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
CN201910795818.XA
Other languages
Chinese (zh)
Other versions
CN110569146A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN201910795818.XA priority Critical patent/CN110569146B/en
Publication of CN110569146A publication Critical patent/CN110569146A/en
Application granted granted Critical
Publication of CN110569146B publication Critical patent/CN110569146B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1435Saving, restoring, recovering or retrying at system level using file system or storage system metadata
    • 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/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The invention provides a data backup and configuration method, equipment, a storage medium and a system, which firstly identify a number analysis table file in a service database of MSAN equipment, then read the number analysis table file, store the number analysis table file in another storage space, delete the number analysis table file in the service database, thereby greatly reducing the volume of the service database, further greatly reducing the flow required by a network management system for carrying out data backup on all MSAN equipment managed by the network management system, and in addition, the MSAN equipment can be successfully configured according to the service database with the greatly reduced volume when carrying out data configuration, thereby solving the problem of overlarge flow required by the network management system for carrying out data backup on all MSAN equipment managed by the network management system in the prior art.

Description

Data backup and configuration method, device, storage medium and system
Technical Field
The present invention relates to the field of MSAN devices, and in particular, to a data backup and configuration method, device, storage medium, and system.
Background
Generally, a communication carrier in a country divides the country into a plurality of areas, and each area has a plurality of MSAN (Multi-Service Access Node ) devices, and a network management system for managing all MSAN devices is set. In general, the number of MSAN devices that a network management system needs to manage is very large, for example, the number of MSAN devices that a network management system set by a certain communication carrier manages is up to 5000.
The communication carrier sets a corresponding number analysis table file for each of the areas, and all MSAN devices under each of the areas store the number analysis table file corresponding to the area, which is stored in a service database (Sysconfig) of the MSAN devices. In this way, in the operation process of all MSAN devices, if a user dials a correct number, the MSAN device will perform number analysis on the number according to the number analysis table file, determine the network addressing and service processing mode corresponding to the number, and perform signaling interaction and session connection correctly, so as to realize the call between the user and the terminal to which the dialed number belongs. However, various faults can occur in the running process of the MSAN device inevitably, the device is restarted if the faults are light, and the data loss occurs if the faults are heavy, so that the MSAN device needs to be subjected to data configuration again after the faults are removed. Therefore, in order to prevent data loss, it is very important to regularly backup the service databases of all MSAN devices through the network management system.
However, since the number analysis table file has a very large record size, the size of the number analysis table file is very large, and thus the service database is very large, for example, a size of 14.9M of the number analysis table file storing 20 ten thousand records is very large, and thus the service database is very large 15M. Thus, when the network management system performs data backup on all MSAN devices, the required traffic will be quite large, for example, the traffic spent by the network management system in performing data backup is as high as 75G (15 m×5000), which is obviously completely unacceptable. Therefore, it can be seen that based on the MSAN device, an effective data backup and configuration method is needed, which not only can greatly reduce the volume of the service database of the MSAN device, thereby greatly reducing the data backup flow of the network management system, but also can successfully configure the MSAN device according to the service database with greatly reduced volume when the MSAN device performs data configuration.
Accordingly, there is a need for improvement and development in the art.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention aims to provide a data backup and configuration method, device, storage medium and system, which aims to solve the problem of excessive flow required when a network management system performs data backup on all MSAN devices managed by the network management system in the prior art.
In a first aspect, the present invention provides a data backup and configuration method, including:
reading a number analysis list file stored in a service database, saving the number analysis list file in another storage space, and deleting the number analysis list file in the service database;
when receiving a data backup instruction sent by a network management system, sending a service database of which the number analysis list file is deleted to the network management system for backup.
Further, the step of reading the number analysis list file stored in the service database further includes:
screening all files with appointed suffixes from the service database;
reading the file with the largest file volume from all the files with the specified suffixes;
judging whether the content in the file with the largest file volume contains specific characteristic content, if so, judging that the file with the largest file volume is a number analysis table file.
Still further, the file with the specified suffix is a file ending with a cfg.
Still further, the specific feature content includes one or more of OFC code, number prefix, minimum number length, maximum number length, or processing index code.
Still further, the step of determining whether the content in the file with the largest file volume includes the specific feature content further includes:
if not, sequentially reading the other files with the specified suffixes according to the sequence from large to small of the file volume, judging whether the content of the currently read file contains the specific characteristic content, and if so, judging that the currently read file is a number analysis table file.
Further, the data backup and configuration method further comprises:
when a data configuration instruction is received, if the current MSAN equipment is started for the first time, importing a number file table file corresponding to the MSAN equipment from the network management system;
and reading a service database in the storage space of the MSAN equipment and a number file table file imported from the network management system to complete data configuration.
Still further, when receiving the data configuration instruction, the steps further include:
if the current MSAN equipment is not started for the first time, reading a service database and a number analysis table file in the storage space of the MSAN equipment to complete data configuration.
In a second aspect, the present invention provides a storage medium storing a data backup and configuration program, where the data backup and configuration program, when executed by a processor, implements the steps of the data backup and configuration method as described above.
In a third aspect, the present invention provides an MSAN apparatus, including: the system comprises a memory, a processor and a data backup and configuration program stored on the memory and capable of running on the processor, wherein the data backup and configuration program realizes the steps of the data backup and configuration method when being executed by the processor.
In a fourth aspect, the present invention provides a data backup and configuration system, where the data backup and configuration system includes a plurality of MSAN devices according to the third aspect, and a network management system that establishes communication connection with all the MSAN devices, where all the MSAN devices receive, through a wireless network, a data backup or data configuration instruction transmitted by the network management system in real time, and execute a corresponding operation according to the data backup or data configuration instruction.
Compared with the prior art, the invention provides a data backup and configuration method, equipment, a storage medium and a system, which firstly identify a number analysis table file in a service database of MSAN equipment, then read the number analysis table file, store the number analysis table file in another storage space, delete the number analysis table file in the service database, thereby greatly reducing the volume of the service database, further greatly reducing the flow required by a network management system for carrying out data backup on all MSAN equipment managed by the network management system, and in addition, the MSAN equipment can be successfully configured according to the service database with the greatly reduced volume when carrying out data configuration, thereby solving the problem of overlarge flow required by the network management system for carrying out data backup on all MSAN equipment managed by the network management system in the prior art.
Drawings
FIG. 1 is a flow chart of a data backup and configuration method provided by the present invention.
Fig. 2 is a schematic diagram of a portion of a file included in a service database according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a part of the contents of a read number analysis table file according to an embodiment of the present invention.
Detailed Description
The invention provides a data backup and configuration method, equipment, a storage medium and a system, which are used for making the purposes, technical schemes and effects of the invention clearer and more definite, and the invention is further described in detail below. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, referring to fig. 1, a data backup and configuration method provided by the present invention includes the steps of:
s10, reading a number analysis list file stored in a service database, saving the number analysis list file to another storage space, and deleting the number analysis list file in the service database;
specifically, in the service database of the MSAN device, the volume occupied by the number analysis table file is very large in general, for example, in the MSAN device described in the background art, the volume of the service database is 15M, and the volume of the number analysis table file reaches 14.9M, so if the number analysis table file in the service database is stripped, the volume of the service database can be greatly reduced, and then the flow required when the network management system performs data backup on all the MSAN devices managed by the network management system is greatly reduced.
Based on the above thought, after the number analysis table file stored in the service database is read, the number analysis table file is stored in a storage space except the service database, and the number analysis table file is deleted in the service database, the service database does not contain the number analysis table file any more, so that the volume of the service database is greatly reduced. Preferably, in the storing process, the stored file is named according to a designated name, for example, number Anylasis.
In one embodiment, step S10 is preceded by:
s001, screening all files with appointed suffixes from the service database;
specifically, as shown in fig. 2, the service database contains a number of files with specified suffixes, which are typically binary files ending with cfg, and the number analysis table file is also binary file ending with cfg. Therefore, it is necessary to filter out all files ending with cfg and further look up the number analysis table file in these files.
S002, reading the file with the largest file volume from all the files with the specified suffixes;
s003, judging whether the content in the file with the largest file volume contains specific characteristic content, if so, judging that the file with the largest file volume is a number analysis table file.
In particular, the volume ratio of the number analysis table file is usually the largest in the traffic database, so that the largest file among all files ending with cfg can be basically confirmed as the number analysis table file, but for the reliability of the scheme, it is further verified whether the largest file is the number analysis table file.
Therefore, firstly, the file with the largest volume is read, whether the content of the file contains specific characteristic content or not is judged, and if so, the file is judged to be a number analysis table file. The content of the number analysis table file is standard and fixed, and the standard and fixed content is specific feature content, and the specific feature content is related to the planning of the operator where the MSAN device is located, as shown in fig. 3, the specific feature content includes one or more of OFC code, number prefix, minimum number length, maximum number length and processing index code. Therefore, the file with the largest volume and ending with cfg is read first, and whether the content of the file contains specific characteristic content or not is judged, so that whether the file is a number analysis table file or not is judged, the execution efficiency of the whole method is improved, and the reliability of the whole method is also improved.
In another embodiment, step S003 further comprises:
s004, if not, sequentially reading the rest files with the specified suffixes according to the sequence from big to small of the file volume, judging whether the content of the currently read file contains the specific characteristic content, and if so, judging that the currently read file is a number analysis table file.
In particular, it is not excluded that some special cases (e.g. human errors) result in that the cfg file with the largest volume in the service data is not the number analysis table file, so in order to further ensure the reliability of the method as a whole, if step S003 determines that the content of the cfg file with the largest volume does not contain specific feature content, it is determined that the cfg file with the largest volume is not the number analysis table file, and thus it is necessary to continue to identify the number analysis table file in the remaining cfg files.
Based on the characteristics of the number analysis table file, sequentially reading the rest files ending with cfg according to the sequence from large to small in volume, judging whether the content of the file currently read contains specific characteristic content or not after reading, and if yes, judging that the file currently read is the number analysis table file; if not, continuing to read the next file and continuing to judge until the content of a certain file is read to contain specific characteristic content.
And S20, when a data backup instruction sent by the network management system is received, the service database of the deleted number analysis table file is sent to the network management system for backup.
Specifically, after step S10, the service database of the MSAN device has no number analysis table file, and the number analysis table file is stored in a storage space of the MSAN device except for the service database, so that the volume of the service database has been greatly reduced, for example, after the number analysis table file is stripped, the volume of the service database of the MSAN device changes from 15M to only 100K (15M-14.9M). Therefore, when the network management system needs to perform data backup on all the MSAN devices managed by the network management system, namely, each MSAN device receives a data backup instruction sent by the network management system, each MSAN device sends the service database to the network management system, and at the moment, even if the number of the MSAN devices is very large, the volume of the service database of each MSAN device is very small, so that the flow required by the network management system for performing data backup is very small. For example, in the network management system and 5000 MSAN devices managed by the network management system in the background technology, the flow required by the original network management system when carrying out data backup is up to 75G, but the volume of the service database of each MSAN device after step S10 is only 100K (original 14.9M), so the flow required by the network management system when carrying out data backup is only about 500MB (100 k×5000), and obviously, the method provided by the invention can greatly reduce the data backup flow of the network management system.
In another embodiment, the data backup and configuration method further includes the steps of:
s30, when a data configuration instruction is received, if the current MSAN equipment is started for the first time, importing a number file table file corresponding to the MSAN equipment from the network management system; and reading a service database in the storage space of the MSAN equipment and a number file table file imported from the network management system to complete data configuration.
And S40, if the current MSAN equipment is not started for the first time, reading a service database and a number analysis table file in the storage space of the MSAN equipment to complete data configuration.
Specifically, when the original MSAN device needs to perform data configuration, the original MSAN device reads the service database in the storage space and writes the service database into the memory, and although the above steps can solve the problem that the network management system has too large flow during data backup, the service database of the MSAN device after the above steps has no number analysis table file, and the original data configuration method is not applicable any more. Based on this, a new data configuration method of the MSAN is required.
When the MSAN device receives the data configuration instruction, if the MSAN device is started for the first time, the MSAN device is indicated to be a new device, and the storage space of the MSAN device is provided with a service database, but no number analysis table file, so that the number analysis table file corresponding to the MSAN device needs to be imported from a network management system, and after the number analysis table file is successfully imported, the MSAN device reads the service database and the number analysis table file and writes the service database and the number analysis table file into a memory to complete data configuration. The data configuration instruction can be sent to the MSAN equipment by a network management system or can be sent by the field operation of related staff; the number analysis table file corresponding to the MSAN device, specifically, each MSAN device has a region to which the MSAN device belongs, and each region corresponds to one number analysis table file, so the number analysis table file corresponding to the MSAN device refers to the number analysis table file corresponding to the region to which the MSAN device belongs.
If the MSAN device is not started for the first time, the MSAN device is not a new device, the service database and the number analysis table file are stored in the storage space of the MSAN device, and the MSAN device directly reads the service database and the number analysis table file and writes the service database and the number analysis table file into the memory to complete data configuration.
In summary, the method for data backup and configuration provided by the invention firstly identifies the number analysis table file in the service database of the MSAN device, then reads the number analysis table file, stores the number analysis table file in another storage space, and deletes the number analysis table file in the service database, so that the volume of the service database can be greatly reduced, and further, the flow required by a network management system for carrying out data backup on all the MSAN devices managed by the network management system is greatly reduced.
In a second aspect, the present invention also provides a storage medium storing a data backup and configuration program, which when executed by a processor implements the steps of any of the data backup and configuration methods, as described above.
In a third aspect, the present invention also provides an MSAN apparatus, including: the system comprises a memory, a processor and a data backup and configuration program stored on the memory and capable of running on the processor, wherein the data backup and configuration program realizes the steps of any data backup and configuration method when being executed by the processor, and the steps are concretely described above.
In a fourth aspect, the present invention further provides a data backup and configuration system, where the data backup and configuration system includes a plurality of MSAN devices according to the third aspect, and a network management system that establishes communication connection with all the MSAN devices, where all the MSAN devices receive, through a wireless network, a data backup or data configuration instruction transmitted by the network management system in real time, and execute a corresponding operation according to the data backup or data configuration instruction, as described above in detail.
It is to be understood that the invention is not limited in its application to the examples described above, but is capable of modification and variation in light of the above teachings by those skilled in the art, and that all such modifications and variations are intended to be included within the scope of the appended claims.

Claims (7)

1. A method for backing up and configuring data, comprising:
screening all files with appointed suffixes from a service database;
reading the file with the largest file volume from all the files with the specified suffixes;
judging whether the content in the file with the largest file volume contains specific characteristic content or not, if so, judging that the file with the largest file volume is a number analysis table file; if not, sequentially reading the other files with the specified suffixes according to the sequence from large to small of the file volume, judging whether the content of the currently read file contains the specific characteristic content, and if so, judging that the currently read file is a number analysis table file;
reading a number analysis table file stored in a service database, saving the number analysis table file in another storage space, and deleting the number analysis table file in the service database;
when receiving a data backup instruction sent by a network management system, sending a service database of which the number analysis table file is deleted to the network management system for backup;
when a data configuration instruction is received, if the current MSAN equipment is started for the first time, importing a number file table file corresponding to the MSAN equipment from the network management system, wherein the data configuration instruction is sent by the network management system or related staff;
and reading a service database in the storage space of the MSAN equipment and a number file table file imported from the network management system to complete data configuration.
2. The data backup and configuration method of claim 1 wherein the file with the specified suffix is a file ending with a cfg.
3. The data backup and configuration method of claim 1, wherein the specific feature content comprises one or more of OFC coding, number prefix, minimum number length, maximum number length, or processing index coding.
4. The method according to claim 1, wherein the step of, when receiving the data configuration instruction, further comprises:
if the current MSAN equipment is not started for the first time, reading a service database and a number analysis table file in the storage space of the MSAN equipment to complete data configuration.
5. A storage medium storing a data backup and configuration program which, when executed by a processor, performs the steps of the data backup and configuration method of any one of claims 1-4.
6. An MSAN apparatus, the MSAN apparatus comprising: memory, a processor and a data backup and configuration program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the data backup and configuration method as claimed in any one of claims 1-4.
7. The data backup and configuration system is characterized by comprising a plurality of MSAN devices as claimed in claim 6 and a network management system which establishes communication connection with all the MSAN devices, wherein all the MSAN devices receive data backup or data configuration instructions transmitted by the network management system in real time through a wireless network and execute corresponding operations according to the data backup or data configuration instructions.
CN201910795818.XA 2019-08-27 2019-08-27 Data backup and configuration method, device, storage medium and system Active CN110569146B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910795818.XA CN110569146B (en) 2019-08-27 2019-08-27 Data backup and configuration method, device, storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910795818.XA CN110569146B (en) 2019-08-27 2019-08-27 Data backup and configuration method, device, storage medium and system

Publications (2)

Publication Number Publication Date
CN110569146A CN110569146A (en) 2019-12-13
CN110569146B true CN110569146B (en) 2023-12-01

Family

ID=68776333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910795818.XA Active CN110569146B (en) 2019-08-27 2019-08-27 Data backup and configuration method, device, storage medium and system

Country Status (1)

Country Link
CN (1) CN110569146B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008085401A (en) * 2006-09-25 2008-04-10 Kyocera Mita Corp Image forming apparatus
CN103942126A (en) * 2014-05-12 2014-07-23 联想(北京)有限公司 Electronic device and data backup method thereof
CN104731530A (en) * 2015-03-23 2015-06-24 广东欧珀移动通信有限公司 Mobile terminal and file management method applied to same
CN107766005A (en) * 2017-11-02 2018-03-06 深圳天珑无线科技有限公司 E-file processing method, device and electric terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2759942A4 (en) * 2011-09-21 2015-05-06 Hitachi Ltd Computer system, file management method and metadata server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008085401A (en) * 2006-09-25 2008-04-10 Kyocera Mita Corp Image forming apparatus
CN103942126A (en) * 2014-05-12 2014-07-23 联想(北京)有限公司 Electronic device and data backup method thereof
CN104731530A (en) * 2015-03-23 2015-06-24 广东欧珀移动通信有限公司 Mobile terminal and file management method applied to same
CN107766005A (en) * 2017-11-02 2018-03-06 深圳天珑无线科技有限公司 E-file processing method, device and electric terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种实时数据库备份恢复方法;史英杰 等;《计算机应用》;第36卷(第S1期);第54-57页 *

Also Published As

Publication number Publication date
CN110569146A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
EP3082353B1 (en) Method and terminal device for sending and receiving user data
CN107105050B (en) Storage and downloading method and system for service objects
CN1459207A (en) Method for over air mobile station management
US20120185454A1 (en) Method and device for accessing file resources
CN110333876A (en) A kind of data clearing method and control equipment
CN109978290A (en) A kind of operation flow backspacing processing method of extensive makeup, flow engine and operation system
CN107094085B (en) Signaling transmission method and device
CN103927252A (en) Cross-component log recording method, device and system
CN102340544B (en) Method and device for downloading upgrade file packet
CN107135108A (en) The update method and system of network connection list
CN110569146B (en) Data backup and configuration method, device, storage medium and system
CN107493181B (en) Indication method and device of virtual expansion port
CN101778377A (en) Parameter configuration method, mobile terminal and terminal equipment
CN114706526A (en) Automatic capacity expansion method, system and equipment for cloud native storage data volume
CN100442715C (en) Plan and task realizing method in device management
CN112685094A (en) Service unloading method, device, equipment and computer readable storage medium
CN105867961A (en) System upgrading and degrading method and device
CN101414929B (en) Method, device and system for acquiring information
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN113793612B (en) Updating method and device of model service and storage medium
CN111722801B (en) Label-based storage volume attribute management method, device, equipment and medium
CN110737635A (en) data blocking method
CN113326308B (en) Intelligent integration method and device for financial data and processor
CN116405598B (en) Telephone deployment method and device and electronic equipment
CN108958654B (en) Management method and related device of storage system

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
GR01 Patent grant
GR01 Patent grant