CN106055427B - Data back up method and device based on SAS - Google Patents

Data back up method and device based on SAS Download PDF

Info

Publication number
CN106055427B
CN106055427B CN201610344220.5A CN201610344220A CN106055427B CN 106055427 B CN106055427 B CN 106055427B CN 201610344220 A CN201610344220 A CN 201610344220A CN 106055427 B CN106055427 B CN 106055427B
Authority
CN
China
Prior art keywords
backup
data
backed
instruction
sas
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
CN201610344220.5A
Other languages
Chinese (zh)
Other versions
CN106055427A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610344220.5A priority Critical patent/CN106055427B/en
Publication of CN106055427A publication Critical patent/CN106055427A/en
Application granted granted Critical
Publication of CN106055427B publication Critical patent/CN106055427B/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/1474Saving, restoring, recovering or retrying in transactions
    • 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

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)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention relates to a kind of data back up method for being based on SAS (Statistical Analysis System, abbreviation SAS), which is characterized in that the described method includes: obtaining pending data;The pending data is handled according to default process instruction, generates data to be backed up, the data to be backed up are stored in default storage address;It obtains preset shell sentence and treats the backup instruction that Backup Data is backed up, include the default storage address and backup address in the backup instruction;The data to be backed up are backuped in the backup address according to the backup instruction.The backup method not only will not influence execution of the SAS system to other instructions, but also be backed up without enumerating out data to be backed up, and relative to traditional data back up method, the backup efficiency of SAS data can be improved.In addition, also correspondence provides a kind of data backup device based on SAS.

Description

