[go: up one dir, main page]

CN109542678A - A kind of server key message timed backup method and device - Google Patents

A kind of server key message timed backup method and device Download PDF

Info

Publication number
CN109542678A
CN109542678A CN201811316856.4A CN201811316856A CN109542678A CN 109542678 A CN109542678 A CN 109542678A CN 201811316856 A CN201811316856 A CN 201811316856A CN 109542678 A CN109542678 A CN 109542678A
Authority
CN
China
Prior art keywords
server
backup
port
directory
party
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.)
Granted
Application number
CN201811316856.4A
Other languages
Chinese (zh)
Other versions
CN109542678B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811316856.4A priority Critical patent/CN109542678B/en
Publication of CN109542678A publication Critical patent/CN109542678A/en
Application granted granted Critical
Publication of CN109542678B publication Critical patent/CN109542678B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种服务器关键信息定时备份方法,其特征是,包括以下步骤:监测服务器第三方组件端口流量信息;根据端口流量信息对第三方组件权重进行更新排序;对包含关键信息的文件进行异地数据冗余备份。还公开了一种服务器关键信息定时备份装置,本发明在本地备份的同时,对关键信息文件也实现数据冗余,以进一步提高数据的安全性和保证数据的完整性,防止单点故障。通过增加第三方组件权重培训的机制,减少每日重复性的大量备份占用太多系统资源和效率,只取前10或15的组件配置信息和当日日志进行备份,大大节省了备份的时间成本,使得每日备份工作更为合理。

The invention discloses a method for regularly backing up key information of a server, which is characterized by comprising the following steps: monitoring the port flow information of a third-party component of the server; updating and sorting the weight of the third-party component according to the port flow information; Offsite data redundancy backup. Also disclosed is a device for regularly backing up key information of a server. The present invention also implements data redundancy for key information files while backing up locally, so as to further improve data security, ensure data integrity, and prevent single point failures. By increasing the mechanism of third-party component weight training, the daily repetitive and large backups take up too much system resources and efficiency. Only the first 10 or 15 component configuration information and the log of the day are taken for backup, which greatly saves the time and cost of backup. Makes the daily backup job more reasonable.

Description

