CN105224421A - Data backup method and device and electronic equipment - Google Patents

Data backup method and device and electronic equipment Download PDF

Info

Publication number
CN105224421A
CN105224421A CN201510675610.6A CN201510675610A CN105224421A CN 105224421 A CN105224421 A CN 105224421A CN 201510675610 A CN201510675610 A CN 201510675610A CN 105224421 A CN105224421 A CN 105224421A
Authority
CN
China
Prior art keywords
data
backed
backstage
server
sent
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
CN201510675610.6A
Other languages
Chinese (zh)
Other versions
CN105224421B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510675610.6A priority Critical patent/CN105224421B/en
Publication of CN105224421A publication Critical patent/CN105224421A/en
Application granted granted Critical
Publication of CN105224421B publication Critical patent/CN105224421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a data backup method, a data backup device and electronic equipment, and relates to the technical field of Internet, wherein the method comprises the following steps: determining data to be backed up; classifying the determined data to be backed up according to a preset data classification rule, and dividing the determined data to be backed up into foreground data to be backed up and background data to be backed up, wherein the foreground data to be backed up is the data to be backed up sent to a server in a foreground operation state, and the background data to be backed up is the data to be backed up sent to the server in a background operation state; sending the foreground data to be backed up to a server in a foreground running state; and after the foreground data to be backed up is completely sent to the server, sending the background data to be backed up to the server in a background running state under the condition that preset data background sending conditions are met. By applying the scheme provided by the embodiment of the invention to carry out data backup, the waiting time of a user during data backup can be reduced.

Description

