CN108710546A - Data back up method and its data backup server - Google Patents
Data back up method and its data backup server Download PDFInfo
- Publication number
- CN108710546A CN108710546A CN201810382857.2A CN201810382857A CN108710546A CN 108710546 A CN108710546 A CN 108710546A CN 201810382857 A CN201810382857 A CN 201810382857A CN 108710546 A CN108710546 A CN 108710546A
- Authority
- CN
- China
- Prior art keywords
- script
- backup
- data
- directory
- data back
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
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
A kind of data back up method of present invention offer and its data backup server, the data back up method include the following steps:S1, backup directory and script catalogue are created and assigns permission;S2, according to the backup directory and the script directory editing shell script;S3, according to the shell script edit commands script with according to the command script carry out data backup.Data back up method according to the ... of the embodiment of the present invention can effectively solve business data safety problem, prevent loss of vital data, enterprise's input cost is reduced, which can freely write backup mode, and flexibility is big, and it can realize full-automatic backup, be not necessarily to manual intervention.
Description
Technical field
The present invention relates to internet data technical field of memory, more particularly, to a kind of data back up method and one kind
Data backup server.
Background technology
Current existing data backup scenario, mostly uses greatly independent data backup server and expert data backup is soft
Part, it is with high costs, it is larger to server and backup software dependence.Therefore, existing data backup scenario generally requires to purchase
Individual server and legal backup software, fund input is larger, and backup mode is dumb, and resource consumption is larger, is easy
It results in waste of resources.
Invention content
In view of this, the present invention provides a kind of data back up method.
The present invention also provides a kind of data backup servers.
In order to solve the above technical problems, the present invention uses following technical scheme:
The data back up method of embodiment according to a first aspect of the present invention, includes the following steps:
S1, backup directory and script catalogue are created and assigns permission;
S2, according to the backup directory and the script directory editing shell script;
S3, according to the shell script edit commands script with according to the command script carry out data backup.
Further, the step S1 includes:
S11, DB Backup script is write according to server, and send the DB Backup foot to the server
This;
S12, the server receive the DB Backup script and according to described in DB Backup script establishments
Backup directory and the script catalogue;
S13, priority assignation is carried out to the backup directory of establishment and the script catalogue.
Further, the step S2 includes:
S21, interpretive program is write according to the backup directory and the script catalogue by executor;
S22, the corresponding shell script is write according to the interpretive program.
Further, the step S3 includes:
S31, corresponding mission script is translated into according to the shell script;
S32, according to the corresponding command script of mission script editor with according to the command script carry out data backup.
Further, the mission script is configured to by manually by data backup to computer or server.
Further, the data back up method further includes:
Editor's timing script is to be periodically executed the command script while S4, the execution command script.
Further, the mission script is configured to be added in the included task scheduling of operating system to be periodically executed
The command script.
The data backup server of embodiment according to a second aspect of the present invention, including:
Acquiring unit, the acquiring unit is obtaining the DB Backup script;
Storage unit, the storage unit are connected with the acquiring unit, and the storage unit can be received to be obtained by described
It takes the DB Backup script that unit obtains and is stored;
Transmission unit, the transmission unit are connected with the storage unit, and the transmission unit can be according to the storage
The DB Backup script of unit storage creates the backup directory and the script catalogue.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
Data back up method according to the ... of the embodiment of the present invention can effectively solve business data safety problem, prevent important number
According to loss, enterprise's input cost is reduced, which can freely write backup mode, and flexibility is big, and can be real
Now full-automatic backup, is not necessarily to manual intervention.
Description of the drawings
Fig. 1 is the flow chart of the data back up method of the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
Attached drawing, the technical solution of the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is this hair
Bright a part of the embodiment, instead of all the embodiments.Based on described the embodiment of the present invention, ordinary skill
The every other embodiment that personnel are obtained, shall fall within the protection scope of the present invention.
Unless otherwise defined, the technical term or scientific terminology used in the present invention is should be in fields of the present invention
The ordinary meaning that personage with general technical ability is understood." first ", " second " and the similar word used in the present invention
It is not offered as any sequence, quantity or importance, and is used only to distinguish different component parts.Equally, "one" or
The similar word such as " one " does not indicate that quantity limits yet, but indicates that there are at least one." connection " or " connected " etc. are similar
Word is not limited to physics or mechanical connection, but may include electrical connection, either directly or between
It connects."upper", "lower", "left", "right" etc. are only used for indicating relative position relation, when the absolute position for being described object changes
Afterwards, then the relative position relation also correspondingly changes.
First below data back up method according to the ... of the embodiment of the present invention is specifically described in conjunction with attached drawing.
As shown in Figure 1, data back up method according to the ... of the embodiment of the present invention, includes the following steps:
S1, backup directory and script catalogue are created and assigns permission;
S2, according to the backup directory and the script directory editing shell script;
S3, according to the shell script edit commands script with according to the command script carry out data backup.
In other words, data back up method according to the ... of the embodiment of the present invention can create backup directory and script mesh first
Record, and certification permission is assigned to created backup directory and script catalogue, it is standby by the way that when the purview certification data can be carried out
Part, ensure data backup safety.Then can finally may be used according to the backup directory and script directory editing shell script created
With according to shell script edit commands script, in order to carry out data backup according to command script.Command script can be according to standby
Part catalogue and the shell script of script directory editing freely write data backup mode, and data backup type can be completely standby
Part, incremental backup and differential backup.The data backup mode degree of freedom is big.
Data back up method according to the ... of the embodiment of the present invention as a result, can effectively solve business data safety problem, prevent weight
Loss of data is wanted, enterprise's input cost is reduced.The data back up method can freely write backup mode, and flexibility is big.
According to one embodiment of present invention, step S1 includes:
S11, DB Backup script is write according to server, and to server transmission data library backup script;
S12, server receive DB Backup script and create backup directory and script mesh according to DB Backup script
Record;
S13, priority assignation is carried out to the backup directory and script catalogue of establishment.
That is, in step sl, DB Backup script can be write according to server first, and can be to clothes
Business device transmission data library backup script.Then, server can receive DB Backup script, and can be standby according to database
Part script creates backup directory and script catalogue.Finally, technical staff can carry out the backup directory and script catalogue of establishment
Priority assignation ensures DB Backup safety.
In certain specific embodiments of the invention, step S2 includes:
S21, interpretive program is write according to backup directory and script catalogue by executor;
S22, corresponding shell script is write according to interpretive program.
In other words, in step s 2, executor can write explanation according to backup directory and script catalogue first
Program, it is then possible to write corresponding shell script according to interpretive program.
According to one embodiment of present invention, step S3 includes:
S31, corresponding mission script is translated into according to shell script;
S32, according to the corresponding command script of mission script editor with according to command script carry out data backup.
That is, in step s3, it is possible, firstly, to translate into corresponding mission script, then, root according to shell script
Corresponding command script can be edited according to mission script, to carry out data backup according to command script, command script can root
Data backup mode is freely write according to backup directory and the shell script of script directory editing, degree of freedom is big, can greatly save enterprise
Industry data disaster tolerance fund input.
In certain specific embodiments of the invention, mission script can be configured to by manually by data backup extremely
Computer or server.
According to one embodiment of present invention, data back up method further includes:
Editor's timing script is to be periodically executed command script while S4, execution command script.
In other words, timing script can also be edited in the data back up method while executing command script, so as to
It is periodically executed command script, realizes the full-automatic backup of business data, is not necessarily to manual intervention.
In certain specific embodiments of the invention, mission script can be configured to be added to what operating system carried
To be periodically executed command script in task scheduling, the full-automatic backup of business data is realized, be not necessarily to manual intervention.
To sum up, data back up method according to the ... of the embodiment of the present invention, can effectively solve business data safety problem, prevent
Only loss of vital data reduces enterprise's input cost, which can freely write backup mode, and flexibility is big, and
And can realize full-automatic backup, it is not necessarily to manual intervention.
The data backup server of embodiment includes acquiring unit, storage unit and sends single according to a second aspect of the present invention
Member.
Specifically, acquiring unit is obtaining DB Backup script.Storage unit is connected with acquiring unit, and storage is single
Member can receive the DB Backup script obtained by acquiring unit and be stored.Transmission unit is connected with storage unit, hair
Send unit that can create backup directory and script catalogue according to the DB Backup script that storage unit stores.
In other words, as shown in Figure 1, the data backup server of embodiment is mainly single by obtaining according to a second aspect of the present invention
Member, storage unit and transmission unit composition.Wherein, acquiring unit can be obtaining DB Backup script.Storage unit can
To be connected with acquiring unit, storage unit can receive the DB Backup script obtained by acquiring unit, and to acquisition
DB Backup script is stored.Transmission unit can be connected with storage unit, and transmission unit can be deposited according to storage unit
The DB Backup script of storage creates backup directory and script catalogue.Data backup server according to the ... of the embodiment of the present invention, it is real
The full-automatic backup of existing business data, prevents loss of vital data, reduces enterprise's input cost.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, without departing from the principles of the present invention, it can also make several improvements and retouch, these improvements and modifications
It should be regarded as protection scope of the present invention.
Claims (8)
1. a kind of data back up method, which is characterized in that include the following steps:
S1, backup directory and script catalogue are created and assigns permission;
S2, according to the backup directory and the script directory editing shell script;
S3, according to the shell script edit commands script with according to the command script carry out data backup.
2. data back up method according to claim 1, which is characterized in that the step S1 includes:
S11, DB Backup script is write according to server, and send the DB Backup script to the server;
S12, the server receive the DB Backup script and create the backup according to the DB Backup script
Catalogue and the script catalogue;
S13, priority assignation is carried out to the backup directory of establishment and the script catalogue.
3. data back up method according to claim 2, which is characterized in that the step S2 includes:
S21, interpretive program is write according to the backup directory and the script catalogue by executor;
S22, the corresponding shell script is write according to the interpretive program.
4. data back up method according to claim 3, which is characterized in that the step S3 includes:
S31, corresponding mission script is translated into according to the shell script;
S32, according to the corresponding command script of mission script editor with according to the command script carry out data backup.
5. data back up method according to claim 4, which is characterized in that the mission script is configured to by manual
By data backup to computer or server.
6. data back up method according to claim 4, which is characterized in that further include:
Editor's timing script is to be periodically executed the command script while S4, the execution command script.
7. data back up method according to claim 6, which is characterized in that the mission script is configured to be added to behaviour
Make in the included task scheduling of system to be periodically executed the command script.
8. a kind of data backup server, which is characterized in that including:
Acquiring unit, the acquiring unit is obtaining the DB Backup script;
Storage unit, the storage unit are connected with the acquiring unit, and the storage unit can receive single by the acquisition
The DB Backup script of member acquisition is simultaneously stored;
Transmission unit, the transmission unit are connected with the storage unit, and the transmission unit can be according to the storage unit
The DB Backup script of storage creates the backup directory and the script catalogue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810382857.2A CN108710546A (en) | 2018-04-25 | 2018-04-25 | Data back up method and its data backup server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810382857.2A CN108710546A (en) | 2018-04-25 | 2018-04-25 | Data back up method and its data backup server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108710546A true CN108710546A (en) | 2018-10-26 |
Family
ID=63867354
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810382857.2A Pending CN108710546A (en) | 2018-04-25 | 2018-04-25 | Data back up method and its data backup server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108710546A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990196A (en) * | 2019-11-28 | 2020-04-10 | 福建吉诺车辆服务股份有限公司 | Data backup method and system |
CN113342282A (en) * | 2021-06-28 | 2021-09-03 | 深圳市瑞驰信息技术有限公司 | Method for migrating data backup of android system to rbd storage |
CN114489450A (en) * | 2022-02-21 | 2022-05-13 | 中国建设银行股份有限公司 | Host application data processing method and graphical interface tool |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004318828A (en) * | 2003-03-31 | 2004-11-11 | Seiko Epson Corp | Data backup system, data backup method, wearable computer, mail transmission system, image information transmission system and data backup program |
CN104765652A (en) * | 2014-01-08 | 2015-07-08 | ***通信集团浙江有限公司 | Data backup and data recovery method and device |
CN105373625A (en) * | 2015-12-09 | 2016-03-02 | 浪潮电子信息产业股份有限公司 | ORACLE data backup method |
CN105740102A (en) * | 2016-02-02 | 2016-07-06 | 北京京东尚科信息技术有限公司 | Data backup equipment and method therein |
-
2018
- 2018-04-25 CN CN201810382857.2A patent/CN108710546A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004318828A (en) * | 2003-03-31 | 2004-11-11 | Seiko Epson Corp | Data backup system, data backup method, wearable computer, mail transmission system, image information transmission system and data backup program |
CN104765652A (en) * | 2014-01-08 | 2015-07-08 | ***通信集团浙江有限公司 | Data backup and data recovery method and device |
CN105373625A (en) * | 2015-12-09 | 2016-03-02 | 浪潮电子信息产业股份有限公司 | ORACLE data backup method |
CN105740102A (en) * | 2016-02-02 | 2016-07-06 | 北京京东尚科信息技术有限公司 | Data backup equipment and method therein |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990196A (en) * | 2019-11-28 | 2020-04-10 | 福建吉诺车辆服务股份有限公司 | Data backup method and system |
CN110990196B (en) * | 2019-11-28 | 2023-07-07 | 福建吉诺车辆服务股份有限公司 | Data backup method and system |
CN113342282A (en) * | 2021-06-28 | 2021-09-03 | 深圳市瑞驰信息技术有限公司 | Method for migrating data backup of android system to rbd storage |
CN114489450A (en) * | 2022-02-21 | 2022-05-13 | 中国建设银行股份有限公司 | Host application data processing method and graphical interface tool |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2007289177B9 (en) | Dynamically configuring, allocating and deploying computing systems | |
US8762933B2 (en) | Converting business process models to component models in a service oriented architecture domain | |
US10466998B2 (en) | Model based upgrade campaign generation | |
CN108710546A (en) | Data back up method and its data backup server | |
CN105589715B (en) | Information processing equipment, library loading method and computer-readable medium | |
CN1327341C (en) | Firmware automatic configuration system and method for substrate management controller | |
Whitehead | Component-based development: principles and planning for business systems | |
CN111352717A (en) | Method for realizing kubernets self-defined scheduler | |
CN102983996A (en) | Dynamic allocation method and system for high-availability cluster resource management | |
CN110427258B (en) | Resource scheduling control method and device based on cloud platform | |
Hilliard | On representing variation. | |
US20070239789A1 (en) | Active cache offline sharing of project files | |
CN105159718A (en) | Firmware updating method and device | |
CN101662463A (en) | Device and method for customizing service flow for user | |
Aubakirov et al. | Development of system architecture for e-government cloud platforms | |
CN109684028A (en) | A kind of method, device and equipment that operating system is separated with user data | |
US20150295984A1 (en) | Multi Web Application Management Framework System and Method | |
CN113467773A (en) | Method for multiplexing process codes for realizing robot process automation | |
US20210182412A1 (en) | System and method for managing data object creation | |
CN110544092B (en) | Dynamic newly-added multi-type database data operation chaining method for block chain | |
US9916155B2 (en) | Projects browser for development environments | |
CN104798038B (en) | Data distribution systems | |
CN112418796B (en) | Sub-process task node activation method and device, electronic equipment and storage medium | |
US10318316B2 (en) | Late binding composite service specification for business process execution language | |
Zburivsky | Hadoop cluster deployment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181026 |