A kind of server key message timed backup method and device
Technical field
The present invention relates to server admin technical field, especially a kind of server key message timed backup method and dress It sets.
Background technique
Currently, the maintenance work of server generally comprised timed backup this, but the service for enterprises Device, there are no the universal methods and process of a kind of timed backup for taking into account practicability and safety.When backup information is stored in this When ground physical machine, although protecting server key message to a certain extent, does not ensure that and restore clothes at the first time The normal function of business device.
Summary of the invention
The object of the present invention is to provide a kind of server key message timed backup method and devices, for server key Information back-up proposes a kind of practicable universal method and more complete normal process, reduces a large amount of standby of daily repeatability Part occupies too many system resource and efficiency.
To achieve the above object, the present invention adopts the following technical solutions:
First aspect present invention provides a kind of server key message timed backup method, comprising the following steps:
Monitoring server third party's component ports flow information;
Sequence is updated to third party's component weights according to port flow information;
Strange land data redundancy backup is carried out to the file comprising key message.
With reference to first aspect, in a first possible implementation of that first aspect, described according to port flow information pair Third party's component weights are updated sequence, specifically include:
Third party's component ports weight initial value is set;
It is periodically ranked up according to the flow sequence descending to port, updates corresponding weighted value;
Daily set time point is ranked up according to current third party component ports weighted value.
With reference to first aspect, in a second possible implementation of that first aspect, the periodicity is according to flow opposite end The descending sequence of mouth is ranked up, and is updated corresponding weighted value, is specifically included:
When port flow is 0, weight is constant;To 1-3 components of flow sequence, weighted value increases separately 1;To flow The component of sequence 4-6, weighted value increase separately 0.5;To 7-10 components of flow sequence, weighted value increases separately 0.3;It is right Other port flows are not 0 component, and weight increases by 0.1.
With reference to first aspect, in first aspect in the third possible implementation, the described pair of text comprising key message Part carries out strange land data redundancy backup and specifically includes:
Local directory is packed into the third party's component profile and same day log of customized quantity, in database Hold, critical file directory content is packed into local directory, and generates compressed file;
Compressed file is passed through to particular account number respectively and is uploaded to two non-local physical machines;
Local backup file directory is emptied every other week.
With reference to first aspect, described to data-base content, crucial text in the 4th kind of possible implementation of first aspect Part directory content is packed into local directory, specifically includes:
It checks server database log, if read operation only occurred, data-base content is not backed up, otherwise, Data-base content is carried out to be packed into local directory;
Safety inspection is carried out to the critical file catalogue that the server user end same day uploads, is packed into local directory, if going out Existing illegal file format stops backing up the catalogue.
Second aspect of the present invention provides a kind of server key message timed backup device, comprising:
Port flow monitoring modular, monitoring server third party's component ports flow information;
Weight update module is updated sequence to third party's component weights according to port flow information;
Redundancy backup module carries out strange land data redundancy backup to the file comprising key message.
The server key message timed backup device of second aspect of the present invention realizes first aspect and first aspect Each implementation in method, and obtain identical effect.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
The present invention also realizes data redundancy while local backup, to key message file, to further increase data Safety and guarantee data integrality, prevent Single Point of Faliure.By increasing the mechanism of third party's component weights training, reduce The too many system resource of a large amount of backups occupancy and efficiency of daily repeatability, only take preceding 10 or 15 module configuration information and ought be everyday Will is backed up, and the time cost of backup is greatly saved, so that daily back-up job is more reasonable.The transmission mode of ftp, both It ensure that the permission that can control upload user, the i.e. safety of data, be very easy to realize simultaneously as building ftp, guarantee The efficiency that data upload.Daily timed backup, even more ensure that can in time orientation problem, solve the problems, such as, guarantee server Normal operation.Realize taking into account for efficiency and safety.
Detailed description of the invention
Fig. 1 is the method for the present invention flow diagram;
Fig. 2 is two method flow diagram of the embodiment of the present invention;
Fig. 3 is three method flow diagram of the embodiment of the present invention;
Fig. 4 is schematic structural diagram of the device of the invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by specific embodiment, and its attached drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
As shown in Figure 1, first aspect present invention provides a kind of server key message timed backup method, including following Step:
S1, monitoring server third party's component ports flow information;
S2, sequence is updated to third party's component weights according to port flow information;
S3, strange land data redundancy backup is carried out to the file comprising key message.
In step S1, third party's component well known port and configuration file summarize:
HTTP (Apache/Nginx) default port number are as follows: 80;Configuration file: httpd.conf/nginx.conf
Tomcat default port number are as follows: 8080;Configuration file: server.xml, tomcat-users.xml, web.xml, context.xml
Openssl default port number are as follows: 443;Configuration file: openssl.cnf
Mysql default port number are as follows: 3306;Configuration file: my.cnf
Oracle default port number are as follows: 1521;Configuration file: tnsnames.ora
DB2 default port number are as follows: 5000;Configuration file: (database parameter configuration file uses get db to SQLDBCONF Cfg/update db cfg is read and modification data.)
PostgreSQL default port number are as follows: 5432;Configuration file: postgresql.conf
Rabbitmq default port number are as follows: 15672;Configuration file: rabbitmq.config
Openssh default port number are as follows: 22;Configuration file: sshd_config
Telnet default port number are as follows: 23;Configuration file :/etc/xinetd.d/telnet
Snmp default port number are as follows: UDP161;Configuration file: snmpd.conf
Kvm default port number are as follows: 7578/7582 (ssl);Configuration file :/etc/libvirt/qemu/
Port and third party's component can be added as needed.
As shown in Fig. 2, in step s 2, being updated sequence to third party's component weights according to port flow information, have Body includes:
S21, third party's component ports weight initial value are set as 5;
S22, it is periodically ranked up according to the flow sequence descending to port, updates corresponding weighted value;
S23,3 points of daily morning be ranked up according to current third party component ports weighted value.
In step S22, periodically it is ranked up according to the flow sequence descending to port, updates corresponding weight number Value, specifically includes:
When port flow is 0, weight is constant;To 1-3 components of flow sequence, weighted value increases separately 1;To flow The component of sequence 4-6, weighted value increase separately 0.5;To 7-10 components of flow sequence, weighted value increases separately 0.3;It is right Other port flows are not 0 component, and weight increases by 0.1.
As shown in figure 3, in step s3, carrying out strange land data redundancy backup to the file comprising key message and specifically wrapping It includes:
S31, local directory bkup, logarithm are packed into third party's component profile of customized quantity and same day log It is packed into local directory, and generates compressed file according to library content, critical file directory content.Compressed file is named as bkup% Y%m%d.tar (%y%m%d is the date, and format is the date);
S32, it compressed file is passed through to particular account number is respectively uploaded to two non-local physical machines.Pass through specific ftp account Number ftpuser1 is uploaded in bkup%y%m%d.tar to non-physical machine A;It is uploaded by specific ftp account ftpuser2 In bkup%y%m%d.tar to non-physical machine B;
S33, local backup file directory is emptied every other week.
In step S31, local directory is packed into data-base content, critical file directory content, is specifically included:
S311, it checks server database log, if read operation only occurred, data-base content is not backed up, Otherwise, data-base content is carried out being packed into local directory;
S312, safety inspection is carried out to the critical file catalogue that the server user end same day uploads, is packed into local directory, If there is illegal file format, stop backing up the catalogue.
As shown in figure 4, server key message timed backup device, comprising:
Port flow monitoring modular 11, monitoring server third party's component ports flow information;
Weight update module 12 is updated sequence to third party's component weights according to port flow information;
Redundancy backup module 13 carries out strange land data redundancy backup to the file comprising key message.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.

