CN105224421B - Data backup method and device and electronic equipment - Google Patents
Data backup method and device and electronic equipment Download PDFInfo
- Publication number
- CN105224421B CN105224421B CN201510675610.6A CN201510675610A CN105224421B CN 105224421 B CN105224421 B CN 105224421B CN 201510675610 A CN201510675610 A CN 201510675610A CN 105224421 B CN105224421 B CN 105224421B
- 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.)
- Active
Links
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
Technical field
The present invention relates to Internet technical field, more particularly to a kind of data back up method, device and electronic equipment.
Background technology
With the fast development of hardware technology, the performance of various terminals used by a user is stronger and stronger, can support
Application it is more and more.For user in its terminal is used during mounted application, various applications can generate mass data,
Therefore, the data that terminal needs store are more, such as:Photo, video, address list, short message etc..
Although the performance of user institute using terminal is stronger and stronger, the storage resource of terminal is increasingly abundanter, terminal
Storage resource be limited after all, as the data that above-mentioned needs store are more and more, remaining available storage is empty in terminal
Between can normal use less and less or even that terminal can be influenced.
In view of the foregoing, user would generally release by way of by a part of data backup to the server in terminal
Put the storage resource of terminal.When in the prior art, to server backup data, general terminal directly exists the data for needing to back up
Relevant backup application program is sent to server in the state of opening.However, when terminal needs mass data being sent to service
During device, it is necessary to time it is longer, thus user needs time for waiting also longer.
The content of the invention
The embodiment of the invention discloses a kind of data back up method, device and electronic equipment, to reduce data backup when is used
Family needs the time waited.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of data back up method, the described method includes:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, by identified number to be backed up
According to being divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up are with front stage operation shape
The data to be backed up that state is sent to server, the backstage data to be backed up are to be sent with background operation state to the server
Data to be backed up;
The foreground data to be backed up are sent to the server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state.
In a specific embodiment of the present invention, described with described in foreground operating status to server transmission
After the data to be backed up of foreground, further include:
Displaying is for the prompt message of data backup progress.
In a specific embodiment of the present invention, the default data classifying rules, including:
Memory space will be occupied in identified data to be backed up and is more than the default data for storing threshold value, is divided into backstage
Data to be backed up;Or
Data importance grade in identified data to be backed up is less than to the data of default importance rate threshold value, is drawn
It is divided into backstage data to be backed up;Or
By the data that data type in identified data to be backed up is default data type, it is to be backed up to be divided into backstage
Data;
The history access probability of data in identified data to be backed up is less than to the data of default access probability threshold value,
It is divided into backstage data to be backed up.
In a specific embodiment of the present invention, the default data backstage sends condition, including:
Judge whether backstage data to be backed up are all sent to the server, if not all being sent to the clothes
Business device then judges to meet default data backstage transmission condition;Or
Whether current network is judged in upstate, if in upstate, judgement meets default data backstage
Transmission condition;Or
Judge whether terminal is in idle condition, if being in idle condition, judgement meets default data backstage and sends
Condition;Or
Judge whether the number for sending the backstage data failure to be backed up to the server with background operation state is big
In the default frequency of failure, if more than then judging to meet default data backstage transmission condition.
In a specific embodiment of the present invention, it is described foreground data to be backed up are all sent to it is described
After server, in the case of meeting default data backstage transmission condition, institute is sent to the server with background operation state
Backstage data to be backed up are stated, including:
After foreground data to be backed up are all sent to the server, judge whether after meeting default data
Platform sends condition;
If satisfied, the data to be backed up of the server are not sent in the definite backstage data to be backed up;
Sent with the background operation state to the server be not sent in the backstage data to be backed up it is described
The data to be backed up of server.
In a specific embodiment of the present invention, judge whether to meet default data backstage transmission condition described
Afterwards, further include:
If satisfied, the data to be backed up of the server are sent in the definite backstage data to be backed up;
Whether the data to be backed up for judging to be sent to the server in the data to be backed up of the backstage have been updated;
If being updated, updated according to updated data with background operation state stored in the server it is described after
The data to be backed up of the service have been sent in platform data to be backed up.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of data backup device, described device includes:
Data determining module, for determining data to be backed up;
Data categorization module, for being classified according to default data classifying rules to identified data to be backed up,
Identified data to be backed up are divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground is to be backed up
Data are the data to be backed up sent with foreground operating status to server, and the backstage data to be backed up are with running background shape
The data to be backed up that state is sent to the server;
First data transmission blocks, for sending the foreground number to be backed up to the server with foreground operating status
According to;
Second data transmission blocks, for after foreground data to be backed up are all sent to the server, expiring
It is to be backed up to the server transmission backstage with background operation state in the case of the default data backstage transmission condition of foot
Data.
In a specific embodiment of the present invention, the data backup device further includes:
Information display module, after sending data in first data transmission blocks, displaying is for data backup
The prompt message of progress.
In a specific embodiment of the present invention, the default data classifying rules, including:
Memory space will be occupied in identified data to be backed up and is more than the default data for storing threshold value, is divided into backstage
Data to be backed up;Or
Data importance grade in identified data to be backed up is less than to the data of default importance rate threshold value, is drawn
It is divided into backstage data to be backed up;Or
By the data that data type in identified data to be backed up is default data type, it is to be backed up to be divided into backstage
Data;
The history access probability of data in identified data to be backed up is less than to the data of default access probability threshold value,
It is divided into backstage data to be backed up.
In a specific embodiment of the present invention, the default data backstage sends condition, including:
Judge whether backstage data to be backed up are all sent to the server, if not all being sent to the clothes
Business device then judges to meet default data backstage transmission condition;Or
Whether current network is judged in upstate, if in upstate, judgement meets default data backstage
Transmission condition;Or
Judge whether terminal is in idle condition, if being in idle condition, judgement meets default data backstage and sends
Condition;Or
Judge whether the number for sending the backstage data failure to be backed up to the server with background operation state is big
In the default frequency of failure, if more than then judging to meet default data backstage transmission condition.
In a specific embodiment of the present invention, second data transmission blocks, including:
Condition judgment submodule is sent, for after foreground data to be backed up are all sent to the server,
Judge whether to meet default data backstage transmission condition;
First data determination sub-module, for the situation for being yes in the judging result of the transmission condition judgment submodule
Under, it determines not being sent to the data to be backed up of the server in the data to be backed up of the backstage;
Data sending submodule, for sending the backstage number to be backed up to the server with the background operation state
It is not sent to the data to be backed up of the server in.
In a specific embodiment of the present invention, second data transmission blocks further include:
Second data determination sub-module, for the situation for being yes in the judging result of the transmission condition judgment submodule
Under, it determines to be sent to the data to be backed up of the server in the data to be backed up of the backstage;
Data judging submodule, for judge to be sent in the data to be backed up of the backstage server treat it is standby
Whether part data have been updated;
Data update submodule, in the case of being in the judging result of the data judgment module, according to update
Data afterwards updated with background operation state be sent in the backstage data to be backed up stored in the server it is described
The data to be backed up of service.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of electronic equipment, the electronic equipment includes:Housing,
Processor, memory, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and deposits
Reservoir is set on circuit boards;Power circuit, for powering for each circuit or device of electronic equipment;Memory is used to store
Executable program code;Processor is run and executable program generation by reading the executable program code stored in memory
The corresponding program of code, for performing following steps:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, by identified number to be backed up
According to being divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up are with front stage operation shape
The data to be backed up that state is sent to server, the backstage data to be backed up are to be sent with background operation state to the server
Data to be backed up;
The foreground data to be backed up are sent to server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of storage medium, wherein, which is used to store
Application program, a kind of data back up method of the application program described in for the operationally execution embodiment of the present invention.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of application program, wherein, which is used to transport
A kind of data back up method described in the embodiment of the present invention is performed during row.
As seen from the above, in scheme provided in an embodiment of the present invention, after determining data to be backed up, according to default data point
Rule-like classifies to identified data to be backed up, is divided into foreground data to be backed up and backstage data to be backed up, first with
Front stage operation state sends above-mentioned foreground data to be backed up to server, and above-mentioned foreground data to be backed up are all being sent to clothes
It is engaged in after device, in the case of meeting default data backstage transmission condition, then backstage is sent to server with background operation state and is treated
Backup Data.Due to one of the only identified data to be backed up of the data sent with foreground operating status to server
It is waited when dividing, and data are sent to server with background operation state without user, so, application is provided in an embodiment of the present invention
When scheme carries out data backup, user needs the time waited when can reduce data backup.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the first flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 2 is second of flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 3 is the third flow diagram of data back up method provided in an embodiment of the present invention;
Fig. 4 is the first structure diagram of data backup device provided in an embodiment of the present invention;
Fig. 5 is second of structure diagram of data backup device provided in an embodiment of the present invention;
Fig. 6 is the third structure diagram of data backup device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment belongs to the scope of protection of the invention.
Fig. 1 is the first flow diagram of data back up method provided in an embodiment of the present invention, and this method includes:
S101:Determine data to be backed up.
It should be understood that diversified data can be stored in terminal, user can according to the types of these data,
Importance rate etc. determines whether to be backed up in server.
Specifically, data to be backed up can be the corresponding data of address list, image capture device acquisition image or regard
Frequency etc..
Wherein, can include in the corresponding data of address list:The corresponding text information of each contact person, each contact person couple
The image information answered, the corresponding incoming ring tone information of each contact person etc..
It should be noted that the application is simply illustrated exemplified by above-mentioned, data to be backed up and not only in practical application
It is limited to the corresponding data of address list, the image of image capture device acquisition or video etc..
Specifically, when determining data to be backed up, can be determined in a manner that user manually selects every time, it can also basis
User's pre-set information in setting option determines, furthermore it is also possible to determine to advise according to the Backup Data that developer sets
It then determines, the application is defined not to this.
S102:Classified according to default data classifying rules to identified data to be backed up, treated identified
Backup Data is divided into foreground data to be backed up and backstage data to be backed up.
Wherein, above-mentioned foreground data to be backed up are the data to be backed up sent with foreground operating status to server, above-mentioned
Data to be backed up are the data to be backed up sent with background operation state to server from the background.
Above-mentioned default data classifying rules can be with the relevant data classifying rules of many factors, for example, can be with
Be with data occupy the relevant data classifying rules of memory space, with the relevant data classifying rules of data importance grade,
Data classifying rules relevant with data type and the relevant data classifying rules of history access probability of data etc., this Shen
Please it is defined not to this.
Specifically, occupying, the transmission time that the big data of memory space need is long, and then needs the time of user's wait long,
Therefore, memory space can will be occupied in identified data to be backed up and is more than the default data for storing threshold value, after being divided into
Platform data to be backed up;
Specifically, for a user, the importance of the data stored in terminal is not the same, some data are once
Loss can not be recovered, and the importance rate of this kind of data is generally higher, therefore, can be by data in identified data to be backed up
Importance rate is less than the data of default importance rate threshold value, is divided into backstage data to be backed up, wherein, data it is important
Property grade can be that user sets according to the needs of itself, can also be operation maintenance personnel by count a large number of users use practise
Used etc. and analyze setting, the application is defined not to this, for example, can set each in the corresponding data of address list
The importance rate of the corresponding text information of contact person is higher, and the importance rate of the corresponding image information of each contact person compared with
It is low;
It specifically, can be by the data that data type in identified data to be backed up is default data type, division
For backstage data to be backed up;
Specifically, some in the data that terminal is stored are the higher data of user's access probability, and some are user's visits
Ask probability relatively low data, it is possible to understand that, slowly it can be backed up for the relatively low data of user's access probability, and
It is then preferentially backed up for the higher data of user's access probability, it therefore, can be by data in identified data to be backed up
History access probability 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 classifying rules, which can be combined, forms new data classifying rules, for example,
Data importance grade in identified data to be backed up is less than default importance rate threshold value and history access probability is small
In the data of default access probability threshold value, backstage data to be backed up are divided into, other situations are similar, no longer arrange one by one here
It lifts.
S103:Foreground data to be backed up are sent to server with foreground operating status.
S104:After foreground data to be backed up all are sent to server, meet default data backstage transmission condition
In the case of, backstage data to be backed up are sent to server with background operation state.
Those skilled in the art are it is understood that terminal sends the mistake of data with foreground operating status to server
The Cheng Zhonghui processor resource of occupied terminal, memory source, I/O resources etc. always, and with background operation state to server
Send data when, then can be sent when terminal is in idle condition, in this way, can not only reduce user wait when
Between, and be not easy to be caused by the various resources of data backup occupied terminal and cause terminal resource deficiency that can not run for a long time
The phenomenon that other application, occurs.
Specifically, above-mentioned default data backstage transmission condition can be one kind in following several situations:
Can judge whether backstage data to be backed up are all sent to server, if not all being sent to server,
Then judge to meet default data backstage transmission condition;
Can whether judge current network in upstate, if in upstate, judgement meets default number
Condition is sent according to backstage, preferably, can whether judge current WIFI network in upstate, if being in upstate,
Then judge to meet default data backstage transmission condition, so can Internet resources be accessed by mobile communications network in terminal
In the case of, help user's saving network flow expense;
Can judge whether terminal is in idle condition, if being in idle condition, after judgement meets default data
Platform sends condition;
May determine that the number for sending the backstage data failure to be backed up to the server with background operation state is
It is no to be more than the default frequency of failure, if more than then judging to meet default data backstage transmission condition, for example, default failure
Number can be:3 times, 4 times etc..
It should be noted that above-mentioned several situations can also be combined progress, for example, inwhole in backstage data to be backed up
It is sent to server and in the case that terminal is in idle condition, judgement meets default data backstage transmission condition, other feelings
Condition is similar, will not enumerate here.
As seen from the above, in scheme provided in this embodiment, after determining data to be backed up, according to default data classification gauge
Then classify to identified data to be backed up, foreground data to be backed up and backstage data to be backed up are divided into, first with foreground
Operating status sends above-mentioned foreground data to be backed up to server, and above-mentioned foreground data to be backed up are all being sent to server
Afterwards, in the case of meeting default data backstage transmission condition, then it is to be backed up to server transmission backstage with background operation state
Data.Due to being only a part for identified data to be backed up to the data that server is sent with foreground operating status, and
It is waited when sending data to server with background operation state without user, so, it is carried out using scheme provided in this embodiment
During data backup, user needs the time waited when can reduce data backup.
In a kind of optional realization method of the present invention, foreground number to be backed up is being sent to server with foreground operating status
According to afterwards, the prompt message for data backup progress can also be shown.
Specifically, due to background operation state to server send data when without user intervention, so, above-mentioned prompting
Information can be the prompt message that user data backup is prompted to complete.It is of course also possible to it is that prompting user has completed to be directed to
The prompt message of the backup of foreground data to be backed up.In addition, the number with Backup Data can also be included in above-mentioned prompt message
According to the relevant information of content, for example, the size of Backup Data, application for taking, being related to etc..
It should be noted that the content that the application does not include above-mentioned prompt message is defined.
In a specific embodiment of the present invention, referring to Fig. 2, second of flow for providing data back up method is shown
It is intended to, compared with previous embodiment, in the present embodiment, after foreground data to be backed up all are sent to server, meets pre-
If data backstage transmission condition in the case of, backstage data to be backed up are sent to server with background operation state, including:
S104A:After foreground data to be backed up all are sent to server, judge whether to meet default data backstage
Transmission condition if satisfied, performing S104B, otherwise, performs S104D.
It should be understood that the situation of terminal operating application is more complicated, possible present terminal meets default data backstage
Transmission condition, and because of situations such as the operation of other application, terminal no longer meets default data backstage and sends out after a period of time
Condition is sent, may need temporarily to stop to send data to be backed up to server with background operation state at this time, in view of the foregoing,
It is recommended that whether meet default data backstage transmission condition according to certain rule judgment, for example, according to default time interval
Judge whether to meet default data backstage transmission condition etc..
S104B:The data to be backed up of server are not sent in definite backstage data to be backed up.
S104C:It is sent with background operation state to server in the data to be backed up of backstage and is not sent to treating for server
Backup Data.
S104D:Terminate this flow.
As seen from the above, in scheme provided in this embodiment, judging to learn that currently meeting default data backstage sends
In the case of condition, first determine not being sent to the data to be backed up of server in the data to be backed up of backstage, and to transport from the background
Row state sends the data to be backed up that are not sent to server in above-mentioned backstage data to be backed up rather than again to server
By all data sendings to be backed up to server, it is seen that the time that data backup is carried out with background operation state can be saved.
After foreground data to be backed up all are sent to server, it may be treated quickly to server transmission backstage standby
Part data, it is also possible to backstage data to be backed up could be sent to server after a while, in addition, backstage data to be backed up are also
Server may be sent to several times, which kind of either above-mentioned situation is sending the mistake of backstage data to be backed up to server
Above-mentioned backstage data to be backed up may be updated in journey.
In view of the foregoing, in another specific implementation of the present invention, referring to Fig. 3, data backup side is provided
The third flow diagram of method compared with embodiment illustrated in fig. 2, in the present embodiment, judges whether to meet in S104A default
Data backstage transmission condition after, if meeting the default data backstage transmission condition, further include:
S104E:The data to be backed up of server have been sent in definite backstage data to be backed up.
S104F:Whether the data to be backed up for judging to be sent to server in the data to be backed up of backstage have been updated, if
It has been be updated that, perform S104G.
S104G:The backstage data to be backed up stored in server are updated with background operation state according to updated data
In be sent to the data to be backed up of service.
Specifically, the backstage data to be backed up stored in server are updated with background operation state according to updated data
In be sent to the data to be backed up of service, Ke Yishi:
It is changed in the backstage data to be backed up stored in server and sent out with background operation state according to updated data
It send to the data to be backed up of service, for example, the corresponding image information of a contact person in address list is revised as image by image A
B;
It is deleted in the backstage data to be backed up stored in server and sent out with background operation state according to updated data
Send to the data to be backed up of service, for example, deleting communication record in a contact person full detail.
As seen from the above, in scheme provided in this embodiment, judging that must meet default data backstage sends condition
In the case of, whether the data to be backed up for determining whether to be sent to server in the data to be backed up of backstage have been updated, if
It has been be updated that, updated in the backstage data to be backed up stored in server and sent out with background operation state according to updated data
It send to the data to be backed up of service.It can be seen that when application scheme provided in this embodiment carries out data backup, can ensure to complete
What is stored during the data to be backed up of backup backstage in server is the 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.
Fig. 4 is the first structure diagram of data backup device provided in an embodiment of the present invention, which includes:
Data determining module 401, for determining data to be backed up;
Data categorization module 402, for being divided according to default data classifying rules identified data to be backed up
Identified data to be backed up are divided into foreground data to be backed up and backstage data to be backed up by class, wherein, the foreground is treated standby
Part data are the data to be backed up sent with foreground operating status to server, and the backstage data to be backed up are with running background
The data to be backed up that state is sent to the server;
First data transmission blocks 403, it is to be backed up for sending the foreground to the server with foreground operating status
Data;
Second data transmission blocks 404, for after foreground data to be backed up are all sent to the server,
In the case of meeting default data backstage transmission condition, with background operation state to the server send the backstage treat it is standby
Part data.
Optionally, the default data classifying rules can include:
Memory space will be occupied in identified data to be backed up and is more than the default data for storing threshold value, is divided into backstage
Data to be backed up;Or
Data importance grade in identified data to be backed up is less than to the data of default importance rate threshold value, is drawn
It is divided into backstage data to be backed up;Or
By the data that data type in identified data to be backed up is default data type, it is to be backed up to be divided into backstage
Data;
The history access probability of data in identified data to be backed up is less than to the data of default access probability threshold value,
It is divided into backstage data to be backed up.
Optionally, the default data backstage transmission condition can include:
Judge whether backstage data to be backed up are all sent to the server, if not all being sent to the clothes
Business device then judges to meet default data backstage transmission condition;Or
Whether current network is judged in upstate, if in upstate, judgement meets default data backstage
Transmission condition;Or
Judge whether terminal is in idle condition, if being in idle condition, judgement meets default data backstage and sends
Condition;Or
Judge whether the number for sending the backstage data failure to be backed up to the server with background operation state is big
In the default frequency of failure, if more than then judging to meet default data backstage transmission condition.
As seen from the above, in scheme provided in this embodiment, after determining data to be backed up, according to default data classification gauge
Then classify to identified data to be backed up, foreground data to be backed up and backstage data to be backed up are divided into, first with foreground
Operating status sends above-mentioned foreground data to be backed up to server, and above-mentioned foreground data to be backed up are all being sent to server
Afterwards, in the case of meeting default data backstage transmission condition, then it is to be backed up to server transmission backstage with background operation state
Data.Due to being only a part for identified data to be backed up to the data that server is sent with foreground operating status, and
It is waited when sending data to server with background operation state without user, so, it is carried out using scheme provided in this embodiment
During data backup, user needs the time waited when can reduce data backup.
In a kind of optional realization method of the present invention, above-mentioned data backup device can also include:
Information display module, after sending data in first data transmission blocks, displaying is for data backup
The prompt message of progress.
In a specific embodiment of the present invention, referring to Fig. 5, second of structure for providing data backup device is shown
It is intended to, compared with previous embodiment, in the present embodiment, second data transmission blocks 404, including:
Condition judgment submodule 4041 is sent, for foreground data to be backed up to be all sent to the server
Afterwards, judge whether to meet default data backstage transmission condition;
First data determination sub-module 4042, for being yes in the judging result of the transmission condition judgment submodule 4041
In the case of, it determines not being sent to the data to be backed up of the server in the data to be backed up of the backstage;
Data sending submodule 4043, it is standby for being treated with the background operation state to the server transmission backstage
The data to be backed up of the server are not sent in part data.
As seen from the above, in scheme provided in this embodiment, judging to learn that currently meeting default data backstage sends
In the case of condition, first determine not being sent to the data to be backed up of server in the data to be backed up of backstage, and to transport from the background
Row state sends the data to be backed up that are not sent to server in above-mentioned backstage data to be backed up rather than again to server
By all data sendings to be backed up to server, it is seen that the time that data backup is carried out with background operation state can be saved.
In another specific implementation of the present invention, referring to Fig. 6, the third structure of data backup device is provided
Schematic diagram, compared with embodiment illustrated in fig. 5, in the present embodiment, above-mentioned second data transmission blocks 404 further include:
Second data determination sub-module 4044, for the feelings for being yes in the judging result of the transmission condition judgment submodule
Under condition, determine to be sent to the data to be backed up of the server in the data to be backed up of the backstage;
Data judging submodule 4045, for judging to be sent to the server in the data to be backed up of the backstage
Whether data to be backed up have been updated;
Data update submodule 4046, in the case of being in the judging result of the data judgment module 4045,
It is updated in the backstage data to be backed up stored in the server and sent out with background operation state according to updated data
It send to the data to be backed up of the service.
As seen from the above, in scheme provided in this embodiment, judging that must meet default data backstage sends condition
In the case of, whether the data to be backed up for determining whether to be sent to server in the data to be backed up of backstage have been updated, if
It has been be updated that, updated in the backstage data to be backed up stored in server and sent out with background operation state according to updated data
It send to the data to be backed up of service.It can be seen that when application scheme provided in this embodiment carries out data backup, can ensure to complete
What is stored during the data to be backed up of backup backstage in server is the 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 electronics and sets
It is standby.
Fig. 7 is the structure diagram of a kind of electronic equipment provided in an embodiment of the present invention, which includes:Housing
701st, processor 702, memory 703, circuit board 704 and power circuit 705, wherein, circuit board 704 is placed in housing 701 and encloses
Into interior volume, processor 702 and memory 703 are arranged on circuit board 704;Power circuit 705, for for electronic equipment
Each circuit or device power supply;Memory 703 is used to store executable program code;Processor 702 is by reading memory
The executable program code stored in 703 runs program corresponding with executable program code, for performing following steps:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, by identified number to be backed up
According to being divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up are with front stage operation shape
The data to be backed up that state is sent to server, the backstage data to be backed up are to be sent with background operation state to the server
Data to be backed up;
The foreground data to be backed up are sent to server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state.
Processor 702 is to the specific implementation procedure and processor 702 of above-mentioned steps by running executable program code
The step of further execution, the description of Fig. 1-6 illustrated embodiments of the present invention may refer to, and details are not described herein.
The electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
It communicates as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the scope of personal computer, there is calculating and processing work(
Can, generally also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play multimedia content.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, security, scalability, manageability etc. are more demanding.
(5) other have the function of the electronic device of data interaction.
As seen from the above, in scheme provided in this embodiment, after determining data to be backed up, according to default data classification gauge
Then classify to identified data to be backed up, foreground data to be backed up and backstage data to be backed up are divided into, first with foreground
Operating status sends above-mentioned foreground data to be backed up to server, and above-mentioned foreground data to be backed up are all being sent to server
Afterwards, in the case of meeting default data backstage transmission condition, then it is to be backed up to server transmission backstage with background operation state
Data.Due to being only a part for identified data to be backed up to the data that server is sent with foreground operating status, and
It is waited when sending data to server with background operation state without user, so, it is carried out using scheme provided in this embodiment
During data backup, user needs the time waited when can reduce data backup.
The embodiment of the present invention additionally provides a kind of storage medium, wherein, which should answer for storing application program
It is used to perform data back up method provided in an embodiment of the present invention with program.Wherein, data back up method, including:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, by identified number to be backed up
According to being divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up are with front stage operation shape
The data to be backed up that state is sent to server, the backstage data to be backed up are to be sent with background operation state to the server
Data to be backed up;
The foreground data to be backed up are sent to server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state.
The embodiment of the present invention additionally provides a kind of application program, wherein, which is used to operationally perform this hair
The data back up method that bright embodiment provides.Wherein, data back up method, including:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, by identified number to be backed up
According to being divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up are with front stage operation shape
The data to be backed up that state is sent to server, the backstage data to be backed up are to be sent with background operation state to the server
Data to be backed up;
The foreground data to be backed up are sent to server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state.
For device, electronic equipment, storage medium and application program embodiment, since it is substantially similar to method reality
Example is applied, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in process, method, article or equipment including the element.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
Row system, device or equipment instruction fetch and the system executed instruction) it uses or combines these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
It puts.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art
Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function
Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modifications, equivalent replacements and improvements are made within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (11)
1. a kind of data back up method, which is characterized in that the described method includes:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, identified data to be backed up are drawn
Be divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up be with foreground operating status to
The data to be backed up that server is sent, the backstage data to be backed up are to be treated with background operation state to what the server was sent
Backup Data;
The foreground data to be backed up are sent to the server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send condition
In the case of, the backstage data to be backed up are sent to the server with background operation state;
It is described after foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state, including:
After foreground data to be backed up are all sent to the server, judge whether that meeting default data backstage sends out
Send condition;
If satisfied, the data to be backed up of the server are not sent in the definite backstage data to be backed up;
It is sent with the background operation state to the server in the backstage data to be backed up and is not sent to the service
The data to be backed up of device.
2. it according to the method described in claim 1, it is characterized in that, is sent described with foreground operating status to the server
After the foreground data to be backed up, further include:
Displaying is for the prompt message of data backup progress.
3. method according to claim 1 or 2, which is characterized in that the default data classifying rules, including:
Will in identified data to be backed up occupy memory space be more than it is default storage threshold value data, be divided into backstage treat it is standby
Part data;Or
Data importance grade in identified data to be backed up is less than to the data of default importance rate threshold value, is divided into
Data to be backed up from the background;Or
By the data that data type in identified data to be backed up is default data type, backstage number to be backed up is divided into
According to;
The history access probability of data in identified data to be backed up is less than to the data of default access probability threshold value, division
For backstage data to be backed up.
4. method according to claim 1 or 2, which is characterized in that the default data backstage sends condition, including:
Judge whether backstage data to be backed up are all sent to the server, if not all being sent to the service
Device then judges to meet default data backstage transmission condition;Or
Whether current network is judged in upstate, if in upstate, judgement meets default data backstage and sends
Condition;Or
Judge whether terminal is in idle condition, if being in idle condition, judgement meets default data backstage transmission condition;
Or
Whether the number for judging to send the backstage data failure to be backed up to the server with background operation state is more than in advance
If the frequency of failure, if more than, then judge meet default data backstage transmission condition.
5. according to the method described in claim 1, it is characterized in that, judge whether that meeting default data backstage sends described
After condition, further include:
If satisfied, the data to be backed up of the server are sent in the definite backstage data to be backed up;
Whether the data to be backed up for judging to be sent to the server in the data to be backed up of the backstage have been updated;
If being updated, the backstage stored in the server is updated with background operation state according to updated data and is treated
The data to be backed up of the service have been sent in Backup Data.
6. a kind of data backup device, which is characterized in that described device includes:
Data determining module, for determining data to be backed up;
Data categorization module, for being classified according to default data classifying rules to identified data to be backed up, by institute
Definite data to be backed up are divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up
For the data to be backed up sent with foreground operating status to server, the backstage data to be backed up be with background operation state to
The data to be backed up that the server is sent;
First data transmission blocks, for sending the foreground data to be backed up to the server with foreground operating status;
Second data transmission blocks, it is pre- for after foreground data to be backed up are all sent to the server, meeting
If data backstage transmission condition in the case of, the backstage number to be backed up is sent to the server with background operation state
According to;
Second data transmission blocks, including:
Condition judgment submodule is sent, for after foreground data to be backed up are all sent to the server, judging
Whether default data backstage transmission condition is met;
First data determination sub-module, in the case of in the judging result of the transmission condition judgment submodule to be, really
The data to be backed up of the server are not sent in the fixed backstage data to be backed up;
Data sending submodule, for being sent with the background operation state to the server in the backstage data to be backed up
The data to be backed up of the server are not sent to.
7. device according to claim 6, which is characterized in that described device further includes:
Information display module, after sending data in first data transmission blocks, displaying is for data backup progress
Prompt message.
8. the device according to claim 6 or 7, which is characterized in that the default data classifying rules, including:
Will in identified data to be backed up occupy memory space be more than it is default storage threshold value data, be divided into backstage treat it is standby
Part data;Or
Data importance grade in identified data to be backed up is less than to the data of default importance rate threshold value, is divided into
Data to be backed up from the background;Or
By the data that data type in identified data to be backed up is default data type, backstage number to be backed up is divided into
According to;
The history access probability of data in identified data to be backed up is less than to the data of default access probability threshold value, division
For backstage data to be backed up.
9. the device according to claim 6 or 7, which is characterized in that the default data backstage sends condition, including:
Judge whether backstage data to be backed up are all sent to the server, if not all being sent to the service
Device then judges to meet default data backstage transmission condition;Or
Whether current network is judged in upstate, if in upstate, judgement meets default data backstage and sends
Condition;Or
Judge whether terminal is in idle condition, if being in idle condition, judgement meets default data backstage transmission condition;
Or
Whether the number for judging to send the backstage data failure to be backed up to the server with background operation state is more than in advance
If the frequency of failure, if more than, then judge meet default data backstage transmission condition.
10. device according to claim 6, which is characterized in that second data transmission blocks further include:
Second data determination sub-module, in the case of in the judging result of the transmission condition judgment submodule to be, really
The data to be backed up of the server have been sent in the fixed backstage data to be backed up;
Data judging submodule, for judging to be sent to the number to be backed up of the server in the data to be backed up of the backstage
According to whether being updated;
Data update submodule, in the case of being in the judging result of the data judgment module, according to updated
Data, which are updated with background operation state in the backstage data to be backed up stored in the server, has been sent to the service
Data to be backed up.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes:Housing, processor, memory, circuit board and electricity
Source circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memory are set on circuit boards;Power supply
Circuit, for powering for each circuit or device of electronic equipment;Memory is used to store executable program code;Processor leads to
It crosses and reads in memory the executable program code that stores to run program corresponding with executable program code, for performing
Following steps:
Determine data to be backed up;
Classified according to default data classifying rules to identified data to be backed up, identified data to be backed up are drawn
Be divided into foreground data to be backed up and backstage data to be backed up, wherein, the foreground data to be backed up be with foreground operating status to
The data to be backed up that server is sent, the backstage data to be backed up are to be treated with background operation state to what the server was sent
Backup Data;
The foreground data to be backed up are sent to server with foreground operating status;
After foreground data to be backed up are all sent to the server, meet default data backstage and send condition
In the case of, the backstage data to be backed up are sent to the server with background operation state;
It is described after foreground data to be backed up are all sent to the server, meet default data backstage and send item
In the case of part, the backstage data to be backed up are sent to the server with background operation state, including:
After foreground data to be backed up are all sent to the server, judge whether that meeting default data backstage sends out
Send condition;
If satisfied, the data to be backed up of the server are not sent in the definite backstage data to be backed up;
It is sent with the background operation state to the server in the backstage data to be backed up and is not sent to the service
The data to be backed up of device.
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 CN105224421A (en) | 2016-01-06 |
CN105224421B true 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) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN106331372B (en) * | 2016-09-14 | 2018-01-23 | 广东欧珀移动通信有限公司 | Data transmission 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 |
CN115827324B (en) * | 2022-12-02 | 2023-12-22 | 人和数智科技有限公司 | Data backup method, network node and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1657642A1 (en) * | 2004-11-11 | 2006-05-17 | Siemens AG | Procedure for persistent storage of DHCP subscriber data |
-
2015
- 2015-10-19 CN CN201510675610.6A patent/CN105224421B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105224421A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224421B (en) | Data backup method and device and electronic equipment | |
CN102087615B (en) | Messages merger method and system in message queue | |
US20210389973A1 (en) | Electronic device and method for operating the same | |
US10534425B2 (en) | Processing method and device for saving power, mobile terminal and cloud server | |
US20170249934A1 (en) | Electronic device and method for operating the same | |
CN109587252A (en) | Loading method, device, electronic equipment and the storage medium of operator parameter | |
CN103984468A (en) | Method and device for information processing | |
CN104954233B (en) | Information-pushing method, device and system | |
CN108242837A (en) | The method of the charging of electronic equipment and control electronics | |
CN107995099A (en) | Friend recommendation method and device | |
CN110266505A (en) | A kind of method and apparatus managing session group | |
CN106296135A (en) | Event-prompting method, device and terminal | |
CN106411920A (en) | Data sharing method and device | |
CN104618223A (en) | Information recommendation management method, device and system | |
CN107613091A (en) | A kind of method and terminal for establishing communication | |
CN104267987B (en) | A kind of newer detection method of application APP, detection device and terminal | |
CN103763112A (en) | User identity protection method and apparatus | |
CN104023324A (en) | Method and device of processing strange call number | |
CN106528335A (en) | Data backup method and device and terminal | |
CN107038068B (en) | Terminal and application killing processing method thereof | |
CN107395494A (en) | A kind of information cuing method, terminal and computer-readable recording medium | |
CN105472118A (en) | Method and device for delaying information sending of terminal and mobile terminal | |
CN107690002A (en) | Communication means and device, system, computer installation and readable storage medium storing program for executing | |
CN103198252B (en) | Device and method for the control information for managing the application program in portable terminal | |
CN112486733B (en) | System restoration method, device, terminal 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 |