Data back up method and device based on SAS
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data back up method and device based on SAS.
Background technique
SAS (Statistical Analysis System, abbreviation SAS) is that one kind can be used for data management, forecast analysis And the statistical analysis software of multi-variables analysis etc., it is used widely in every field.
In conventional method, when the new data of SAS Program Generating need to back up, need to treat Backup Data specify it is specific Backup address, and the data name of data to be backed up must be enumerated out.This traditional method is few for needing to back up The data of amount are feasible, and in the biggish situation of data bulk being backed up, these data to be backed up are carried out one by one It enumerates just very complicated, and is also easy to omit data to be backed up, back up inefficient.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of base that can be improved to the backup efficiency of SAS data In the data back up method and device of SAS.
One kind being based on the data back up method of SAS (Statistical Analysis System, abbreviation SAS), the side Method the following steps are included:
Obtain pending data;
The pending data is handled according to default process instruction, generates data to be backed up, the number to be backed up According to being stored in default storage address;
It obtains preset shell sentence and treats the backup instruction that Backup Data is backed up, include in the backup instruction The default storage address and backup address;
The data to be backed up are backuped in the backup address according to the backup instruction.
The preset shell sentence of acquisition treats the backup that Backup Data is backed up in one of the embodiments, The step of instruction, comprising:
Identify the first keyword and the second keyword in default process instruction;
Obtain the backup instruction between first keyword and the second keyword.
In one of the embodiments, it is described obtain preset shell sentence treat Backup Data backed up it is standby Before the step of part instruction, comprising:
Obtain the permission for calling shell sentence.
It in one of the embodiments, further include that backup executes the time in the backup instruction;It is described according to the backup The data to be backed up are backuped to the step in the backup address by instruction, comprising:
Obtain the processing deadline to the pending data;
The data to be backed up are backuped in the backup address in the case where the backup executes the time.
It is described in one of the embodiments, that the data to be backed up are backuped to by the backup according to the backup instruction Step in address, comprising:
Whether the free value of detection operating system is greater than preset threshold, if so, standing after generating the data to be backed up The data to be backed up are backuped in the backup address, if it is not, when then repeating to detect current according to the preset detection period Between under the free value of the operating system whether be greater than preset threshold, when the free value is greater than the preset threshold, in institute It states and backups to the data to be backed up in the backup address under current time.
One kind being based on the data backup device of SAS (Statistical Analysis System, abbreviation SAS), the dress It sets and includes:
Pending data obtains module, for obtaining pending data;
Data generation module to be backed up is generated for being handled according to default process instruction the pending data Data to be backed up, the data to be backed up are stored in default storage address;
Backup instruction obtains module, and treating the backup that Backup Data is backed up for obtaining preset shell sentence refers to It enables, includes the default storage address and backup address in the backup instruction;
Backup execution module, for the data to be backed up to be backuped to the backup address according to the backup instruction In.
The backup instruction obtains module is preset for identification in process instruction first and closes in one of the embodiments, Key word and the second keyword;Obtain the backup instruction between first keyword and the second keyword.
Described device in one of the embodiments, further include:
Authority acquiring module, for obtaining the permission for calling shell sentence.
It in one of the embodiments, further include that backup executes the time in the backup instruction;The backup execution module It is also used to obtain the processing deadline to the pending data;In the case where the backup executes the time by the data to be backed up It backups in the backup address.
Whether the free value that the backup execution module is also used to detect operating system in one of the embodiments, is greater than Preset threshold, if so, the data to be backed up are backuped to the backup address immediately after generating the data to be backed up In, if it is not, then according to the preset detection period repeat detection current time under the operating system free value whether be greater than it is default The data to be backed up are backuped to institute under the current time when the free value is greater than the preset threshold by threshold value It states in backup address.
Above-mentioned data back up method and device based on SAS is generated by using shell sentence to back up SAS system Data to be backed up, which not only will not influence execution of the SAS system to other instructions, but also without enumerating out to standby Part data are backed up, and relative to traditional data back up method, the backup efficiency of SAS data can be improved.
Detailed description of the invention
Fig. 1 is in one embodiment for realizing the structural schematic diagram of the equipment of the data back up method based on SAS;
Fig. 2 is the flow diagram of the data back up method based on SAS in one embodiment;
Fig. 3 is to obtain preset shell sentence in one embodiment to treat the backup instruction that Backup Data is backed up The flow diagram of step;
Fig. 4 is the structural block diagram of the data backup device based on SAS in one embodiment;
Fig. 5 is the structural block diagram of the data backup device based on SAS in another embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
As shown in Figure 1, in one embodiment, providing a kind of setting for realizing the data back up method based on SAS Standby 100, including processor, non-volatile memory medium, built-in storage, the input/output interface connected by system bus.Its Middle processor has the function of that computing function and controlling terminal 100 work, which is configured as executing a kind of based on SAS's Data back up method.Non-volatile memory medium include in magnetic storage medium, optical storage media and flash memory type storage medium extremely Few one kind, non-volatile memory medium are stored with operating system and the data backup device based on SAS.The data based on SAS Back-up device is for realizing a kind of data back up method based on SAS.Input/output interface is used to set with extraneous input and output It is standby to be connected, it can be used for receiving data to be processed, which may include operation note of the user to related web page Etc..
In one embodiment, as shown in Fig. 2, providing a kind of data back up method based on SAS, the present embodiment is with this Method is applied to the equipment 100 in above-mentioned Fig. 1 to illustrate.This method comprises the following steps:
Step 202, pending data is obtained.
In the present embodiment, pending data is data relevant to Backup Data, and pending data may include default website On data, may also comprise recorded user to data caused by the behaviors such as the access operation of default website etc..Specifically, Pending data can be the data of the types websites such as preset bank rate, stock market, statistics bureau and financial institution.
In one embodiment, pending data can be obtained by preset SAS program.Wherein, it is preset in equipment 100 There is SAS application software, pending data can be obtained by SAS spiders technology.
Step 204, pending data is handled according to default process instruction, generates data to be backed up.
Default process instruction can walk for preset DATA, which walks for sieving to acquired pending data The processing such as choosing, classification, generate data to be backed up.Equipment 100 can be compiled and be parsed to preset DATA step by compiler, To identify and execute the corresponding instruction of DATA step, data to be backed up are generated, wherein data to be backed up are stored in default deposit It stores up in address.
Specifically, the data to be backed up are SAS file, and are existed in the form of SAS data set, it is stored in pre-set In SAS logical base, SAS data set to be backed up generated can be multiple.Wherein, SAS data set is comprising descriptor information With the file of relevant data value, this document be one with observation be row, with variate-value be column, can by SAS system handle table. Further, which also may include index, be found in the specific data set by SAS system by index with facilitating Record.SAS logical base is the set of the files such as SAS data set and catalogue.Common operating system (such as Windows behaviour Make system or Unix operating system) under, SAS logical base typically refers to one group of SAS file for being located at same file folder or catalogue, Middle SAS logical base is usually located at the addressable position of SAS system.
Step 206, it obtains preset shell sentence and treats the backup instruction that Backup Data is backed up.
In the present embodiment, shell sentence is the directive statement that can be used for executing data backup in operating system.It should Shell sentence can be executed by operating system without executing in SAS system, i.e., when operating system executes shell sentence, SAS system can be performed simultaneously other subsequent SAS instructions, so that system operating efficiency can be improved.
Backup instruction in preset shell sentence contains the storage address and backup address of data to be backed up.Storage Address is the address of the SAS logical base of storage SAS data set to be backed up, path and SAS logical base including the SAS logical base Title, without including the title of wherein each SAS data set to be backed up.Backup address can be preset any for depositing The address for storing up SAS data set to be backed up, without for the identifiable address of SAS system.
In one embodiment, the backup instruction that Backup Data is backed up is treated in the preset shell sentence of acquisition Before step, comprising: obtain the permission for calling shell sentence.
In the present embodiment, the permission of shell sentence can be called for SAS system setting in advance, so that SAS system has tune It can be obtained when being needed to carry out the backup to SAS data using shell sentence with the permission of shell sentence and call shell language The permission of sentence, and operating system is notified to execute the shell sentence.
Step 208, data to be backed up are backuped in backup address according to backup instruction.
Specifically, obtaining all data in the SAS logical base according to the backup instruction in shell sentence, which is For SAS data set to be backed up, and by acquired SAS data set backup to be backed up into set backup address.
The method that traditional backup instruction using SAS system itself carries out data backup, each backup instruction all need It to be parsed by operating system, and also need to enumerate the data name of each data to be backed up, and can only be backuped to In the identifiable backup directory of SAS system.In the present embodiment, backed up by using shell sentence SAS system it is generated to Backup Data, the backup method not only will not influence execution of the SAS system to other instructions, but also without enumerating out number to be backed up According to being backed up, relative to traditional data back up method, the backup efficiency of SAS data can be improved.
In one embodiment, as shown in Figure 3, wherein obtain preset shell sentence and treat Backup Data and backed up Backup instruction the step of, comprising:
Step 302, the first keyword and the second keyword in default process instruction are identified.
Step 304, the backup instruction between the first keyword and the second keyword is obtained.
In the present embodiment, the first keyword and the second keyword are pre-set, so that SAS system is executing DATA step In the process, when detecting the first keyword, then the directive statement after being located at the first keyword is extracted, and detecting the second pass When key word, then stop the extraction to the directive statement after the first keyword.It obtains between the first keyword and the second keyword Directive statement, which is backup instruction.The backup instruction is shell sentence, so that can be direct by operating system It executes, without being compiled again.After getting the backup instruction of shell sentence, operating system can be called directly to execute The shell sentence.
In the present embodiment, server obtains the table of the first tables of data by the first keyword of setting and the second keyword Name, so that the acquisition for the first tables of data is more quick accurate.
It in one embodiment, further include that backup executes the time in backup instruction;According to backup instruction by data to be backed up Backup to the step in backup address, comprising: obtain the processing deadline to pending data;It will in the case where backup executes the time Data to be backed up backup in backup address.
In the present embodiment, since SAS system is the processing executed by DATA step to data, when it generates number to be backed up When according to finishing, the time being finished for generating the step of DATA corresponding to data to be backed up, the time being finished can detect As to the processing deadline of pending data.
BACKUP TIME is determined by the processing deadline of pending data.When detect system time reach BACKUP TIME When, data to be backed up can be backuped in backup address under the BACKUP TIME.
Specifically, can be the sum of the processing deadline and preset time.For example, settable preset time is 30 seconds, when It detects and 30 divides 0 second when the processing deadline is 18, then can determine when BACKUP TIME is 18 that 30 divide 30 seconds.And when system Between when reaching 18 30 when dividing 30 seconds, then be immediately performed the instruction backuped to data to be backed up in backup address.
In one embodiment, data to be backed up are backuped to the step in backup address according to backup instruction, comprising: inspection Whether the free value for surveying operating system is greater than preset threshold, if so, after generating data to be backed up, immediately by data to be backed up It backups in backup address, if it is not, then repeating the free value of operating system under detection current time according to the preset detection period is It is no to be greater than preset threshold, when free value is greater than preset threshold, data to be backed up are backuped into backup address under current time In.
In the present embodiment, preset threshold can be the customized any number of user, can also be the default number of system setting. Free value is used to characterize the idle degrees of operating system, when free value is bigger, then illustrates that operating system is more idle.Further, It is also provided with detection cycle, it, can basis when detecting the free value of the operating system under current time no more than preset threshold The detection cycle and current time determine detection time next time, and current time is made to reach detection time next time When, then whether the free value for detecting the operating system under the detection time again is greater than preset threshold, if so, can directly by Data to be backed up backup in backup address, otherwise, can continue to determine again according to the detection cycle next time for judging Whether execution backup detection time.
Further, also settable detection number or backup execute the time, so that working as the judgement that the judging result is no Number reach the detection number after, can directly execute the backup to pending data, or reach backup in current time After executing the time, the backup to pending data can also be directly executed, is less than default threshold to avoid when operating system is constantly in Under value, the case where being unable to complete the backup to pending data.
Due to being likely present other processes needed to be implemented in operating system, when carrying out backup meeting in the case where system is busy So that backup efficiency declines, and the execution efficiency of other processes being carrying out is influenced, passes through the sky in system in the present embodiment Not busy value is greater than the backup for treat Backup Data under preset threshold, can further improve backup efficiency.
In one embodiment, as shown in figure 4, providing a kind of data backup device based on SAS, which includes:
Pending data obtains module 402, for obtaining pending data.
In the present embodiment, pending data is data relevant to Backup Data, and pending data may include default website On data, may also comprise recorded user to data caused by the behaviors such as the access operation of default website etc..Specifically, Pending data can be the data of the types websites such as preset bank rate, stock market, statistics bureau and financial institution.
In one embodiment, pending data can be obtained by preset SAS program.Wherein, it is preset in equipment 100 There is SAS application software, pending data can be obtained by SAS spiders technology.
Data generation module 404 to be backed up, for according to preset process instruction pending data is handled, generate to Backup Data, data to be backed up are stored in default storage address.
Default process instruction can walk for preset DATA, which walks for sieving to acquired pending data The processing such as choosing, classification, generate data to be backed up.Equipment 100 can be compiled and be parsed to preset DATA step by compiler, To identify and execute the corresponding instruction of DATA step, data to be backed up are generated, wherein data to be backed up are stored in default deposit It stores up in address.
Specifically, the data to be backed up are SAS file, and are existed in the form of SAS data set, it is stored in pre-set In SAS logical base, SAS data set to be backed up generated can be multiple.Wherein, SAS data set is comprising descriptor information With the file of relevant data value, this document be one with observation be row, with variate-value be column, can by SAS system handle table. Further, which also may include index, be found in the specific data set by SAS system by index with facilitating Record.SAS logical base is the set of the files such as SAS data set and catalogue.Common operating system (such as Windows behaviour Make system or Unix operating system) under, SAS logical base typically refers to one group of SAS file for being located at same file folder or catalogue, Middle SAS logical base is usually located at the addressable position of SAS system.
Backup instruction obtains module 406, treats the backup that Backup Data is backed up for obtaining preset shell sentence It instructs, default storage address and backup address is included in backup instruction.
In the present embodiment, shell sentence is the directive statement that can be used for executing data backup in operating system.It should Shell sentence can be executed by operating system without executing in SAS system, i.e., when operating system executes shell sentence, SAS system can be performed simultaneously other subsequent SAS instructions, so that system operating efficiency can be improved.
Backup instruction in preset shell sentence contains the storage address and backup address of data to be backed up.Storage Address is the address of the SAS logical base of storage SAS data set to be backed up, path and SAS logical base including the SAS logical base Title, without including the title of wherein each SAS data set to be backed up.Backup address can be preset any for depositing The address for storing up SAS data set to be backed up, without for the identifiable address of SAS system.
In one embodiment, as shown in figure 5, the data backup device based on SAS further includes authority acquiring module 405, For obtaining the permission for calling shell sentence.
In the present embodiment, the permission of shell sentence can be called for SAS system setting in advance, so that SAS system has tune It can be obtained when being needed to carry out the backup to SAS data using shell sentence with the permission of shell sentence and call shell language The permission of sentence, and operating system is notified to execute the shell sentence.
Backup execution module 408, for being backuped to data to be backed up in backup address according to backup instruction.
Specifically, obtaining all data in the SAS logical base according to the backup instruction in shell sentence, which is For SAS data set to be backed up, and by acquired SAS data set backup to be backed up into set backup address.
The method that traditional backup instruction using SAS system itself carries out data backup, each backup instruction all need It to be parsed by operating system, and also need to enumerate the data name of each data to be backed up, and can only be backuped to In the identifiable backup directory of SAS system.In the present embodiment, backed up by using shell sentence SAS system it is generated to Backup Data, the backup method not only will not influence execution of the SAS system to other instructions, but also without enumerating out number to be backed up According to being backed up, relative to traditional data back up method, the backup efficiency of SAS data can be improved.
In one embodiment, backup instruction obtains module 406 and is used for: identifying the first keyword in default process instruction With the second keyword;Obtain the backup instruction between the first keyword and the second keyword.
In the present embodiment, the first keyword and the second keyword are pre-set, so that SAS system is executing DATA step In the process, when detecting the first keyword, then the directive statement after being located at the first keyword is extracted, and detecting the second pass When key word, then stop the extraction to the directive statement after the first keyword.It obtains between the first keyword and the second keyword Directive statement, which is backup instruction.The backup instruction is shell sentence, so that can be direct by operating system It executes, without being compiled again.After getting the backup instruction of shell sentence, operating system can be called directly to execute The shell sentence.
In the present embodiment, server obtains the table of the first tables of data by the first keyword of setting and the second keyword Name, so that the acquisition for the first tables of data is more quick accurate.
It further include that backup executes the time in backup instruction;Backup execution module 408 is also used to obtain to pending data Handle the deadline;Data to be backed up are backuped in backup address in the case where backup executes the time.
In the present embodiment, since SAS system is the processing executed by DATA step to data, when it generates number to be backed up When according to finishing, the time being finished for generating the step of DATA corresponding to data to be backed up, the time being finished can detect As to the processing deadline of pending data.
BACKUP TIME is determined by the processing deadline of pending data.When detect system time reach BACKUP TIME When, data to be backed up can be backuped in backup address under the BACKUP TIME.
Specifically, can be the sum of the processing deadline and preset time.For example, settable preset time is 30 seconds, when It detects and 30 divides 0 second when the processing deadline is 18, then can determine when BACKUP TIME is 18 that 30 divide 30 seconds.And when system Between when reaching 18 30 when dividing 30 seconds, then be immediately performed the instruction backuped to data to be backed up in backup address.
In one embodiment, it is default whether the free value that backup execution module 408 is also used to detect operating system is greater than Threshold value, if so, immediately backuping to data to be backed up in backup address, after generating data to be backed up if it is not, then according to pre- If whether the free value that detection cycle repeats operating system under detection current time is greater than preset threshold, preset when free value is greater than When threshold value, data to be backed up are backuped in backup address under current time.
In the present embodiment, preset threshold can be the customized any number of user, can also be the default number of system setting. Free value is used to characterize the idle degrees of operating system, when free value is bigger, then illustrates that operating system is more idle.Further, It is also provided with detection cycle, it, can basis when detecting the free value of the operating system under current time no more than preset threshold The detection cycle and current time determine detection time next time, and current time is made to reach detection time next time When, then whether the free value for detecting the operating system under the detection time again is greater than preset threshold, if so, can directly by Data to be backed up backup in backup address, otherwise, can continue to determine again according to the detection cycle next time for judging Whether execution backup detection time.
Further, also settable detection number or backup execute the time, so that working as the judgement that the judging result is no Number reach the detection number after, can directly execute the backup to pending data, or reach backup in current time After executing the time, the backup to pending data can also be directly executed, is less than default threshold to avoid when operating system is constantly in Under value, the case where being unable to complete the backup to pending data.
Due to being likely present other processes needed to be implemented in operating system, when carrying out backup meeting in the case where system is busy So that backup efficiency declines, and the execution efficiency of other processes being carrying out is influenced, passes through the sky in system in the present embodiment Not busy value is greater than the backup for treat Backup Data under preset threshold, can further improve backup efficiency.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic The non-volatile memory mediums such as dish, CD, read-only memory (Read-Only Memory, ROM) or random storage memory Body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (12)