Claims (6)

1.一种服务器关键信息定时备份方法,其特征是,包括以下步骤:1. a method for regularly backing up server key information, is characterized in that, comprises the following steps: 监测服务器第三方组件端口流量信息;Monitoring server third-party component port traffic information; 根据端口流量信息对第三方组件权重进行更新排序;Update and sort third-party component weights according to port traffic information; 对包含关键信息的文件进行异地数据冗余备份。Offsite data redundancy backup of files containing critical information. 2.如权利要求1所述的方法,其特征是,所述根据端口流量信息对第三方组件权重进行更新排序,具体包括:2. The method according to claim 1, wherein the updating and sorting of the third-party component weights according to the port traffic information specifically includes: 设置第三方组件端口权重初始值;Set the initial value of the third-party component port weight; 周期性根据流量对端口由大到小的顺序进行排序,更新对应的权重数值;Periodically sort the ports from large to small according to the traffic, and update the corresponding weight value; 每日固定时间点根据当前第三方组件端口权重数值进行排序。The daily fixed time points are sorted according to the current third-party component port weight values. 3.如权利要求2所述的方法,其特征是,所述周期性根据流量对端口由大到小的顺序进行排序,更新对应的权重数值,具体包括:3. The method according to claim 2, wherein the periodic sorting of the ports from large to small according to the traffic, and updating the corresponding weight value, specifically includes: 当端口流量为0时,权重不变;对流量排序1-3名的组件,权重值分别增加1;对流量排序4-6名的组件,权重值分别增加0.5;对流量排序7-10名的组件,权重值分别增加0.3;对其他端口流量不为0的组件,权重增加0.1。When the port traffic is 0, the weight remains unchanged; for the components ranked 1-3 in traffic, the weight value increases by 1; for components ranked 4-6 in traffic, the weight value increases by 0.5; for traffic ranked 7-10 components, the weight value is increased by 0.3 respectively; for components whose port traffic is not 0, the weight is increased by 0.1. 4.如权利要求1所述的方法,其特征是,所述对包含关键信息的文件进行异地数据冗余备份具体包括:4. method as claimed in claim 1 is characterized in that, described carrying out off-site data redundancy backup to the file containing key information specifically comprises: 对自定义数量的第三方组件配置文件和当日日志打包至本地目录,对数据库内容、关键文件目录内容打包至本地目录,并生成压缩文件;Package a custom number of third-party component configuration files and daily logs into a local directory, package database content and key file directory content into a local directory, and generate compressed files; 将压缩文件分别通过特定账号上传至两台非本地物理机;Upload the compressed files to two non-local physical machines through specific accounts; 每隔一周清空本地备份文件目录。Empty the local backup file directory every other week. 5.如权利要求4所述的方法,其特征是,所述对数据库内容、关键文件目录内容打包至本地目录,具体包括:5. method as claimed in claim 4, is characterized in that, described to database content, key file directory content are packaged to local directory, specifically comprises: 查看服务器数据库日志,若只发生过读操作,则不对数据库内容进行备份,否则,对数据库内容进行打包至本地目录;Check the server database log, if only over-read operation occurs, the database content will not be backed up, otherwise, the database content will be packaged to the local directory; 对服务器用户端当日上传的关键文件目录进行安全检查,打包至本地目录,若出现非法文件格式,停止备份该目录。Check the security of the key file directory uploaded by the server client on the day, and package it into a local directory. If an illegal file format appears, stop backing up the directory. 6.一种服务器关键信息定时备份装置,其特征是,包括:6. A device for regularly backing up key information of a server, comprising: 端口流量监测模块,监测服务器第三方组件端口流量信息;The port traffic monitoring module monitors the port traffic information of the third-party components of the server; 权重更新模块,根据端口流量信息对第三方组件权重进行更新排序;冗余备份模块,对包含关键信息的文件进行异地数据冗余备份。The weight update module updates and sorts the weights of third-party components according to the port traffic information; the redundant backup module performs redundant backup of data in different places for files containing key information.
CN201811316856.4A 2018-11-07 2018-11-07 Method and device for regularly backing up key information of server Active CN109542678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811316856.4A CN109542678B (en) 2018-11-07 2018-11-07 Method and device for regularly backing up key information of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811316856.4A CN109542678B (en) 2018-11-07 2018-11-07 Method and device for regularly backing up key information of server

