CN106055427A - SAS-based data backup method and apparatus - Google Patents

SAS-based data backup method and apparatus Download PDF

Info

Publication number
CN106055427A
CN106055427A CN201610344220.5A CN201610344220A CN106055427A CN 106055427 A CN106055427 A CN 106055427A CN 201610344220 A CN201610344220 A CN 201610344220A CN 106055427 A CN106055427 A CN 106055427A
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.)
Granted
Application number
CN201610344220.5A
Other languages
Chinese (zh)
Other versions
CN106055427B (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)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to an SAS (Statistical Analysis System)-based data backup method, and is characterized in that the method comprises obtaining to-be-processed data; processing the to-be-processed data according to a preset processing instruction, generating to-be-backup data, and storing the to-be-backup data to a preset storage address; obtaining a preset backup instruction for backing up the to-be-backup data by a shell sentence, the backup instruction including the preset storage address and a backup address; and backing up the to-be-backup data to the backup address according to the backup instruction. According to the backup method, execution of other instructions by an SAS system cannot be influenced, backup can be carried out without listing the to-be-backup data, and compared with a traditional data backup method, backup efficiency of SAS data can be improved. In addition, an SAS-based data backup apparatus is also correspondingly provided.

Description

Data back up method based on SAS and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of data back up method based on SAS and device.
Background technology
SAS (Statistical Analysis System is called for short SAS) is that one can be used for data management, forecast analysis And the statistical analysis software of multivariate analysis etc., it is used widely in every field.
In traditional method, when needing backup when the new data of SAS Program Generating, need to treat Backup Data and specify specific Backup address, and the data name of data to be backed up must be enumerated out.This traditional method is few for needs backup The data of amount are feasible, and in the case of the data bulk being backed up is relatively big, carry out these data to be backed up one by one Enumerating the most loaded down with trivial details, and also easily omit data to be backed up, its backup is inefficient.
Summary of the invention
Based on this, it is necessary to for above-mentioned technical problem, it is provided that a kind of can improve the base that SAS data are backed up efficiency Data back up method and device in SAS.
A kind of data back up method based on SAS (Statistical Analysis System is called for short SAS), described side Method comprises the following steps:
Obtain pending data;
According to default process instruction, described pending data are processed, generate data to be backed up, described number to be backed up Preset in storage address according to being stored in;
Obtain the shell statement preset and treat the backup instruction that Backup Data carries out backing up, described backup instruction comprises Described default storage address and backup address;
According to described backup instruction, described data to be backed up are backuped in described backup address.
Wherein in an embodiment, the backup that Backup Data carries out backing up treated in the shell statement that described acquisition is preset The step of instruction, including:
Identify and preset the first keyword and the second keyword processed in instruction;
Obtain the backup instruction between described first keyword and the second keyword.
Wherein in an embodiment, it is standby that the shell statement preset in described acquisition treats that Backup Data carries out backing up Before the step of part instruction, including:
Obtain the authority calling shell statement.
Wherein in an embodiment, described backup instruction also includes back up the execution time;Described according to described backup Described data to be backed up are backuped to the step in described backup address by instruction, including:
Obtain the process deadline to described pending data;
Under the described backup execution time, described data to be backed up are backuped in described backup address.
Wherein in an embodiment, described according to described backup instruction, described data to be backed up are backuped to described backup Step in address, including:
Whether the free value of detection operating system is more than predetermined threshold value, the most then after generating described data to be backed up, vertical Will described data to be backed up backup in described backup address, if it is not, then according to default detection cycle duplicate detection current time Under between, whether the free value of described operating system is more than predetermined threshold value, when described free value is more than described predetermined threshold value, in institute State and under current time, described data to be backed up are backuped in described backup address.
A kind of data backup device based on SAS (Statistical Analysis System is called for short SAS), described dress Put and include:
Pending data acquisition module, is used for obtaining pending data;
Data generation module to be backed up, for processing described pending data according to default process instruction, generates Data to be backed up, described data to be backed up are stored in be preset in storage address;
Backup instruction acquisition module, treats the backup that Backup Data carries out backing up refer to for obtaining default shell statement Order, comprises described default storage address and backup address in described backup instruction;
Backup performs module, for described data to be backed up being backuped to described backup address according to described backup instruction In.
Wherein in an embodiment, described backup instruction acquisition module presets, for identifying, the first pass processed in instruction Key word and the second keyword;Obtain the backup instruction between described first keyword and the second keyword.
Wherein in an embodiment, described device also includes:
Authority acquiring module, for obtaining the authority calling shell statement.
Wherein in an embodiment, described backup instruction also includes back up the execution time;Described backup performs module It is additionally operable to obtain the process deadline to described pending data;By described data to be backed up under the described backup execution time Backup in described backup address.
Wherein in an embodiment, whether the free value that described backup execution module is additionally operable to detect operating system is more than Predetermined threshold value, the most then, after generating described data to be backed up, backup to described backup address by described data to be backed up immediately In, if it is not, then according to the free value of described operating system under default detection cycle duplicate detection current time whether more than presetting Described data to be backed up, when described free value is more than described predetermined threshold value, are backuped to institute under described current time by threshold value State in backup address.
Above-mentioned data back up method based on SAS and device, generated by using shell statement to back up SAS system Data to be backed up, this backup method had not both interfered with the execution that other is instructed by SAS system, again without enumerate out treat standby Number, according to backing up, relative to traditional data back up method, can improve the backup efficiency of SAS data.
Accompanying drawing explanation
Fig. 1 is for realizing the structural representation of the equipment of data back up method based on SAS in an embodiment;
Fig. 2 is the schematic flow sheet of data back up method based on SAS in an embodiment;
Fig. 3 is to obtain default shell statement in an embodiment to treat the backup instruction that Backup Data carries out backing up The schematic flow sheet of step;
Fig. 4 is the structured flowchart of data backup device based on SAS in an embodiment;
Fig. 5 is the structured flowchart of data backup device based on SAS in another embodiment.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, right The present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, not For limiting the present invention.
As it is shown in figure 1, in one embodiment, it is provided that a kind of for realizing setting of data back up method based on SAS Standby 100, including the processor connected by system bus, non-volatile memory medium, built-in storage, input/output interface.Its Middle processor has computing function and controls the function of terminal 100 work, and this processor is configured to perform a kind of based on SAS Data back up method.Non-volatile memory medium includes in magnetic storage medium, optical storage media and flash memory type storage medium extremely Few one, non-volatile memory medium storage has operating system and data backup device based on SAS.Should data based on SAS Back-up device is for realizing a kind of data back up method based on SAS.Input/output interface is for setting with extraneous input and output For being connected, can be used for receiving pending data, these pending data can include user's operation note to related web page Etc..
In one embodiment, as shown in Figure 2, it is provided that a kind of data back up method based on SAS, the present embodiment is with this The equipment 100 that method is applied in above-mentioned Fig. 1 illustrates.The method comprises the steps:
Step 202, obtains pending data.
In the present embodiment, pending data are the data relevant to Backup Data, and pending data can include presetting website On data, it is possible to include that recorded user is to data etc. produced by the behaviors such as the access operation of default website.Concrete, Pending data can be the data of the type websites such as default bank rate, stock market, statistics bureau and financial institution.
In one embodiment, pending data can be obtained by default SAS program.Wherein, equipment 100 is preset There is SAS application software, pending data can be obtained by SAS spiders technology.
Pending data are processed according to default process instruction, generate data to be backed up by step 204.
Presetting and process instruction can be the DATA step preset, and this DATA step is for sieving acquired pending data Choosing, classification etc. process, and generate data to be backed up.Default DATA step can be compiled and resolve by compiler by equipment 100, To identify and to perform the instruction corresponding to this DATA step, generating data to be backed up, wherein, data to be backed up are stored in preset and deposit In storage address.
Concrete, these data to be backed up are SAS file, and presented in SAS data set, are stored in and pre-set In SAS logical base, the SAS data set to be backed up generated can be multiple.Wherein, SAS data set is to comprise descriptor information With the file of relevant data value, it is the table arranging, can being processed by SAS system with observation as row, with variate-value that this document is one. Further, this SAS data set also can comprise index, in facilitating and finding this concrete data set by SAS system by index Record.SAS logical base is the set of the files such as SAS data set and catalogue.In conventional operating system, (such as Windows grasps Make system or Unix operating system) under, SAS logical base typically refers to be positioned at identical file folder or one group of SAS file of catalogue, its Middle SAS logical base is usually located at the addressable position of SAS system.
Step 206, obtains the shell statement preset and treats the backup instruction that Backup Data carries out backing up.
In the present embodiment, shell statement is the directive statement that can be used in operating system performs data backup.Should Shell statement can be performed by operating system and without in SAS system perform, i.e. operating system perform shell statement time, SAS system can perform other follow-up SAS instruction simultaneously, thus can improve system operating efficiency.
Backup instruction in the shell statement preset contains storage address and the backup address of data to be backed up.Storage Address is the address of the SAS logical base depositing SAS data set to be backed up, including path and the SAS logical base of this SAS logical base Title, and without including the title of each of which SAS data set to be backed up.Backup address can be preset be arbitrarily used for deposit Store up the address of SAS data set to be backed up, without for the discernible address of SAS system.
In one embodiment, backup instruction that Backup Data carries out backing up is treated obtaining the shell statement preset Before step, including: obtain the authority calling shell statement.
In the present embodiment, the authority that can call shell statement can be set for SAS system in advance so that SAS system possesses tune By the authority of shell statement, when needing use shell statement to carry out the backup to SAS data, can obtain and call shell language The authority of sentence, and notify that operating system is to perform this shell statement.
Data to be backed up are backuped in backup address by step 208 according to backup instruction.
Concrete, obtaining all data in this SAS logical base according to the backup instruction in shell statement, these data are i.e. For SAS data set to be backed up, and by acquired SAS data set backup to be backed up to set backup address.
The method that traditional backup instruction using SAS system self carries out data backup, its each backup instruction all needs To be resolved by operating system, and also the data name of each data to be backed up need to be listed, and can only be backuped to In the discernible backup directory of SAS system.In the present embodiment, what by using shell statement to back up, SAS system generated treats Backup Data, this backup method had not both interfered with the execution that other is instructed by SAS system, again without enumerating out number to be backed up According to backing up, relative to traditional data back up method, the backup efficiency of SAS data can be improved.
In one embodiment, as it is shown on figure 3, wherein, the shell statement that acquisition is preset is treated Backup Data and is backed up The step of backup instruction, including:
Step 302, identifies and presets the first keyword and the second keyword processed in instruction.
Step 304, obtains the backup instruction between the first keyword and the second keyword.
In the present embodiment, pre-set the first keyword and the second keyword so that SAS system is performing DATA step During, when the first keyword being detected, then extract the directive statement after being positioned at the first keyword, and the second pass detected During key word, then stop the extraction to the directive statement after the first keyword.I.e. obtain between the first keyword and the second keyword Directive statement, this directive statement is backup instruction.This backup instruction is shell statement so that can be direct by operating system Perform, and without being compiled again.When, after the backup instruction getting shell statement, operating system being directly invoked and perform This shell statement.
In the present embodiment, server is by arranging the first keyword and the second keyword obtains the table of the first tables of data Name so that the acquisition for the first tables of data is more quick accurately.
In one embodiment, backup instruction also includes back up the execution time;According to backup instruction by data to be backed up Backup to the step in backup address, including: obtain the process deadline to pending data;Will under the backup execution time Data to be backed up backup in backup address.
In the present embodiment, owing to SAS system is to be walked by DATA to perform the process to data, when it generates number to be backed up According to time complete, the time being finished generating the DATA step corresponding to data to be backed up, this time being finished can be detected It is the process deadline to pending data.
BACKUP TIME was determined by the process deadline of pending data.When detecting that system time arrives BACKUP TIME Time, under this BACKUP TIME, data to be backed up can be backuped in backup address.
Concrete, can be this process deadline and Preset Time sum.Such as, can arrange Preset Time is 30 seconds, when 30 points 0 second when this process deadline is 18 detected, then can determine that 30 points 30 seconds when BACKUP TIME is 18.And when system Between when arriving 18 when 30 points and 30 seconds, then be immediately performed the instruction backuping in backup address by data to be backed up.
In one embodiment, according to backup instruction data to be backed up are backuped to the step in backup address, including: inspection Whether the free value surveying operating system is more than predetermined threshold value, the most then after generating data to be backed up, immediately by data to be backed up Backup in backup address, if it is not, according to the free value of operating system under default detection cycle duplicate detection current time be then No more than predetermined threshold value, when free value is more than predetermined threshold value, under current time, data to be backed up are backuped to backup address In.
In the present embodiment, predetermined threshold value can be user-defined any number, it is possible to the default number arranged for system. Free value is for characterizing the idle degrees of operating system, and when free value is the biggest, then explanation operating system is the most idle.Further, It is also provided with the detection cycle, when the free value of the operating system detected under current time is not more than predetermined threshold value, can basis This detection cycle and current time determine the detection time next time, make current time reach the detection time next time Time, whether the most again detect the free value of operating system under this detection time more than predetermined threshold value, the most then can directly by Data to be backed up backup in backup address, otherwise, can again according to this detection cycle continue to determine next time for judging The detection time whether execution is backed up.
Further, detection number of times or backup execution time also can be set so that when the judgement that this judged result is no Number of times arrive this detection number of times after, can directly perform the backup to pending data, or reach backup in current time After the execution time, it is possible to directly perform the backup to pending data, to avoid when operating system is constantly in less than presetting threshold Under value, it is impossible to complete the situation of backup to pending data.
Owing to operating system being likely present other the process needing to perform, when carrying out backup meeting under system is busy Make to back up efficiency to decline, and affect the execution efficiency of other process being carrying out, by the sky in system in the present embodiment Not busy value carries out treating the backup of Backup Data more than under predetermined threshold value, can further improve backup efficiency.
In one embodiment, as shown in Figure 4, it is provided that a kind of data backup device based on SAS, this device includes:
Pending data acquisition module 402, is used for obtaining pending data.
In the present embodiment, pending data are the data relevant to Backup Data, and pending data can include presetting website On data, it is possible to include that recorded user is to data etc. produced by the behaviors such as the access operation of default website.Concrete, Pending data can be the data of the type websites such as default bank rate, stock market, statistics bureau and financial institution.
In one embodiment, pending data can be obtained by default SAS program.Wherein, equipment 100 is preset There is SAS application software, pending data can be obtained by SAS spiders technology.
Data generation module 404 to be backed up, for processing pending data according to default process instruction, generation is treated Backup Data, data to be backed up are stored in be preset in storage address.
Presetting and process instruction can be the DATA step preset, and this DATA step is for sieving acquired pending data Choosing, classification etc. process, and generate data to be backed up.Default DATA step can be compiled and resolve by compiler by equipment 100, To identify and to perform the instruction corresponding to this DATA step, generating data to be backed up, wherein, data to be backed up are stored in preset and deposit In storage address.
Concrete, these data to be backed up are SAS file, and presented in SAS data set, are stored in and pre-set In SAS logical base, the SAS data set to be backed up generated can be multiple.Wherein, SAS data set is to comprise descriptor information With the file of relevant data value, it is the table arranging, can being processed by SAS system with observation as row, with variate-value that this document is one. Further, this SAS data set also can comprise index, in facilitating and finding this concrete data set by SAS system by index Record.SAS logical base is the set of the files such as SAS data set and catalogue.In conventional operating system, (such as Windows grasps Make system or Unix operating system) under, SAS logical base typically refers to be positioned at identical file folder or one group of SAS file of catalogue, its Middle SAS logical base is usually located at the addressable position of SAS system.
Backup instruction acquisition module 406, treats, for obtaining default shell statement, the backup that Backup Data carries out backing up Instruction, comprises in backup instruction and presets storage address and backup address.
In the present embodiment, shell statement is the directive statement that can be used in operating system performs data backup.Should Shell statement can be performed by operating system and without in SAS system perform, i.e. operating system perform shell statement time, SAS system can perform other follow-up SAS instruction simultaneously, thus can improve system operating efficiency.
Backup instruction in the shell statement preset contains storage address and the backup address of data to be backed up.Storage Address is the address of the SAS logical base depositing SAS data set to be backed up, including path and the SAS logical base of this SAS logical base Title, and without including the title of each of which SAS data set to be backed up.Backup address can be preset be arbitrarily used for deposit Store up the address of SAS data set to be backed up, without for the discernible address of SAS system.
In one embodiment, as it is shown in figure 5, data backup device based on SAS also includes authority acquiring module 405, For obtaining the authority calling shell statement.
In the present embodiment, the authority that can call shell statement can be set for SAS system in advance so that SAS system possesses tune By the authority of shell statement, when needing use shell statement to carry out the backup to SAS data, can obtain and call shell language The authority of sentence, and notify that operating system is to perform this shell statement.
Backup performs module 408, for data to be backed up being backuped in backup address according to backup instruction.
Concrete, obtaining all data in this SAS logical base according to the backup instruction in shell statement, these data are i.e. For SAS data set to be backed up, and by acquired SAS data set backup to be backed up to set backup address.
The method that traditional backup instruction using SAS system self carries out data backup, its each backup instruction all needs To be resolved by operating system, and also the data name of each data to be backed up need to be listed, and can only be backuped to In the discernible backup directory of SAS system.In the present embodiment, what by using shell statement to back up, SAS system generated treats Backup Data, this backup method had not both interfered with the execution that other is instructed by SAS system, again without enumerating out number to be backed up According to backing up, relative to traditional data back up method, the backup efficiency of SAS data can be improved.
In one embodiment, backup instruction acquisition module 406 is used for: identifies and presets the first keyword processed in instruction With the second keyword;Obtain the backup instruction between the first keyword and the second keyword.
In the present embodiment, pre-set the first keyword and the second keyword so that SAS system is performing DATA step During, when the first keyword being detected, then extract the directive statement after being positioned at the first keyword, and the second pass detected During key word, then stop the extraction to the directive statement after the first keyword.I.e. obtain between the first keyword and the second keyword Directive statement, this directive statement is backup instruction.This backup instruction is shell statement so that can be direct by operating system Perform, and without being compiled again.When, after the backup instruction getting shell statement, operating system being directly invoked and perform This shell statement.
In the present embodiment, server is by arranging the first keyword and the second keyword obtains the table of the first tables of data Name so that the acquisition for the first tables of data is more quick accurately.
Backup instruction also includes back up the execution time;Backup performs module 408 and is additionally operable to obtain pending data Process the deadline;Under the backup execution time, data to be backed up are backuped in backup address.
In the present embodiment, owing to SAS system is to be walked by DATA to perform the process to data, when it generates number to be backed up According to time complete, the time being finished generating the DATA step corresponding to data to be backed up, this time being finished can be detected It is the process deadline to pending data.
BACKUP TIME was determined by the process deadline of pending data.When detecting that system time arrives BACKUP TIME Time, under this BACKUP TIME, data to be backed up can be backuped in backup address.
Concrete, can be this process deadline and Preset Time sum.Such as, can arrange Preset Time is 30 seconds, when 30 points 0 second when this process deadline is 18 detected, then can determine that 30 points 30 seconds when BACKUP TIME is 18.And when system Between when arriving 18 when 30 points and 30 seconds, then be immediately performed the instruction backuping in backup address by data to be backed up.
In one embodiment, backup performs module 408 and whether is additionally operable to detect the free value of operating system more than presetting Threshold value, the most then, after generating data to be backed up, backup to data to be backed up in backup address immediately, if it is not, then according in advance If under detection cycle duplicate detection current time, whether the free value of operating system is more than predetermined threshold value, when free value is more than presetting During threshold value, under current time, data to be backed up are backuped in backup address.
In the present embodiment, predetermined threshold value can be user-defined any number, it is possible to the default number arranged for system. Free value is for characterizing the idle degrees of operating system, and when free value is the biggest, then explanation operating system is the most idle.Further, It is also provided with the detection cycle, when the free value of the operating system detected under current time is not more than predetermined threshold value, can basis This detection cycle and current time determine the detection time next time, make current time reach the detection time next time Time, whether the most again detect the free value of operating system under this detection time more than predetermined threshold value, the most then can directly by Data to be backed up backup in backup address, otherwise, can again according to this detection cycle continue to determine next time for judging The detection time whether execution is backed up.
Further, detection number of times or backup execution time also can be set so that when the judgement that this judged result is no Number of times arrive this detection number of times after, can directly perform the backup to pending data, or reach backup in current time After the execution time, it is possible to directly perform the backup to pending data, to avoid when operating system is constantly in less than presetting threshold Under value, it is impossible to complete the situation of backup to pending data.
Owing to operating system being likely present other the process needing to perform, when carrying out backup meeting under system is busy Make to back up efficiency to decline, and affect the execution efficiency of other process being carrying out, by the sky in system in the present embodiment Not busy value carries out treating the backup of Backup Data more than under predetermined threshold value, can further improve backup efficiency.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic The non-volatile memory mediums such as dish, CD, read-only store-memory body (Read-Only Memory, ROM), or random store-memory Body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, not to above-mentioned reality The all possible combination of each technical characteristic executed in example is all described, but, as long as the combination of these technical characteristics is not deposited In contradiction, all it is considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but also Can not therefore be construed as limiting the scope of the patent.It should be pointed out that, come for those of ordinary skill in the art Saying, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement, these broadly fall into the protection of the present invention Scope.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. data back up method based on SAS (a Statistical Analysis System is called for short SAS), its feature exists In, said method comprising the steps of:
Obtain pending data;
According to default process instruction, described pending data are processed, generate data to be backed up, described data quilt to be backed up Store in default storage address;
Obtain the shell statement preset and treat the backup instruction that Backup Data carries out backing up, described backup instruction comprises described Preset storage address and backup address;
According to described backup instruction, described data to be backed up are backuped in described backup address.
Method the most according to claim 1, it is characterised in that Backup Data treated in the shell statement that described acquisition is preset Carry out the step of the backup instruction backed up, including:
Identify and preset the first keyword and the second keyword processed in instruction;
Obtain the backup instruction between described first keyword and the second keyword.
Method the most according to claim 1, it is characterised in that described acquisition preset shell statement to number to be backed up Before carrying out the step of backup instruction that backs up, including:
Obtain the authority calling shell statement.
Method the most according to claim 1, it is characterised in that also include in described backup instruction backing up the execution time;Institute State, according to described backup instruction, described data to be backed up are backuped to the step in described backup address, including:
Obtain the process deadline to described pending data;
Under the described backup execution time, described data to be backed up are backuped in described backup address.
Method the most according to claim 1, it is characterised in that described according to described backup instruction by described data to be backed up Backup to the step in described backup address, including:
Whether the free value of detection operating system is more than predetermined threshold value, the most then, after generating described data to be backed up, immediately will Described data to be backed up backup in described backup address, if it is not, then according under default detection cycle duplicate detection current time Whether the free value of described operating system, more than predetermined threshold value, when described free value is more than described predetermined threshold value, works as described Under the front time, described data to be backed up are backuped in described backup address.
6. data backup device based on SAS (a Statistical Analysis System is called for short SAS), its feature exists In, described device includes:
Pending data acquisition module, is used for obtaining pending data;
Data generation module to be backed up, is used for processing described pending data according to default process instruction, and generation is treated standby Number evidence, described data to be backed up are stored in be preset in storage address;
Backup instruction acquisition module, treats the backup instruction that Backup Data carries out backing up, institute for obtaining default shell statement State and backup instruction comprises described default storage address and backup address;
Backup performs module, for described data to be backed up being backuped in described backup address according to described backup instruction.
Device the most according to claim 6, it is characterised in that described backup instruction acquisition module is used for identifying presets process The first keyword in instruction and the second keyword;Obtain the backup instruction between described first keyword and the second keyword.
Device the most according to claim 6, it is characterised in that described device also includes:
Authority acquiring module, for obtaining the authority calling shell statement.
Device the most according to claim 6, it is characterised in that also include in described backup instruction backing up the execution time;Institute State backup execution module to be additionally operable to obtain the process deadline to described pending data;Will under the described backup execution time Described data to be backed up backup in described backup address.
Device the most according to claim 6, it is characterised in that described backup performs module and is additionally operable to detect operating system Free value whether more than predetermined threshold value, the most then after generating described data to be backed up, immediately by standby for described data to be backed up Part in described backup address, if it is not, then according to the sky of described operating system under default detection cycle duplicate detection current time Whether not busy value, more than predetermined threshold value, when described free value is more than described predetermined threshold value, is treated described under described current time Backup Data backups in described backup address.
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 true CN106055427A (en) 2016-10-26
CN106055427B 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
CN105373453A (en) * 2015-12-15 2016-03-02 中国农业银行股份有限公司 Data backup method and system
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

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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
天空之城: "《http://www.dataguru.cn/article-3482-1.html》", 10 September 2013 *