1. a kind of data back up method based on SAS, which is characterized in that the described method comprises the following steps:
Pending data is obtained by preset SAS program;
The pending data is handled according to default process instruction, generates data to be backed up, the data quilt to be backed up It stores in default storage address;
It obtains preset shell sentence and treats the backup instruction that Backup Data is backed up, include described in the backup instruction Default storage address and backup address, the shell sentence are the instruction language that can be used for executing data backup in operating system Sentence;
The backup instruction is executed by operating system to backup to the data to be backed up in the backup address.
2. the method according to claim 1, wherein the preset shell sentence of acquisition treats Backup Data The step of backup instruction backed up, comprising:
Identify the first keyword and the second keyword in default process instruction;
Obtain the backup instruction between first keyword and the second keyword.
3. the method according to claim 1, wherein obtaining preset shell sentence to number to be backed up described Before the step of the backup instruction backed up, comprising:
Obtain the permission for calling shell sentence.
4. the method according to claim 1, wherein further including that backup executes the time in the backup instruction;Institute State according to the backup instruction step data to be backed up backuped in the backup address, comprising:
Obtain the processing deadline to the pending data;
The data to be backed up are backuped in the backup address in the case where the backup executes the time.
5. the method according to claim 1, wherein it is described according to the backup instruction by the data to be backed up Backup to the step in the backup address, comprising:
Whether the free value of detection operating system is greater than preset threshold, if so, immediately will after generating the data to be backed up The data to be backed up backup in the backup address, if it is not, then being repeated under detection current time according to the preset detection period Whether the free value of the operating system is greater than preset threshold, when the free value is greater than the preset threshold, works as described The data to be backed up are backuped in the backup address under the preceding time.
6. a kind of data backup device based on SAS, which is characterized in that described device includes:
Pending data obtains module, for obtaining pending data by preset SAS program;
Data generation module to be backed up is generated for being handled according to default process instruction the pending data to standby Part data, the data to be backed up are stored in default storage address;
Backup instruction obtains module, treats the backup instruction that Backup Data is backed up, institute for obtaining preset shell sentence It states comprising the default storage address and backup address in backup instruction, the shell sentence is that can be used in operating system Execute the directive statement of data backup;
Backup execution module, for by operating system execute the backup instruction data to be backed up are backuped to it is described standby In part address.
7. device according to claim 6, which is characterized in that the backup instruction obtains module and presets processing for identification The first keyword and the second keyword in instruction;Obtain the backup instruction between first keyword and the second keyword.
8. device according to claim 6, which is characterized in that described device further include:
Authority acquiring module, for obtaining the permission for calling shell sentence.
9. device according to claim 6, which is characterized in that further include that backup executes the time in the backup instruction;Institute It states backup execution module and is also used to obtain processing deadline to the pending data;It will in the case where the backup executes the time The data to be backed up backup in the backup address.
10. device according to claim 6, which is characterized in that the backup execution module is also used to detect operating system Free value whether be greater than preset threshold, it is immediately that the data to be backed up are standby if so, after generating the data to be backed up Part is into the backup address, if it is not, then repeating the sky of the operating system under detection current time according to the preset detection period Whether spare time value is greater than preset threshold, when the free value is greater than the preset threshold, under the current time will it is described to Backup Data backups in the backup address.
11. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 5 institute when executing the computer program The step of stating method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201610344220.5A 2016-05-23 2016-05-23 Data back up method and device based on SAS Active CN106055427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610344220.5A CN106055427B (en) 2016-05-23 2016-05-23 Data back up method and device based on SAS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610344220.5A CN106055427B (en) 2016-05-23 2016-05-23 Data back up method and device based on SAS