Publications (2)

Publication Number Publication Date
CN109542678A true CN109542678A (en) 2019-03-29
CN109542678B CN109542678B (en) 2021-12-17

Family

ID=65846103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811316856.4A Active CN109542678B (en) 2018-11-07 2018-11-07 Method and device for regularly backing up key information of server

Country Status (1)

Country Link
CN (1) CN109542678B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333968A (en) * 2019-06-12 2019-10-15 郑州轻工业学院 Data management method, device and computer equipment applied to database
CN115257878A (en) * 2022-08-18 2022-11-01 北京协同创新轨道交通研究院有限公司 Integrated monitoring system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774642A (en) * 1990-08-09 1998-06-30 Bull S.A. Architecture for dynamic service processor exchange providing multitasking environment where multiple processors have access to a system configuration table
CN101179494A (en) * 2007-12-03 2008-05-14 浙江大学 Resource Distribution Method Oriented to Network Multimedia Transmission Service
CN103838860A (en) * 2014-03-19 2014-06-04 华存数据信息技术有限公司 File storing system based on dynamic transcript strategy and storage method of file storing system
CN104932956A (en) * 2015-06-19 2015-09-23 华南理工大学 Big-data-oriented cloud disaster tolerant backup method
CN105138422A (en) * 2015-08-10 2015-12-09 联想(北京)有限公司 Control method and electronic device
CN105608167A (en) * 2015-12-18 2016-05-25 金蝶软件(中国)有限公司 KDFS system-based file backup method and system
CN106293498A (en) * 2015-06-05 2017-01-04 华为技术有限公司 A kind of method and apparatus of data copy
CN107659460A (en) * 2017-11-09 2018-02-02 广东技术师范学院 A kind of method of provisioning API visit capacity
CN107846418A (en) * 2017-12-14 2018-03-27 广东天网安全信息科技有限公司 Fire wall Initiative Defence System and means of defence
CN108363643A (en) * 2018-03-27 2018-08-03 东北大学 A kind of HDFS copy management methods based on file access temperature
CN108536552A (en) * 2018-04-17 2018-09-14 北京搜狐新媒体信息技术有限公司 The redundancy backup processing method and processing device of data

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774642A (en) * 1990-08-09 1998-06-30 Bull S.A. Architecture for dynamic service processor exchange providing multitasking environment where multiple processors have access to a system configuration table
CN101179494A (en) * 2007-12-03 2008-05-14 浙江大学 Resource Distribution Method Oriented to Network Multimedia Transmission Service
CN103838860A (en) * 2014-03-19 2014-06-04 华存数据信息技术有限公司 File storing system based on dynamic transcript strategy and storage method of file storing system
CN106293498A (en) * 2015-06-05 2017-01-04 华为技术有限公司 A kind of method and apparatus of data copy
CN104932956A (en) * 2015-06-19 2015-09-23 华南理工大学 Big-data-oriented cloud disaster tolerant backup method
CN105138422A (en) * 2015-08-10 2015-12-09 联想(北京)有限公司 Control method and electronic device
CN105608167A (en) * 2015-12-18 2016-05-25 金蝶软件(中国)有限公司 KDFS system-based file backup method and system
CN107659460A (en) * 2017-11-09 2018-02-02 广东技术师范学院 A kind of method of provisioning API visit capacity
CN107846418A (en) * 2017-12-14 2018-03-27 广东天网安全信息科技有限公司 Fire wall Initiative Defence System and means of defence
CN108363643A (en) * 2018-03-27 2018-08-03 东北大学 A kind of HDFS copy management methods based on file access temperature
CN108536552A (en) * 2018-04-17 2018-09-14 北京搜狐新媒体信息技术有限公司 The redundancy backup processing method and processing device of data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匡士杰: "云存储环境下分布式文件系统的副本策略研究", 《万方平台》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333968A (en) * 2019-06-12 2019-10-15 郑州轻工业学院 Data management method, device and computer equipment applied to database
CN115257878A (en) * 2022-08-18 2022-11-01 北京协同创新轨道交通研究院有限公司 Integrated monitoring system
CN115257878B (en) * 2022-08-18 2024-03-08 北京协同创新轨道交通研究院有限公司 Comprehensive monitoring system