Also Published As

Publication number Publication date
CN106055427B (en) 2019-07-30

Similar Documents

Publication Publication Date Title
CN106980636B (en) Policy data processing method and device
US20150134913A1 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
CN108197306B (en) SQL statement processing method and device, computer equipment and storage medium
US10235234B2 (en) Method and apparatus for determining failure similarity in computing device
CN109710402A (en) Method, apparatus, computer equipment and the storage medium of process resource acquisition request
CN109656779A (en) Internal memory monitoring method, device, terminal and storage medium
CN105607986A (en) Acquisition method and device of user behavior log data
CN110659297A (en) Data processing method, data processing device, computer equipment and storage medium
WO2015106710A1 (en) Contact information processing method, apparatus, and system
CN110727698A (en) Database access method and device, computer equipment and storage medium
CN110688168A (en) Method, device and equipment for improving starting speed of application program and storage medium
CN108121774B (en) Data table backup method and terminal equipment
CN103473172A (en) System and method for checking leak of background program memories and positioning leak memory points
US10929536B2 (en) Detecting malware based on address ranges
CN110555165B (en) Information identification method and device, computer equipment and storage medium
CN109656947B (en) Data query method and device, computer equipment and storage medium
CN111597553A (en) Process processing method, device, equipment and storage medium in virus searching and killing
CN107644041B (en) Policy settlement processing method and device
CN107992402A (en) Blog management method and log management apparatus
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
CN106126708A (en) A kind of method and apparatus of the file deleting terminal storage
EP3108400B1 (en) Virus signature matching method and apparatus
CN103092955B (en) Checkpointed method, Apparatus and system
CN106055427A (en) SAS-based data backup method and apparatus
CN111339054A (en) Storage system hierarchical management method, device, 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