Control method and electronic equipment
Technical field
The present invention relates to the information processing technology more particularly to a kind of control method and electronic equipments.
Background technology
Currently, the most commonly used is data backup to one of way to manage of storage device in electronic equipment;Due to data
Backup expends the time, and needs periodic maintenance and update, so, the operating burden of user is increased, user experience is reduced.
Invention content
To solve existing technical problem, an embodiment of the present invention provides a kind of control method and electronic equipments.
What the technical solution of the embodiment of the present invention was realized in:
An embodiment of the present invention provides a kind of control methods, are applied to electronic equipment;It is provided with and deposits in the electronic equipment
Storage unit;The method includes:
Obtain the data information being stored in the storage unit;
Access frequency of the user to the data information in detection at preset time intervals;
Based on the access frequency, the data information is divided into the first data and the second data;First data are used
It is more than the data of first threshold in the access frequency of characterization user;The access frequency that second data are used to characterize user is less than
Equal to the data of the first threshold;
Back-up processing is carried out to first data using the first strategy, second data are carried out using the second strategy
Back-up processing.
The embodiment of the present invention additionally provides a kind of electronic equipment, and storage unit is provided in the electronic equipment;The electricity
Sub- equipment includes:
Acquiring unit, for obtaining the data information being stored in the storage unit;
Detection unit, for detect at preset time intervals interior user to the access frequency of the data information;
The data information is divided into the first data and the second data by processing unit for being based on the access frequency;Institute
State the data that the first data are more than first threshold for characterizing the access frequency of user;Second data are for characterizing user's
Access frequency is less than or equal to the data of the first threshold;
Control unit, for carrying out back-up processing to first data using the first strategy, using the second strategy to institute
It states the second data and carries out back-up processing.
Control method described in the embodiment of the present invention and electronic equipment, by obtaining the data information in storage unit, inspection
User is surveyed at preset time intervals to the access frequency of the data information, and is believed the data based on the access frequency
Breath is divided into the first data and the second data, and then controls the electronic equipment and carried out to first data using the first strategy
Back-up processing carries out back-up processing using the second strategy to second data, in this way, realizing according to the types of data i.e. the
One data and the second data, the purpose for carrying out differential-backup to data improve user targetedly to complete backup procedure
Experience;Simultaneously as above-mentioned backup procedure is not necessarily to user's operation, that is to say, that backup procedure is carried out manually without user, because
This, alleviates the operating burden of user, and further the user experience is improved.
Description of the drawings
Fig. 1 is the implementation process schematic diagram one of control method of the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram two of control method of the embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram three of control method of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram one of electronic equipment of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram two of electronic equipment of the embodiment of the present invention.
Specific implementation mode
The basic thought of the embodiment of the present invention is:Electronic equipment obtains the data information being stored in itself storage unit;Institute
It states user in electronic equipment detection at preset time intervals and the access frequency is based on to the access frequency of the data information,
The data information is divided into the first data and the second data;The access frequency that first data are used to characterize user is more than the
The data of one threshold value;Second data are used to characterize data of the access frequency less than or equal to the first threshold of user;Institute
State electronic equipment using first strategy to first data carry out back-up processing, using second strategy to second data into
Row back-up processing;In this way, the data information is divided into two classes, i.e. the first data and the second number according to the access frequency of user
According to, and then use different strategies, i.e., the first strategy and the second strategy to cope with first data and second data into
Row back-up processing realizes the purpose of differential-backup, and above-mentioned backup procedure is not necessarily to user's operation, and the operation for reducing user is negative
Load, the user experience is improved.
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to the reality of the present invention
It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one
Fig. 1 is the implementation process schematic diagram one of control method of the embodiment of the present invention;The method is applied to electronic equipment, institute
It states and is provided with storage unit in electronic equipment;As shown in Figure 1, the method includes:
Step 101:Obtain the data information being stored in the storage unit;
Step 102:Access frequency of the user to the data information in detection at preset time intervals;
Step 103:Based on the access frequency, the data information is divided into the first data and the second data;Described
One data are used to characterize data of the access frequency more than first threshold of user;Second data are used to characterize the access of user
Frequency is less than or equal to the data of the first threshold;
Step 104:Back-up processing is carried out to first data using the first strategy, using the second strategy to described second
Data carry out back-up processing.
In the present embodiment, the electronic equipment can be specially desktop computer, laptop, tablet computer, server
Equal electronic equipments;The storage unit can be specially solid state disk.
In the present embodiment, first data can be specially dsc data, and second data can be specially cold data;
Specifically, the electronic equipment obtains the data information in the storage unit, and according to the user detected to the data
The data information is divided into two classes, i.e. dsc data and cold data by the access frequency of information, wherein the dsc data is to use
The data that family is often accessed, and the cold data is the data that user infrequently accesses, in this way, according to the access frequency of user
It determines backup policy corresponding with data, and then back-up processing is carried out to different data according to different backup policy, it is real
The differential-backup of existing data;Further, in this embodiment backup procedure therefore reduce user's without user's operation
Operating burden.
It will be understood by a person skilled in the art that a certain data in the data information are the first data or the second data
It is to be determined according to the access frequency of user, further, since the data type of the data information is according to access frequency
What rate was determined, so a certain data are the first data or the second data are not unalterable, that is to say, that the data
The data type of data can change according to the access frequency of user and be changed in information;So so that the control described in the present embodiment
Method processed can be according to the type of the access frequency dynamic adjusting data of user, and then the backup policy of dynamic adjusting data, into
One step meets the demand of user, and the user experience is improved.
Further, to save the memory space of storage unit in electronic equipment, the present embodiment is by data backup in other
It in electronic equipment, such as backs up in high in the clouds, and then saves the memory space of the storage unit, specifically, at the backup
Reason includes:The storage unit is established with server and is connected;Server is transferred data to, is completed at backup in the server
Reason.
In one embodiment, the server can be specially the corresponding server in high in the clouds;That is, when described
After the data information is divided into the first data and the second data by electronic equipment according to the access frequency of user, the electronics is set
It is standby using the first strategy by the first data transmission to server, to be completed to first data in the server
Back-up processing, correspondingly, using the second strategy by second data transmission to server, in the server to institute
It states the second data and completes back-up processing.
Here, first strategy is different from second strategy, and first strategy and second strategy are bases
Different time intervals carries out back-up processing to data.
It is worth noting that, in the present embodiment, the execution sequence of step 101 and step 102 can exchange, that is to say, that
The electronic equipment can first detect user at preset time intervals and then obtain user again to the access frequency of data information
The data information accessed, and the data information is divided into the first data and the second data according to access frequency, and then will
The data information is classified, and is laid the foundation subsequently to carry out different back-up processings to data according to classification results.
In another specific embodiment, to enable the backup procedure of differential-backup to be perceived by the user, it is ensured that user's knows
Feelings are weighed, and are promoted the sense of participation of user, can be generated prompt message, prompt the user whether to be backed up by prompt message, in turn
Backup procedure is completed according to the user's operation based on prompt message;Specifically, the method further includes:
After the storage unit and the server, which are established, to be connected, triggers the electronic equipment and generate prompt message;
Receive the user's operation based on the prompt message;
Accordingly, described to transfer data to server, back-up processing is completed in the server, including:
The server is sent data to according to user's operation, back-up processing is completed in the server.
In this way, under conditions of alleviating the memory space of the electronic equipment, it is ensured that the right to know of user increases use
The sense of participation at family;Here, those skilled in the art will be seen that, in practical applications, above-mentioned to be backed up based on user's operation
Process with the presence or absence of can be user preset, that is to say, that user can be specifically set true according to user's operation to need
It is fixed whether to be backed up, it can also be specifically configured to determine whether to be backed up according to user's operation, namely work as and service
After device establishes connection, the electronic equipment automatically backs up different data according to different backup policy, in this way, making
The backup mode of oneself can be flexibly arranged in user, expanded the experience of user.
Thus it is possible, on the one hand, the embodiment of the present invention carries out the data information in storage unit according to the access frequency of user
Classification, that is, be divided into the first data and the second data, and then different data are taken with different backup policy, that is, uses first
Strategy carries out back-up processing to first data, carries out back-up processing to second data using the second strategy, realizes number
According to differential-backup, targetedly to complete backup procedure, the user experience is improved;On the other hand, due to above-mentioned backup
Process is not necessarily to user's operation, that is to say, that and backup procedure is carried out manually without user, therefore, alleviates the operating burden of user,
Further the user experience is improved.
Embodiment two
Fig. 2 is the implementation process schematic diagram two of control method of the embodiment of the present invention;The method is applied to electronic equipment, institute
It states and is provided with storage unit in electronic equipment;As shown in Fig. 2, the method includes:
Step 201:Obtain the data information being stored in the storage unit;
Step 202:Access frequency of the user to the data information in detection at preset time intervals;
Step 203:Based on the access frequency, the data information is divided into the first data and the second data;Described
One data are used to characterize data of the access frequency more than first threshold of user;Second data are used to characterize the access of user
Frequency is less than or equal to the data of the first threshold;
In the present embodiment, first strategy is different from second strategy, first strategy and second strategy
It is that back-up processing is carried out to data according to different time intervals.
Step 204:Back-up processing is carried out to first data according to first time interval, according to the second time interval pair
Second data carry out back-up processing;The first time interval is different from second time interval.
In the present embodiment, the electronic equipment can be specially desktop computer, laptop, tablet computer, server
Equal electronic equipments;The storage unit can be specially solid state disk.
In the present embodiment, first data can be specially dsc data, and second data can be specially cold data.
Here, the electronic equipment obtains the data information in the storage unit, and is believed the data according to the user detected
The data information is divided into two classes, i.e. dsc data and cold data by the access frequency of breath, wherein the dsc data is user
The data being often accessed, and the cold data is the data that user infrequently accesses, in turn, according to first time interval to institute
It states dsc data and carries out back-up processing, back-up processing is carried out to the cold data according to the second time interval;Between the first time
Every different from second time interval, specifically, the first time interval is less than second time interval, that is,
It says, dsc data is comparatively fast subjected to back-up processing, and to the slower carry out back-up processing of the cold data being not frequently used, in this way, can
Dsc data is subjected to back-up processing in real time to realize, and cold data periodically carries out the purpose of back-up processing so that the electricity
Sub- equipment shortens BACKUP TIME, also the user experience is improved without being carried out at the same time backup to all data;Further,
Therefore backup procedure in the present embodiment reduces the operating burden of user without user's operation.
It will be understood by a person skilled in the art that a certain data in the data information are the first data or the second data
It is to be determined according to the access frequency of user, further, since the data type of the data information is according to access frequency
What rate was determined, so a certain data are the first data or the second data are not unalterable, that is to say, that the data
The data type of data can change according to the access frequency of user and be changed in information;So so that the control described in the present embodiment
Method processed can be according to the type of the access frequency dynamic adjusting data of user, and then the backup policy of dynamic adjusting data, into
One step meets the demand of user, and the user experience is improved.
Further, to save the memory space of storage unit in electronic equipment, the present embodiment is by data backup in other
It in electronic equipment, such as backs up in high in the clouds, and then saves the memory space of the storage unit, specifically, at the backup
Reason includes:The storage unit is established with server and is connected;Server is transferred data to, is completed at backup in the server
Reason;Specifically, first data are synchronized in the server using the first strategy, it is standby to be carried out to first data
Part processing;Correspondingly, second data are synchronized in the server using the second strategy, with to second data into
Row back-up processing.
In one embodiment, the server can be specially the corresponding server in high in the clouds;That is, when described
After the data information is divided into the first data and the second data by electronic equipment according to the access frequency of user, the electronics is set
It is standby using the first strategy by the first data transmission to server, to be carried out to first data in the server
Back-up processing, correspondingly, using the second strategy by second data transmission to server, in the server to institute
It states the second data and carries out back-up processing, to complete back-up processing.Here, since first strategy and second strategy are roots
Back-up processing is carried out to data according to different time intervals, therefore, above-mentioned backup procedure can also be specially:When according to first
Between interval by the first data transmission to server, to be carried out at backup to first data in the server
Reason, correspondingly, according to the second time interval by second data transmission to server, in the server to described
Second data carry out back-up processing, complete backup procedure.
It is worth noting that, in the present embodiment, the execution sequence of step 201 and step 202 can exchange, that is to say, that
The electronic equipment can first detect user at preset time intervals and then obtain user again to the access frequency of data information
The data information accessed, and the data information is divided into the first data and the second data according to access frequency, and then will
The data information is classified, and is laid the foundation subsequently to carry out different back-up processings to data according to classification results.
In another specific embodiment, to enable the backup procedure of differential-backup to be perceived by the user, it is ensured that user's knows
Feelings are weighed, and are promoted the sense of participation of user, can be generated prompt message, prompt the user whether to be backed up by prompt message, in turn
Backup procedure is completed according to the user's operation based on prompt message;Specifically, the method further includes:
After the storage unit and the server, which are established, to be connected, triggers the electronic equipment and generate prompt message;
Receive the user's operation based on the prompt message;
Accordingly, described to transfer data to server, back-up processing is completed in the server, including:
The server is sent data to according to user's operation, back-up processing is completed in the server.
In this way, under conditions of alleviating the memory space of the electronic equipment, it is ensured that the right to know of user increases use
The sense of participation at family;Here, those skilled in the art will be seen that, in practical applications, above-mentioned to be backed up based on user's operation
Process with the presence or absence of can be user preset, that is to say, that user can be specifically set true according to user's operation to need
It is fixed whether to be backed up, it can also be specifically configured to determine whether to be backed up according to user's operation, namely work as and service
After device establishes connection, the electronic equipment automatically backs up different data according to different backup policy, in this way, making
The backup mode of oneself can be flexibly arranged in user, expanded the experience of user.
In another specific embodiment, the first data described in the electronic equipment pre-acquiring, at this point, the electronic equipment can
To obtain first data from the local storage unit, first number can be yet obtained from the server
According in this way, the acquisition modes of first data are enriched, even if in the case of the electronic equipment cisco unity malfunction
User can be made to get first data.Similarly, second data can also be got from the server, herein
It repeats no more.
Thus it is possible, on the one hand, the embodiment of the present invention carries out the data information in storage unit according to the access frequency of user
Classification, that is, be divided into the first data and the second data, and then different data are taken with different backup policy, that is, uses first
Strategy carries out back-up processing to first data, carries out back-up processing to second data using the second strategy, realizes number
According to differential-backup, targetedly to complete backup procedure, the user experience is improved;On the other hand, due to above-mentioned backup
Process is not necessarily to user's operation, that is to say, that and backup procedure is carried out manually without user, therefore, alleviates the operating burden of user,
Further the user experience is improved.
Embodiment three
Based on the control method described in embodiment two, to ensure the first data in the server and the electronic equipment
Storage unit in data it is identical, as shown in figure 3, the method further includes:
Step 301:Judge whether are the first data in presently described storage unit and the first data in the server
It is identical;
Step 302:When judging result characterizes the first data in presently described storage unit and the in the server
When one data differ, the first data in the server are updated, so that the first data in the server and current institute
The first data stated in storage unit are identical.
This ensures that, the first data in the server are identical as the data in the storage unit, specifically, when
In the case that first data are dsc data, the embodiment of the present invention has ensured the backup procedure of dsc data, reduces dsc data
The problem of loss, the user experience is improved.
Example IV
Fig. 4 is the structural schematic diagram one of electronic equipment of the embodiment of the present invention;It is provided with storage unit in the electronic equipment;
As shown in figure 4, the electronic equipment includes:
Acquiring unit 41, for obtaining the data information being stored in the storage unit;
Detection unit 42, for detect at preset time intervals interior user to the access frequency of the data information;
The data information is divided into the first data and the second data by processing unit 43 for being based on the access frequency;
First data are used to characterize data of the access frequency more than first threshold of user;Second data are for characterizing user
Access frequency be less than or equal to the first threshold data;
Control unit 44 is right using the second strategy for carrying out back-up processing to first data using the first strategy
Second data carry out back-up processing.
In the present embodiment, described control unit 44 is additionally operable to control the storage unit and server foundation connection, transmission
Data complete back-up processing to server, in the server.
In the present embodiment, described control unit 44 is additionally operable to be synchronized to first data using the first strategy described
In server, to carry out back-up processing to first data;Second data are synchronized to by the clothes using the second strategy
It is engaged in device, to carry out back-up processing to second data.
In the present embodiment, described control unit 44 is additionally operable to carry out first data according to first time interval standby
Part processing carries out back-up processing according to the second time interval to second data;The first time interval is different from described
Second time interval.
In the present embodiment, the acquiring unit 41 is additionally operable to obtain first data from the server.
It will be appreciated by those skilled in the art that in the electronic equipment of the embodiment of the present invention each processing unit function, can join
Understand according to the associated description of aforementioned control method, each processing unit in the electronic equipment of the embodiment of the present invention can pass through realization
The analog circuit of function described in the embodiment of the present invention and realize, the function of executing described in the embodiment of the present invention can also be passed through
Operation of the software on intelligent terminal and realize.
Embodiment five
Fig. 5 is the structural schematic diagram two of electronic equipment of the embodiment of the present invention;It is provided with storage unit in the electronic equipment;
As shown in figure 5, the electronic equipment includes:
Acquiring unit 41, for obtaining the data information being stored in the storage unit;
Detection unit 42, for detect at preset time intervals interior user to the access frequency of the data information;
The data information is divided into the first data and the second data by processing unit 43 for being based on the access frequency;
First data are used to characterize data of the access frequency more than first threshold of user;Second data are for characterizing user
Access frequency be less than or equal to the first threshold data;
Control unit 44 is right using the second strategy for carrying out back-up processing to first data using the first strategy
Second data carry out back-up processing.
In the present embodiment, described control unit 44 is additionally operable to control the storage unit and server foundation connection, transmission
Data complete back-up processing to server, in the server.
In the present embodiment, described control unit 44 is additionally operable to be synchronized to first data using the first strategy described
In server, to carry out back-up processing to first data;Second data are synchronized to by the clothes using the second strategy
It is engaged in device, to carry out back-up processing to second data.
In the present embodiment, described control unit 44 is additionally operable to carry out first data according to first time interval standby
Part processing carries out back-up processing according to the second time interval to second data;The first time interval is different from described
Second time interval.
In the present embodiment, the acquiring unit 41 is additionally operable to obtain first data from the server.
In the present embodiment, the electronic equipment further includes:
Judging unit 45, for judging the first data in presently described storage unit and the first number in the server
According to whether identical;
Adjustment unit 46, for characterizing the first data in presently described storage unit and the server when judging result
In the first data when differing, update the first data in the server so that the first data in the server with
The first data in presently described storage unit are identical.
It will be appreciated by those skilled in the art that in the electronic equipment of the embodiment of the present invention each processing unit function, can join
Understand according to the associated description of aforementioned control method, each processing unit in the electronic equipment of the embodiment of the present invention can pass through realization
The analog circuit of function described in the embodiment of the present invention and realize, the function of executing described in the embodiment of the present invention can also be passed through
Operation of the software on intelligent terminal and realize.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as:Multiple units or component can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
It can be the INDIRECT COUPLING by some interfaces, equipment or unit to divide mutual coupling or direct-coupling or communication connection
Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be and be physically separated, aobvious as unit
The component shown can be or may not be physical unit, you can be located at a place, may be distributed over multiple network lists
In member;Some or all of wherein unit can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be each unit individually as a unit;It is above-mentioned
The form that hardware had both may be used in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:It is movable storage device, read-only
Memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes:Movable storage device, read-only memory (ROM, Read Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.