Also Published As

Publication number Publication date
CN109542678B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US11983077B2 (en) Incrementally accumulating in-process performance data and hierarchical reporting thereof for a data stream in a secondary copy operation
US11748332B2 (en) Organically managing storage of a data object based on an expiry timeframe supplied by a user of the data object
US12346193B2 (en) Management of internet of things devices
US11481542B2 (en) Summarization and processing of email on a client computing device based on content contribution to an email thread using weighting techniques
US11494417B2 (en) Automated email classification in an information management system
US9678850B1 (en) Data pipeline monitoring
US9348830B2 (en) Back up using locally distributed change detection
US20060004830A1 (en) Agent-less systems, methods and computer program products for managing a plurality of remotely located data storage systems
CN110427307A (en) Log analytic method, device, computer equipment and storage medium
CN109255093A (en) Behavioral data processing method, device, electronic equipment and computer-readable medium
US8713522B2 (en) Validating the configuration of distributed systems
CN101414255A (en) Method and apparatus for processing log event
CN112764737B (en) Intelligent low-code technology platform system
CN109542678A (en) A kind of server key message timed backup method and device
CN102946411A (en) Network synchronization system
CN110175272A (en) One kind realizing the convergent control method of work order and control device based on feature modeling
CN110018993B (en) Data analysis system, method and monitoring analysis system
CN107992326A (en) Java automation code dissemination methods based on Struts2 frames
US8903774B2 (en) Techniques for leveraging replication to provide rolling point in time backup with simplified restoration through distributed transactional re-creation
CN110660461B (en) Cross-platform medical data information uploading system based on artificial intelligence
CN112764957A (en) Application fault delimiting method and device
CN106599221A (en) Data processing method and device
CN110471730A (en) Methods of exhibiting, system, big screen system and medium based on Echarts
CN112988705B (en) Data middlebox construction method for enterprise-level production
US12348505B2 (en) Byte code monitoring to avoid certificate-based outages

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