A kind of data back up method, device and electronic equipment
Technical field
The present invention relates to Internet technical field, particularly a kind of data back up method, device and electronic equipment.
Background technology
Along with the fast development of hardware technology, from strength to strength, the application that can support gets more and more the performance of the various terminals that user uses.User is in the process using mounted application in its terminal, and various application can generate mass data, and therefore, terminal needs the data of storage more, such as: photo, video, address list, note etc.
Although user use the performance of terminal from strength to strength, the storage resources of terminal is more and more abundanter, but the storage resources of terminal is limited after all, the data grows stored along with above-mentioned needs is many, in terminal, remaining free memory can be more and more less, even can affect the normal use of terminal.
In view of the foregoing, user usually can by discharging the storage resources of terminal by a part of data backup in terminal to the mode of server.In prior art, during to server backup data, general terminal is directly sent to server by under the state needing the data of backup to open in relevant backup application program.But when terminal needs mass data to be sent to server, the time of needs is longer, thus user needs the time of wait also longer.
Summary of the invention
The embodiment of the invention discloses a kind of data back up method, device and electronic equipment, during to reduce data backup, user needs the time waited for.
For achieving the above object, the embodiment of the invention discloses a kind of data back up method, described method comprises:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to described server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
In a kind of specific implementation of the present invention, described send described foreground data to be backed up with foreground running status to described server after, also comprise:
Show the information for data backup progress.
In a kind of specific implementation of the present invention, described default Data classification rule, comprising:
By the data taking storage space in determined data to be backed up and be greater than default storage threshold, be divided into backstage data to be backed up; Or
Data importance grade in determined data to be backed up is less than the data of default importance rate threshold value, is divided into backstage data to be backed up; Or
Be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
The history access probability of data in determined data to be backed up is less than the data of default access probability threshold value, is divided into backstage data to be backed up.
In a kind of specific implementation of the present invention, described default data backstage sends condition, comprising:
Judge whether described backstage data to be backed up are all sent to described server, if be not all sent to described server, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether current network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether terminal is in idle condition, if be in idle condition, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether the number of times sending described backstage data failure to be backed up to described server with background operation state is greater than the default frequency of failure, if be greater than, then judge that meeting the data backstage of presetting sends condition.
In a kind of specific implementation of the present invention, it is described after data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server, comprising:
After data to be backed up for described foreground are all sent to described server, judge whether that meeting the data backstage of presetting sends condition;
If meet, determine the data to be backed up not being sent to described server in the data to be backed up of described backstage;
Send the data to be backed up not being sent to described server in the data to be backed up of described backstage to described server with described background operation state.
In a kind of specific implementation of the present invention, described judge whether meet preset data backstage transmission condition after, also comprise:
If meet, determine the data to be backed up being sent to described server in the data to be backed up of described backstage;
Judge whether the data to be backed up being sent to described server in the data to be backed up of described backstage are updated;
If be updated, to upgrade in described server according to the data after upgrading the data to be backed up being sent to described service in the described backstage data to be backed up stored with background operation state.
For achieving the above object, the embodiment of the invention discloses a kind of data backup device, described device comprises:
Data determining module, for determining data to be backed up;
Data categorization module, for classifying to determined data to be backed up according to the Data classification rule preset, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
First data transmission blocks, for sending described foreground data to be backed up with foreground running status to described server;
Second data transmission blocks, for after data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, sends described backstage data to be backed up with background operation state to described server.
In a kind of specific implementation of the present invention, described data backup device also comprises:
Information display module, after sending data in described first data transmission blocks, shows the information for data backup progress.
In a kind of specific implementation of the present invention, described default Data classification rule, comprising:
By the data taking storage space in determined data to be backed up and be greater than default storage threshold, be divided into backstage data to be backed up; Or
Data importance grade in determined data to be backed up is less than the data of default importance rate threshold value, is divided into backstage data to be backed up; Or
Be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
The history access probability of data in determined data to be backed up is less than the data of default access probability threshold value, is divided into backstage data to be backed up.
In a kind of specific implementation of the present invention, described default data backstage sends condition, comprising:
Judge whether described backstage data to be backed up are all sent to described server, if be not all sent to described server, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether current network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether terminal is in idle condition, if be in idle condition, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether the number of times sending described backstage data failure to be backed up to described server with background operation state is greater than the default frequency of failure, if be greater than, then judge that meeting the data backstage of presetting sends condition.
In a kind of specific implementation of the present invention, described second data transmission blocks, comprising:
Send condition judgment submodule, for after data to be backed up for described foreground are all sent to described server, judge whether that meeting the data backstage of presetting sends condition;
First data determination submodule, for when the judged result of described transmission condition judgment submodule is for being, determines the data to be backed up not being sent to described server in the data to be backed up of described backstage;
Data send submodule, for sending the data to be backed up not being sent to described server in the data to be backed up of described backstage to described server with described background operation state.
In a kind of specific implementation of the present invention, described second data transmission blocks, also comprises:
Second data determination submodule, for when the judged result of described transmission condition judgment submodule is for being, determines the data to be backed up being sent to described server in the data to be backed up of described backstage;
Data judge submodule, for judging whether the data to be backed up being sent to described server in the data to be backed up of described backstage are updated;
Data Update submodule, for when the judged result of described data judge module is for being, to upgrade in described server according to the data after upgrading the data to be backed up being sent to described service in the described backstage data to be backed up stored with background operation state.
For achieving the above object, the embodiment of the invention discloses a kind of electronic equipment, described electronic equipment comprises: housing, processor, storer, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of electronic equipment or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code by reading the executable program code stored in storer, for execution following steps:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
For achieving the above object, the embodiment of the invention discloses a kind of storage medium, wherein, this storage medium is for storing application program, and described application program is used for a kind of data back up method operationally performed described in the embodiment of the present invention.
For achieving the above object, the embodiment of the invention discloses a kind of application program, wherein, this application program is used for a kind of data back up method operationally performed described in the embodiment of the present invention.
As seen from the above, in the scheme that the embodiment of the present invention provides, after determining data to be backed up, Data classification rule according to presetting is classified to determined data to be backed up, be divided into foreground data to be backed up and backstage data to be backed up, first send above-mentioned foreground data to be backed up with foreground running status to server, after data to be backed up for above-mentioned foreground are all sent to server, when meeting the data backstage transmission condition preset, then send backstage data to be backed up with background operation state to server.Owing to being only a part for determined data to be backed up to the data that server sends with foreground running status, and wait for without the need to user when server sends data with background operation state, so, when the scheme that provides of the application embodiment of the present invention carries out data backup, when can reduce data backup, user needs the time waited for.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first schematic flow sheet of the data back up method that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet of the data back up method that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of the data back up method that Fig. 3 provides for the embodiment of the present invention;
The first structural representation of the data backup device that Fig. 4 provides for the embodiment of the present invention;
The second structural representation of the data backup device that Fig. 5 provides for the embodiment of the present invention;
The third structural representation of the data backup device that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of electronic equipment that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The first schematic flow sheet of the data back up method that Fig. 1 provides for the embodiment of the present invention, the method comprises:
S101: determine data to be backed up.
Understandable, can store diversified data in terminal, user can determine whether will be backed up in server according to the type of these data, importance rate etc.
Concrete, data to be backed up can be data that address list is corresponding, image capture device gathers image or video etc.
Wherein, can comprise in the data that address list is corresponding: incoming ring tone information that image information corresponding to Word message corresponding to each contact person, each contact person, each contact person are corresponding etc.
It should be noted that, the application is just described for above-mentioned, in practical application, data to be backed up are not limited in data corresponding to address list, image capture device gathers image or video etc.
Concrete, when determining data to be backed up, the mode at every turn manually can selected by user is determined, the information that can also pre-set in setting option according to user is determined, in addition, can also determine that rule is determined according to the Backup Data of developer's setting, the application does not limit this.
S102: the Data classification rule according to presetting is classified to determined data to be backed up, is foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up.
Wherein, above-mentioned foreground data to be backed up are the data to be backed up sent to server with foreground running status, and above-mentioned backstage data to be backed up are the data to be backed up sent to server with background operation state.
Above-mentioned default Data classification rule can be the Data classification rule relevant to many factors, such as, can be the Data classification rule relevant to the storage space that data take, the Data classification rule with data importance rank correlation, the Data classification rule of being correlated with data type, the Data classification rule relevant with the history access probability of data etc., the application limit this.
Concrete, take the transmission time that the large data of storage space need long, and then the time needing user to wait for is long, therefore, the data that can will take storage space in determined data to be backed up and be greater than default storage threshold, are divided into backstage data to be backed up;
Concrete, for user, the importance of the data stored in terminal is not the same, some data is once lose and cannot recover, the importance rate of this kind of data is general higher, therefore, data importance grade in determined data to be backed up can be less than the data of default importance rate threshold value, be divided into backstage data to be backed up, wherein, the importance rate of data can be the needs setting of user according to self, can also be that operation maintenance personnel is passed through use habit of adding up a large number of users etc. and analyzes setting, the application does not limit this, such as, the importance rate that can arrange the Word message that each contact person is corresponding in data corresponding to address list is higher, and the importance rate of image information corresponding to each contact person is lower,
Concrete, can be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
Concrete, in the data that terminal stores, some is the data that user's access probability is higher, and some is the data that user's access probability is lower, understandable, the data lower for user's access probability can slowly back up it, and the data higher for user's access probability then preferentially back up, therefore, the history access probability of data in determined data to be backed up can be less than the data of default access probability threshold value, be divided into backstage data to be backed up.
It should be noted that, above-mentioned several Data classification rule can combine and form new Data classification rule, such as, data importance grade in determined data to be backed up is less than default importance rate threshold value and history access probability is less than the data of default access probability threshold value, be divided into backstage data to be backed up, other situations are similar, will not enumerate here.
S103: send foreground data to be backed up to server with foreground running status.
S104: after data to be backed up for foreground are all sent to server, when meeting the data backstage transmission condition preset, sends backstage data to be backed up with background operation state to server.
Those skilled in the art are understandable that, terminal understands the processor resource, memory source, I/O resource etc. of occupied terminal always in the process of server transmission data with foreground running status, and when sending data with background operation state to server, send under then can being in the situations such as idle condition in terminal, like this, not only can reduce the time that user waits for, and not easily cause the phenomenon causing terminal resource deficiency cannot run other application for a long time due to the various resource of data backup occupied terminal to occur.
Concrete, above-mentioned default data backstage transmission condition can be the one in following several situation:
Can be judge whether backstage data to be backed up are all sent to server, if be not all sent to server, then judge that meeting the data backstage of presetting sends condition;
Can be judge whether current network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition, preferably, can be judge whether current WIFI network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition, like this when terminal can pass through mobile communications network accesses network resource, help user's saving network flow expense;
Can be judge whether terminal is in idle condition, if be in idle condition, then judge that meeting the data backstage of presetting sends condition;
Can judge whether the number of times sending described backstage data failure to be backed up to described server with background operation state is greater than the default frequency of failure, if be greater than, then judge that meeting the data backstage of presetting sends condition, such as, the frequency of failure preset can be: 3 times, 4 times etc.
It should be noted that, above-mentioned several situation can also combine and carry out, such as, when backstage data to be backed up are not all sent to server and terminal is in idle condition, judge that meeting the data backstage of presetting sends condition, other situations are similar, will not enumerate here.
As seen from the above, in the scheme that the present embodiment provides, after determining data to be backed up, Data classification rule according to presetting is classified to determined data to be backed up, be divided into foreground data to be backed up and backstage data to be backed up, first send above-mentioned foreground data to be backed up with foreground running status to server, after data to be backed up for above-mentioned foreground are all sent to server, when meeting the data backstage transmission condition preset, then send backstage data to be backed up with background operation state to server.Owing to being only a part for determined data to be backed up to the data that server sends with foreground running status, and wait for without the need to user when server sends data with background operation state, so, when the scheme that provides of application the present embodiment carries out data backup, when can reduce data backup, user needs the time waited for.
In the optional implementation of one of the present invention, former running status, to after server sends foreground data to be backed up, can also show the information for data backup progress.
Concrete, without the need to user intervention during owing to sending data with background operation state to server, so above-mentioned information can be the information that prompting user data backup has completed.Certainly, also can be the information that prompting user has completed the backup for foreground data to be backed up.In addition, the information relevant to the data content of Backup Data in above-mentioned information, can also be comprised, such as, the size of Backup Data, consuming time, the application etc. that relates to.
It should be noted that, the application does not limit the content that above-mentioned information comprises.
In a kind of specific implementation of the present invention, see Fig. 2, provide the second schematic flow sheet of data back up method, compared with previous embodiment, in the present embodiment, after data to be backed up for foreground are all sent to server, when meeting the data backstage transmission condition preset, send backstage data to be backed up with background operation state to server, comprising:
S104A: after data to be backed up for foreground are all sent to server, judges whether that meeting the data backstage of presetting sends condition, if meet, performs S104B, otherwise, perform S104D.
Understandable, the situation more complicated of terminal operating application, possible present terminal meets default data backstage and sends condition, and due to situations such as other operations of applying, after a period of time, terminal no longer meets the data backstage transmission condition preset, now may need to supspend to send data to be backed up with background operation state to server, in view of the foregoing, advise that whether meeting the data backstage of presetting according to certain rule judgment sends condition, such as, judge whether to meet default data backstage transmission condition etc. according to the time interval of presetting.
S104B: determine the data to be backed up not being sent to server in the data to be backed up of backstage.
S104C: send the data to be backed up not being sent to server in the data to be backed up of backstage with background operation state to server.
S104D: process ends.
As seen from the above, in the scheme that the present embodiment provides, when judging to learn that current satisfied data backstage of presetting sends condition, first determine the data to be backed up not being sent to server in the data to be backed up of backstage, and with background operation state, send the data to be backed up not being sent to server in the data to be backed up of above-mentioned backstage to server, but not again whole data to be backed up are sent to server, the time of carrying out data backup with background operation state can be saved as seen.
After data to be backed up for foreground are all sent to server, backstage data to be backed up may be sent to server very soon, also backstage data to be backed up could be sent to server after a while possibly, in addition, backstage data to be backed up also may be sent to server several times, no matter be which kind of situation above-mentioned, in the process sending backstage data to be backed up to server, above-mentioned backstage data to be backed up all may be updated.
In view of the foregoing, in another kind of specific implementation of the present invention, see Fig. 3, provide the third schematic flow sheet of data back up method, compared with embodiment illustrated in fig. 2, in the present embodiment, judge whether to meet default data backstage transmission condition in S104A after, if meet this data backstage of presetting to send condition, also comprise:
S104E: determine the data to be backed up being sent to server in the data to be backed up of backstage.
S104F: judge whether the data to be backed up being sent to server in the data to be backed up of backstage are updated, if be updated, performs S104G.
S104G: according to the data after renewal to be sent to the data to be backed up of service in the data to be backed up of the backstage stored in background operation state update server.
Concrete, according to the data after renewal to be sent to the data to be backed up of service in the data to be backed up of the backstage stored in background operation state update server, Ke Yishi:
According to the data after upgrading to be sent to the data to be backed up of service in the backstage data to be backed up that store in background operation state amendment server, such as, image information corresponding for contact person in address list is revised as image B by image A;
According to the data after renewal to be sent to the data to be backed up of service in the backstage data to be backed up stored in background operation state deletion server, such as, the full detail of a contact person in deleting communication record.
As seen from the above, in the scheme that the present embodiment provides, when judge satisfied default data backstage send condition, judge whether the data to be backed up being sent to server in the data to be backed up of backstage are updated further, if be updated, according to the data after renewal to be sent to the data to be backed up of service in the data to be backed up of the backstage stored in background operation state update server.When the scheme that visible application the present embodiment provides carries out data backup, what store in server when can ensure platform data to be backed up after the backup is completed is backstage data to be backed up after recent renewal.
Corresponding with above-mentioned data back up method, the embodiment of the present invention additionally provides a kind of data backup device.
The first structural representation of the data backup device that Fig. 4 provides for the embodiment of the present invention, this device comprises:
Data determining module 401, for determining data to be backed up;
Data categorization module 402, for classifying to determined data to be backed up according to the Data classification rule preset, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
First data transmission blocks 403, for sending described foreground data to be backed up with foreground running status to described server;
Second data transmission blocks 404, for after data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, sends described backstage data to be backed up with background operation state to described server.
Optionally, described default Data classification rule can comprise:
By the data taking storage space in determined data to be backed up and be greater than default storage threshold, be divided into backstage data to be backed up; Or
Data importance grade in determined data to be backed up is less than the data of default importance rate threshold value, is divided into backstage data to be backed up; Or
Be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
The history access probability of data in determined data to be backed up is less than the data of default access probability threshold value, is divided into backstage data to be backed up.
Optionally, described default data backstage transmission condition can comprise:
Judge whether described backstage data to be backed up are all sent to described server, if be not all sent to described server, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether current network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether terminal is in idle condition, if be in idle condition, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether the number of times sending described backstage data failure to be backed up to described server with background operation state is greater than the default frequency of failure, if be greater than, then judge that meeting the data backstage of presetting sends condition.
As seen from the above, in the scheme that the present embodiment provides, after determining data to be backed up, Data classification rule according to presetting is classified to determined data to be backed up, be divided into foreground data to be backed up and backstage data to be backed up, first send above-mentioned foreground data to be backed up with foreground running status to server, after data to be backed up for above-mentioned foreground are all sent to server, when meeting the data backstage transmission condition preset, then send backstage data to be backed up with background operation state to server.Owing to being only a part for determined data to be backed up to the data that server sends with foreground running status, and wait for without the need to user when server sends data with background operation state, so, when the scheme that provides of application the present embodiment carries out data backup, when can reduce data backup, user needs the time waited for.
In the optional implementation of one of the present invention, above-mentioned data backup device can also comprise:
Information display module, after sending data in described first data transmission blocks, shows the information for data backup progress.
In a kind of specific implementation of the present invention, see Fig. 5, provide the second structural representation of data backup device, compared with previous embodiment, in the present embodiment, described second data transmission blocks 404, comprising:
Send condition judgment submodule 4041, for after data to be backed up for described foreground are all sent to described server, judge whether that meeting the data backstage of presetting sends condition;
First data determination submodule 4042, for when the judged result of described transmission condition judgment submodule 4041 is for being, determines the data to be backed up not being sent to described server in the data to be backed up of described backstage;
Data send submodule 4043, for sending the data to be backed up not being sent to described server in the data to be backed up of described backstage to described server with described background operation state.
As seen from the above, in the scheme that the present embodiment provides, when judging to learn that current satisfied data backstage of presetting sends condition, first determine the data to be backed up not being sent to server in the data to be backed up of backstage, and with background operation state, send the data to be backed up not being sent to server in the data to be backed up of above-mentioned backstage to server, but not again whole data to be backed up are sent to server, the time of carrying out data backup with background operation state can be saved as seen.
In another kind of specific implementation of the present invention, see Fig. 6, provide the third structural representation of data backup device, compared with embodiment illustrated in fig. 5, in the present embodiment, above-mentioned second data transmission blocks 404, also comprises:
Second data determination submodule 4044, for when the judged result of described transmission condition judgment submodule is for being, determines the data to be backed up being sent to described server in the data to be backed up of described backstage;
Data judge submodule 4045, for judging whether the data to be backed up being sent to described server in the data to be backed up of described backstage are updated;
Data Update submodule 4046, for when the judged result of described data judge module 4045 is for being, to upgrade in described server according to the data after upgrading the data to be backed up being sent to described service in the described backstage data to be backed up stored with background operation state.
As seen from the above, in the scheme that the present embodiment provides, when judge satisfied default data backstage send condition, judge whether the data to be backed up being sent to server in the data to be backed up of backstage are updated further, if be updated, according to the data after renewal to be sent to the data to be backed up of service in the data to be backed up of the backstage stored in background operation state update server.When the scheme that visible application the present embodiment provides carries out data backup, what store in server when can ensure platform data to be backed up after the backup is completed is backstage data to be backed up after recent renewal.
Corresponding with above-mentioned data back up method and data backup device, the embodiment of the present invention additionally provides a kind of electronic equipment.
The structural representation of a kind of electronic equipment that Fig. 7 provides for the embodiment of the present invention, this electronic equipment comprises: housing 701, processor 702, storer 703, circuit board 704 and power circuit 705, wherein, circuit board 704 is placed in the interior volume that housing 701 surrounds, and processor 702 and storer 703 are arranged on circuit board 704; Power circuit 705, for powering for each circuit of electronic equipment or device; Storer 703 is for stores executable programs code; Processor 702 runs the program corresponding with executable program code by reading the executable program code stored in storer 703, for execution following steps:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
The step that the concrete implementation of processor 702 pairs of above-mentioned steps and processor 702 perform further by running executable program code, see the description of Fig. 1-6 illustrated embodiment of the present invention, can not repeat them here.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment possesses mobile communication function, and to provide speech, data communication for main target.This Terminal Type comprises: smart mobile phone (such as iPhone), multimedia handset, functional mobile phone, and low-end mobile phone etc.
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and processing capacity, generally also possesses mobile Internet access characteristic.This Terminal Type comprises: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play multimedia content.This kind equipment comprises: audio frequency, video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: the equipment that calculation services is provided, the formation of server comprises processor, hard disk, internal memory, system bus etc., server and general computer architecture similar, but owing to needing to provide highly reliable service, therefore require higher in processing power, stability, reliability, security, extensibility, manageability etc.
(5) other have the electronic installation of data interaction function.
As seen from the above, in the scheme that the present embodiment provides, after determining data to be backed up, Data classification rule according to presetting is classified to determined data to be backed up, be divided into foreground data to be backed up and backstage data to be backed up, first send above-mentioned foreground data to be backed up with foreground running status to server, after data to be backed up for above-mentioned foreground are all sent to server, when meeting the data backstage transmission condition preset, then send backstage data to be backed up with background operation state to server.Owing to being only a part for determined data to be backed up to the data that server sends with foreground running status, and wait for without the need to user when server sends data with background operation state, so, when the scheme that provides of application the present embodiment carries out data backup, when can reduce data backup, user needs the time waited for.
The embodiment of the present invention additionally provides a kind of storage medium, wherein, this storage medium for storing application program, the data back up method that this application program provides for performing the embodiment of the present invention.Wherein, data back up method, comprising:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
The embodiment of the present invention additionally provides a kind of application program, and wherein, this application program is used for the data back up method that the operationally execution embodiment of the present invention provides.Wherein, data back up method, comprising:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
For device, electronic equipment, storage medium and application program embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a data back up method, is characterized in that, described method comprises:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to described server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
2. method according to claim 1, is characterized in that, described send described foreground data to be backed up with foreground running status to described server after, also comprise:
Show the information for data backup progress.
3. method according to claim 1 and 2, is characterized in that, described default Data classification rule, comprising:
By the data taking storage space in determined data to be backed up and be greater than default storage threshold, be divided into backstage data to be backed up; Or
Data importance grade in determined data to be backed up is less than the data of default importance rate threshold value, is divided into backstage data to be backed up; Or
Be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
The history access probability of data in determined data to be backed up is less than the data of default access probability threshold value, is divided into backstage data to be backed up.
4. the method according to any one of claim 1-3, is characterized in that, described default data backstage sends condition, comprising:
Judge whether described backstage data to be backed up are all sent to described server, if be not all sent to described server, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether current network is in upstate, if be in upstate, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether terminal is in idle condition, if be in idle condition, then judge that meeting the data backstage of presetting sends condition; Or
Judge whether the number of times sending described backstage data failure to be backed up to described server with background operation state is greater than the default frequency of failure, if be greater than, then judge that meeting the data backstage of presetting sends condition.
5. the method according to any one of claim 1-4, it is characterized in that, it is described after data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server, comprising:
After data to be backed up for described foreground are all sent to described server, judge whether that meeting the data backstage of presetting sends condition;
If meet, determine the data to be backed up not being sent to described server in the data to be backed up of described backstage;
Send the data to be backed up not being sent to described server in the data to be backed up of described backstage to described server with described background operation state.
6. method according to claim 5, is characterized in that, described judge whether meet preset data backstage transmission condition after, also comprise:
If meet, determine the data to be backed up being sent to described server in the data to be backed up of described backstage;
Judge whether the data to be backed up being sent to described server in the data to be backed up of described backstage are updated;
If be updated, to upgrade in described server according to the data after upgrading the data to be backed up being sent to described service in the described backstage data to be backed up stored with background operation state.
7. a data backup device, is characterized in that, described device comprises:
Data determining module, for determining data to be backed up;
Data categorization module, for classifying to determined data to be backed up according to the Data classification rule preset, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
First data transmission blocks, for sending described foreground data to be backed up with foreground running status to described server;
Second data transmission blocks, for after data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, sends described backstage data to be backed up with background operation state to described server.
8. device according to claim 7, is characterized in that, described device also comprises:
Information display module, after sending data in described first data transmission blocks, shows the information for data backup progress.
9. the device according to claim 7 or 8, is characterized in that, described default Data classification rule, comprising:
By the data taking storage space in determined data to be backed up and be greater than default storage threshold, be divided into backstage data to be backed up; Or
Data importance grade in determined data to be backed up is less than the data of default importance rate threshold value, is divided into backstage data to be backed up; Or
Be the data of default data type by data type in determined data to be backed up, be divided into backstage data to be backed up;
The history access probability of data in determined data to be backed up is less than the data of default access probability threshold value, is divided into backstage data to be backed up.
10. an electronic equipment, is characterized in that, described electronic equipment comprises: housing, processor, storer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of electronic equipment or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code by reading the executable program code stored in storer, for execution following steps:
Determine data to be backed up;
Data classification rule according to presetting is classified to determined data to be backed up, be foreground data to be backed up and backstage data to be backed up by determined Data Placement to be backed up, wherein, described foreground data to be backed up are the data to be backed up sent to server with foreground running status, and described backstage data to be backed up are the data to be backed up sent to described server with background operation state;
Described foreground data to be backed up are sent to server with foreground running status;
After data to be backed up for described foreground are all sent to described server, when meeting the data backstage transmission condition preset, send described backstage data to be backed up with background operation state to described server.
CN201510675610.6A 2015-10-19 2015-10-19 Data backup method and device and electronic equipment Active CN105224421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510675610.6A CN105224421B (en) 2015-10-19 2015-10-19 Data backup method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510675610.6A CN105224421B (en) 2015-10-19 2015-10-19 Data backup method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105224421A true CN105224421A (en) 2016-01-06
CN105224421B CN105224421B (en) 2018-06-05