Publications (2)

Publication Number Publication Date
CN106055427A CN106055427A (en) 2016-10-26
CN106055427B true CN106055427B (en) 2019-07-30

Family

ID=57176579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610344220.5A Active CN106055427B (en) 2016-05-23 2016-05-23 Data back up method and device based on SAS

Country Status (1)

Country Link
CN (1) CN106055427B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714107A (en) * 2009-10-23 2010-05-26 金蝶软件(中国)有限公司 Database backup and recovery method and device in ERP system
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
CN103678396A (en) * 2012-09-20 2014-03-26 阿里巴巴集团控股有限公司 Data backup method and device based on data models
CN104407933A (en) * 2014-10-31 2015-03-11 华为技术有限公司 Data backup method and device
CN105320576A (en) * 2014-05-30 2016-02-10 中国电信股份有限公司 Device and method for database backup
CN105373450A (en) * 2015-11-30 2016-03-02 国网北京市电力公司 Data backup method and apparatus
CN105373447A (en) * 2015-10-23 2016-03-02 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105373453A (en) * 2015-12-15 2016-03-02 中国农业银行股份有限公司 Data backup method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714107A (en) * 2009-10-23 2010-05-26 金蝶软件(中国)有限公司 Database backup and recovery method and device in ERP system
CN102236588A (en) * 2010-04-23 2011-11-09 阿里巴巴集团控股有限公司 Remote data backup method, equipment and system
CN102402471A (en) * 2011-12-23 2012-04-04 创新科软件技术(深圳)有限公司 Method and system for backing up data in real time based on snapshot function of memory array
CN103678396A (en) * 2012-09-20 2014-03-26 阿里巴巴集团控股有限公司 Data backup method and device based on data models
CN105320576A (en) * 2014-05-30 2016-02-10 中国电信股份有限公司 Device and method for database backup
CN104407933A (en) * 2014-10-31 2015-03-11 华为技术有限公司 Data backup method and device
CN105373447A (en) * 2015-10-23 2016-03-02 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105373450A (en) * 2015-11-30 2016-03-02 国网北京市电力公司 Data backup method and apparatus
CN105373453A (en) * 2015-12-15 2016-03-02 中国农业银行股份有限公司 Data backup method and system