Family

ID=54993409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510675610.6A Active CN105224421B (en) 2015-10-19 2015-10-19 Data backup method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105224421B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760259A (en) * 2016-03-01 2016-07-13 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105786646A (en) * 2016-02-25 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN106569917A (en) * 2016-11-07 2017-04-19 广东欧珀移动通信有限公司 Data backup method and mobile terminal
WO2018049912A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and related devices
CN108021470A (en) * 2017-10-27 2018-05-11 努比亚技术有限公司 A kind of data backup method, mobile terminal and computer-readable recording medium
CN112732185A (en) * 2020-12-31 2021-04-30 广州市中崎商业机器股份有限公司 Recording apparatus, recording method, device and medium for executing multiple storage strategies
CN115827324A (en) * 2022-12-02 2023-03-21 济南嗒亦众宏网络科技服务有限公司 Data backup method, network node and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065857A1 (en) * 2004-11-11 2008-03-13 Siemens Aktiengesellschaft Method for the Permanent Storage of Subscriber Data
CN102200936A (en) * 2011-05-11 2011-09-28 杨钧 Intelligent configuration storage backup method suitable for cloud storage
CN103678045A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Data backup method for virtual machines

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065857A1 (en) * 2004-11-11 2008-03-13 Siemens Aktiengesellschaft Method for the Permanent Storage of Subscriber Data
CN102200936A (en) * 2011-05-11 2011-09-28 杨钧 Intelligent configuration storage backup method suitable for cloud storage
CN103678045A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Data backup method for virtual machines

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786646A (en) * 2016-02-25 2016-07-20 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105786646B (en) * 2016-02-25 2019-01-08 北京金山安全软件有限公司 Data backup method and device and electronic equipment
CN105760259A (en) * 2016-03-01 2016-07-13 北京金山安全软件有限公司 Data backup method and device and electronic equipment
WO2018049912A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and related devices
CN106569917A (en) * 2016-11-07 2017-04-19 广东欧珀移动通信有限公司 Data backup method and mobile terminal
CN106569917B (en) * 2016-11-07 2020-06-16 Oppo广东移动通信有限公司 Data backup method and mobile terminal
CN108021470A (en) * 2017-10-27 2018-05-11 努比亚技术有限公司 A kind of data backup method, mobile terminal and computer-readable recording medium
CN112732185A (en) * 2020-12-31 2021-04-30 广州市中崎商业机器股份有限公司 Recording apparatus, recording method, device and medium for executing multiple storage strategies
CN112732185B (en) * 2020-12-31 2024-04-26 广州市中崎商业机器股份有限公司 Recording apparatus, recording method, device and medium for executing multiple storage strategies
CN115827324A (en) * 2022-12-02 2023-03-21 济南嗒亦众宏网络科技服务有限公司 Data backup method, network node and system
CN115827324B (en) * 2022-12-02 2023-12-22 人和数智科技有限公司 Data backup method, network node and system

Also Published As

Publication number Publication date
CN105224421B (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN105224421A (en) Data backup method and device and electronic equipment
WO2017101509A1 (en) Application program update method and apparatus
CN105117295A (en) Memory resource release method and device and electronic equipment
CN103984468A (en) Method and device for information processing
US10534425B2 (en) Processing method and device for saving power, mobile terminal and cloud server
CN103699408A (en) Software updating method and equipment
CN105227626A (en) Content pushing method and device and terminal
CN110266505A (en) A kind of method and apparatus managing session group
CN104023324A (en) Method and device of processing strange call number
CN105045928A (en) To-be-cleaned data display method and device and electronic equipment
CN106022108A (en) Synchronous management method and terminal device
CN103198252B (en) Device and method for the control information for managing the application program in portable terminal
CN106027683A (en) File download processing method and device
CN104063377A (en) Information processing method and electronic equipment using same
CN109298889A (en) A kind of method, startup advertisement update method and terminal device generating bootstrap
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN102300198B (en) Realize method and system and the mobile phone remote service centre of mobile phone remote service
CN114374614A (en) Network topology configuration method and device
CN113987289A (en) Comprehensive pipe rack management method and device based on knowledge graph
CN107332903A (en) Information popularization method and device and electronic equipment
CN114138401A (en) Container configuration method, device, equipment and medium based on artificial intelligence
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN111262737A (en) Port configuration management method and device, storage medium and terminal
CN104899247A (en) Information subscription method and system
CN111385167A (en) Network connection recovery method, device, computer device 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