Also Published As

Publication number Publication date
CN106055427A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106980636B (en) Policy data processing method and device
CN110290212B (en) Service call recording method, device, computer equipment and storage medium
CN108197306B (en) SQL statement processing method and device, computer equipment and storage medium
US8694574B2 (en) Optimized settings in a configuration database with boundaries
US10073683B2 (en) System and method for providing software build violation detection and self-healing
CN109542428A (en) Method for processing business, device, computer equipment and storage medium
US10235234B2 (en) Method and apparatus for determining failure similarity in computing device
CN112232818A (en) Data reconciliation method and device, computer equipment and storage medium
CN107798030B (en) Splitting method and device of data table
WO2017128952A1 (en) Stack protection method and device
CN110659297A (en) Data processing method, data processing device, computer equipment and storage medium
CN109992588A (en) It is a kind of to divide folk prescription method and relevant device based on data processing
US9182956B2 (en) Flattening conditional statements
US11899770B2 (en) Verification method and apparatus, and computer readable storage medium
CN109656947B (en) Data query method and device, computer equipment and storage medium
CN107688586B (en) Client data shielding processing method and device
CN107644041B (en) Policy settlement processing method and device
US10929536B2 (en) Detecting malware based on address ranges
US20060294222A1 (en) System and method for enhancing event correlation with exploitation of external data
AU2015265599B2 (en) System and method for the production of job level pre-processed backup of critical data and/or datasets in a mainframe computing environment
CN111221690B (en) Model determination method and device for integrated circuit design and terminal
CN106055427B (en) Data back up method and device based on SAS
CN111382189A (en) Heterogeneous data collision analysis method, terminal device and storage medium
CN110968500A (en) Test case execution method and device
CN110969430B (en) Suspicious user identification method, suspicious user identification device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant