CN104699551B - A kind of data reconstruction method and cloud server - Google Patents
A kind of data reconstruction method and cloud server Download PDFInfo
- Publication number
- CN104699551B CN104699551B CN201510081884.2A CN201510081884A CN104699551B CN 104699551 B CN104699551 B CN 104699551B CN 201510081884 A CN201510081884 A CN 201510081884A CN 104699551 B CN104699551 B CN 104699551B
- Authority
- CN
- China
- Prior art keywords
- data
- deleted
- delete operation
- label
- recovery request
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of data reconstruction method and cloud server, the data reconstruction method is applied to cloud server, the cloud server is connected at least one temperature control equipment, the described method includes: creation carries out the record of delete operation to the data that at least one described temperature control equipment generates in the process of running, the record includes the identification information of the temperature control equipment of the execution delete operation and the data that the delete operation is deleted;Data recovery request is received, the data recovery request is used for the data for restoring accidentally to delete;The data recovery request is parsed, obtaining the label carried in the data recovery request is the delete operation deleted;The label is extracted from the record as the delete operation of deletion;Restore and store the data that the label is deleted for the delete operation of deletion.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of data reconstruction methods and cloud server.
Background technique
With the development of electronic technology, occur more and more electronic equipments in people's daily life, such as: it is empty
Tune, television set, refrigerator etc..Air-conditioning can freeze and heat as a kind of room temperature adjustment equipment, provide for indoor user
Comfortable environment temperature, will be widely welcomed by user.
During user uses air-conditioning, air-conditioning can generate various data, such as: switching on and shutting down number, booting
Duration, refrigerating efficiency, heating efficiency etc..The needs of to meet maintenance and maintenance air-conditioning, need periodically to save each of air-conditioning generation
Item data.
But present inventor during inventive technique scheme, has found above-mentioned technology extremely in realizing the embodiment of the present invention
It has the following technical problems less:
In the prior art, all data that air-conditioning generates is generally held in the storage device of air-conditioning, once user is from sky
Data are deleted in the storage device of tune, then data can not be given for change, cannot provide reference to repair and maintaining air-conditioning.
Therefore, the prior art is during carrying out data storage to electronic equipment: air-conditioning produces
Raw data are irrecoverable after being deleted.
Summary of the invention
The embodiment of the present invention solves the prior art to electricity by providing a kind of data reconstruction method and cloud server
During sub- equipment carries out data storage, the data that existing air-conditioning generates technical problem irrecoverable after being deleted is real
Even if having showed user accidentally deletes data, the technical effect that the data accidentally deleted can be also recovered.
First aspect of the embodiment of the present invention provides a kind of data reconstruction method, is applied to cloud server, the cloud
Server is connected at least one temperature control equipment, which comprises
Create the note that the data that at least one described temperature control equipment generates in the process of running are carried out with delete operation
Record, the record include that the identification information for executing the temperature control equipment of the delete operation and the delete operation are deleted
Data;
Data recovery request is received, the data recovery request is used for the data for restoring accidentally to delete;
The data recovery request is parsed, obtaining the label carried in the data recovery request is to delete
Delete operation;
The label is extracted from the record as the delete operation of deletion;
Restore and store the data that the label is deleted for the delete operation of deletion;
Wherein, the data that the delete operation is deleted are each temperature tune at least one described temperature control equipment
It saves that equipment generates in the process of running and the cloud server is sent to by each temperature control equipment, taken by the cloud
The data of business device storage.
Second aspect of the embodiment of the present invention provides a kind of cloud server, the cloud server and at least one temperature
Adjustment equipment is connected, and the cloud server includes:
Creating unit carries out the data that at least one described temperature control equipment generates in the process of running for creating
The record of delete operation, the record include the identification information for executing the temperature control equipment of the delete operation and the deletion
Operate deleted data;
Receiving unit, recovery request, the data recovery request are used for the data for restoring accidentally to delete for receiving data;
Resolution unit is obtained and is carried in the data recovery request for parsing to the data recovery request
Labeled as the delete operation accidentally deleted;
Extraction unit, the delete operation deleted for extracting the label from the record;
Storage unit, the data that the delete operation deleted for restoring and storing the label is deleted.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Since in the embodiment of the present invention, cloud server creation produces at least one temperature control equipment in the process of running
Raw data carry out the record of delete operation, and the record includes the mark letter for executing the temperature control equipment of the delete operation
The data that breath and the delete operation are deleted;Data recovery request is received, the data recovery request is accidentally deleted for restoring
Data;The data recovery request is parsed, obtaining the label carried in the data recovery request is to delete
Delete operation;The label is extracted from the record as the delete operation of deletion;Restore and stores the label to delete
The data that the delete operation removed is deleted.
So the number that accidentally delete operation is deleted can be recovered according to the record of the delete operation of cloud server creation
According to.The prior art is solved during carrying out data storage to electronic equipment, the data that existing air-conditioning generates are deleted
Irrecoverable technical problem afterwards realizes and accidentally deletes data even if user, can also recover the data accidentally deleted
Technical effect.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, embodiment will be described below
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment.
Fig. 1 is the schematic diagram for the cloud platform architecture that data reconstruction method provided in an embodiment of the present invention is applicable in;
Fig. 2 is the flow chart of data reconstruction method provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of cloud server provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention solves the prior art to electricity by providing a kind of data reconstruction method and cloud server
During sub- equipment carries out data storage, the data that existing air-conditioning generates technical problem irrecoverable after being deleted is real
Even if having showed user accidentally deletes data, the technical effect that the data accidentally deleted can be also recovered.
Since in the embodiment of the present invention, cloud server creation produces at least one temperature control equipment in the process of running
Raw data carry out the record of delete operation, and the record includes the mark letter for executing the temperature control equipment of the delete operation
The data that breath and the delete operation are deleted;Data recovery request is received, the data recovery request is accidentally deleted for restoring
Data;The data recovery request is parsed, obtaining the label carried in the data recovery request is to delete
Delete operation;The label is extracted from the record as the delete operation of deletion;Restore and stores the label to delete
The data that the delete operation removed is deleted.
So the number that accidentally delete operation is deleted can be recovered according to the record of the delete operation of cloud server creation
According to.The prior art is solved during carrying out data storage to electronic equipment, the data that existing air-conditioning generates are deleted
Irrecoverable technical problem afterwards realizes and accidentally deletes data even if user, can also recover the data accidentally deleted
Technical effect.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes
System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein
Middle character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Detailed description of embodiments of the present invention with reference to the accompanying drawing.
Referring to FIG. 1, Fig. 1 is the signal for the cloud platform architecture that data reconstruction method provided in an embodiment of the present invention is applicable in
Figure.Cloud platform includes: at least one temperature control equipment 11 and the cloud being connected at least one temperature control equipment 11 clothes
Business device 12.Wherein, at least one temperature control equipment 11 can be air-conditioning.
Referring to FIG. 2, Fig. 2 is the flow chart of data reconstruction method provided in an embodiment of the present invention.Data reconstruction method packet
Include following steps:
Step 21: the data that creation generates at least one described temperature control equipment in the process of running carry out deletion behaviour
The record of work, the record include identification information and the delete operation institute for executing the temperature control equipment of the delete operation
The data of deletion;
Step 22: receiving data recovery request, the data recovery request is used for the data for restoring accidentally to delete;
Step 23: the data recovery request is parsed, obtain the label that is carried in the data recovery request be
The delete operation accidentally deleted;
Step 24: extracting the label from the record as the delete operation of deletion;
Step 25: restoring and store the data that the label is deleted for the delete operation of deletion.
In the embodiment of the present invention, cloud server is connected at least one temperature control equipment, at least one temperature is adjusted
After each temperature control equipment in equipment generates data in the process of running, it is initially stored in the storage dress of temperature control equipment
In setting, cloud server is then sent the data to, cloud server is stored after receiving data.
After user carries out delete operation to the data that temperature control equipment generates, temperature control equipment can be to delete operation
It is responded, deletes the data in the storage device of temperature control equipment.Temperature control equipment can send delete operation simultaneously
To cloud server, cloud server can record delete operation, including which temperature control equipment is delete operation be by
What data execute and that delete operation is deleted are.At least one temperature control equipment being connect with cloud server
In each temperature control equipment have identification information, temperature control equipment is marked and is identified convenient for cloud server.
It, can be to temperature when having the delete operation carried out because of operation error in the delete operation that user's discovery has carried out
It spends adjustment equipment and sends marking operation, temperature control equipment can respond marking operation, will carry out because of operation error
Delete operation labeled as accidentally delete operation.Temperature control equipment can send data recovery request to cloud server simultaneously, ask
Seek the data for restoring accidentally to delete.It carries in data recovery request labeled as the delete operation accidentally deleted.
In the embodiment of the present invention, for assuring data security, step 23 specifically includes the following steps:
Judge whether the data recovery request is legal, obtains judging result;
When the judging result, which is, is, executes step: the data recovery request being parsed, the data are obtained
The label carried in recovery request is the delete operation deleted.
After cloud server receives data recovery request, first determine whether data recovery request is legal.If data
Recovery request is legal, then parses to data recovery request;If data recovery request is illegal, ignore or abandon number
According to recovery request, data recovery request is not processed.Specifically, judging data recovery request, whether legal method is: cloud
Hold server with MD5 algorithm calculate transmission data recovery request it is corresponding verification and.
Under the premise of data recovery request is legal, cloud server can parse data recovery request, determine
Labeled as the delete operation accidentally deleted.Due to having recorded multiple delete operations in record, it is possible to extract mark from record
It is denoted as the delete operation accidentally deleted.Then the data that the delete operation for being labeled as accidentally deleting is deleted are obtained and are stored.
In the embodiment of the present invention, step 25 specifically has following two embodiment:
The first embodiment: the matched backup of delete operation with the label to delete is extracted from the record
Data store the Backup Data.
Second of embodiment: revocation executes the label as the delete operation of deletion, stores the label to delete
The not deleted data of the delete operation removed.
Specifically, cloud server has recorded multiple delete operations, and cloud server is parsed labeled as accidentally deletion
After delete operation, it can be extracted from record labeled as the matched Backup Data of delete operation accidentally deleted, then will back up number
According to storing.
If not stored label is the corresponding Backup Data of delete operation deleted in cloud server, can be deleted
Except the rollback of operation, revocation is executed labeled as the delete operation accidentally deleted, and then will not be deleted labeled as the delete operation accidentally deleted
Except successful data store.
In the embodiment of the present invention, while executing step 25 or later, following steps can also be performed:
The data that the label is deleted for the delete operation deleted are sent to the temperature for executing the delete operation
Adjustment equipment.
Specifically, on the one hand the data deleted labeled as the delete operation accidentally deleted are restored and are deposited by cloud server
Cloud server is stored up, on the other hand restores and store to execute quilt for the data deleted labeled as the delete operation accidentally deleted
Labeled as in the temperature control equipment for the delete operation accidentally deleted.In this way, user can use the data accidentally deleted, to maintenance
Tutorial message is provided with maintenance temperature control equipment.Even if user accidentally deletes the data of temperature control equipment in the process of running,
It can also be recovered by the record of cloud server, it is not necessary to which concern of data can not be given for change.Improve user experience.
Based on the same inventive concept, the embodiment of the invention also provides a kind of cloud server, cloud server at least
One temperature control equipment is connected.Referring to FIG. 3, Fig. 3 is the structural schematic diagram of cloud server provided in an embodiment of the present invention.
Cloud server includes:
Creating unit 31, for create the data that at least one described temperature control equipment is generated in the process of running into
The record of row delete operation, the record include executing the identification information of the temperature control equipment of the delete operation and described deleting
Except the deleted data of operation;
Receiving unit 32, recovery request, the data recovery request are used for the data for restoring accidentally to delete for receiving data;
Resolution unit 33 is obtained and is carried in the data recovery request for parsing to the data recovery request
Label be delete delete operation;
Extraction unit 34, the delete operation deleted for extracting the label from the record;
Storage unit 35, the data that the delete operation deleted for restoring and storing the label is deleted.
Optionally, the cloud server further include:
Judging unit, for judging whether the data recovery request is legal after the reception data recovery request,
Obtain judging result;
The resolution unit 33 is used for: when the judging result be when, execute step: to the data recovery request into
Row parsing, obtaining the label carried in the data recovery request is the delete operation deleted.
Optionally, the storage unit 35 is specifically used for:
It is extracted from the record with the label as the matched Backup Data of delete operation deleted, is stored described standby
Part data.
Optionally, the storage unit 35 is specifically used for:
Revocation executes the label as the delete operation of deletion, stores the label and does not delete for the delete operation deleted
Except successful data.
Optionally, the cloud server further include:
Transmission unit, in the recovery and storing the label as the data deleted of delete operation of deletion
Simultaneously or after, the data that the delete operation that the label is deleted is deleted are sent to the temperature for executing the delete operation
Spend adjustment equipment.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Since in the embodiment of the present invention, cloud server creation produces at least one temperature control equipment in the process of running
Raw data carry out the record of delete operation, and the record includes the mark letter for executing the temperature control equipment of the delete operation
The data that breath and the delete operation are deleted;Data recovery request is received, the data recovery request is accidentally deleted for restoring
Data;The data recovery request is parsed, obtaining the label carried in the data recovery request is to delete
Delete operation;The label is extracted from the record as the delete operation of deletion;Restore and stores the label to delete
The data that the delete operation removed is deleted.
So the number that accidentally delete operation is deleted can be recovered according to the record of the delete operation of cloud server creation
According to.The prior art is solved during carrying out data storage to electronic equipment, the data that existing air-conditioning generates are deleted
Irrecoverable technical problem afterwards realizes and accidentally deletes data even if user, can also recover the data accidentally deleted
Technical effect.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of data reconstruction method is applied to cloud server, the cloud server and at least one temperature control equipment
It is connected, which is characterized in that the described method includes:
Create the record that the data that at least one described temperature control equipment generates in the process of running are carried out with delete operation, institute
The data that the identification information and the delete operation for stating the temperature control equipment that record includes the execution delete operation are deleted;
Data recovery request is received, the data recovery request is used for the data for restoring accidentally to delete;
The data recovery request is parsed, obtaining the label carried in the data recovery request is the deletion deleted
Operation;
The label is extracted from the record as the delete operation of deletion;
Restore and store the data that the label is deleted for the delete operation of deletion;
The data that the label is deleted for the delete operation deleted, which are sent to, executes the delete operation accidentally deleted
Temperature control equipment;
Wherein, the data that the delete operation is deleted are that each temperature adjusting at least one described temperature control equipment is set
It is standby generating in the process of running and the cloud server is sent to by each temperature control equipment, by the cloud server
The data of storage.
2. the method as described in claim 1, which is characterized in that after the reception data recovery request, the method is also
Include:
Judge whether the data recovery request is legal, obtains judging result;
It when the judging result, which is, is, executes step: the data recovery request is parsed, obtain the data and restore
The label carried in request is the delete operation deleted.
3. the method as described in claim 1, which is characterized in that the recovery simultaneously stores the label as the deletion behaviour of deletion
Make deleted data, specifically:
Being extracted from the record with the label is the matched Backup Data of delete operation deleted, and stores the backup number
According to.
4. the method as described in claim 1, which is characterized in that the recovery simultaneously stores the label as the deletion behaviour of deletion
Make deleted data, specifically:
Revocation executes the label as the delete operation of deletion, stores the label and does not delete into for the delete operation deleted
The data of function.
5. a kind of cloud server, the cloud server is connected at least one temperature control equipment, which is characterized in that described
Cloud server includes:
Creating unit is deleted for creating the data generated in the process of running at least one described temperature control equipment
The record of operation, the record include the identification information for executing the temperature control equipment of the delete operation and the delete operation
The data deleted;
Receiving unit, recovery request, the data recovery request are used for the data for restoring accidentally to delete for receiving data;
Resolution unit obtains the label carried in the data recovery request for parsing to the data recovery request
For the delete operation accidentally deleted;
Extraction unit, the delete operation deleted for extracting the label from the record;
Storage unit, the data that the delete operation deleted for restoring and storing the label is deleted;
Transmission unit, the data that the delete operation for deleting the label is deleted, which are sent to, executes the accidentally deletion
Delete operation temperature control equipment.
6. cloud server as claimed in claim 5, which is characterized in that the cloud server further include:
Judging unit is obtained for judging whether the data recovery request is legal after the reception data recovery request
Judging result;
The resolution unit is used for: when the judging result, which is, is, being executed step: being solved to the data recovery request
Analysis, obtaining the label carried in the data recovery request is the delete operation deleted.
7. cloud server as claimed in claim 6, which is characterized in that the storage unit is specifically used for:
Being extracted from the record with the label is the matched Backup Data of delete operation deleted, and stores the backup number
According to.
8. cloud server as claimed in claim 7, which is characterized in that the storage unit is specifically used for:
Revocation executes the label as the delete operation of deletion, stores the label and does not delete into for the delete operation deleted
The data of function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510081884.2A CN104699551B (en) | 2015-02-15 | 2015-02-15 | A kind of data reconstruction method and cloud server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510081884.2A CN104699551B (en) | 2015-02-15 | 2015-02-15 | A kind of data reconstruction method and cloud server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104699551A CN104699551A (en) | 2015-06-10 |
CN104699551B true CN104699551B (en) | 2018-12-25 |
Family
ID=53346712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510081884.2A Active CN104699551B (en) | 2015-02-15 | 2015-02-15 | A kind of data reconstruction method and cloud server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104699551B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117314B (en) * | 2015-12-18 | 2021-04-16 | 福建随行软件有限公司 | Anti-misoperation data rapid recovery method and system |
CN110474800B (en) * | 2019-08-09 | 2022-01-11 | 北京直真科技股份有限公司 | Method for maintaining stability of resource data of transmission comprehensive network management system |
CN116340055B (en) * | 2023-03-28 | 2024-03-12 | 上海威固信息技术股份有限公司 | Data recovery method and system for solid state disk |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937377A (en) * | 2009-06-29 | 2011-01-05 | 百度在线网络技术(北京)有限公司 | Data recovery method and device |
CN103164432A (en) * | 2011-12-13 | 2013-06-19 | 联想(北京)有限公司 | Method of recovering mistakenly-deleted files and mobile terminal |
CN103455389A (en) * | 2012-06-04 | 2013-12-18 | 三星电子株式会社 | Method for contents backup and an electronic device thereof |
CN103473147A (en) * | 2012-06-06 | 2013-12-25 | 网秦无限(北京)科技有限公司 | Mobile terminal data recovery method and mobile terminal data recovery system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970616A (en) * | 2013-01-25 | 2014-08-06 | 鸿富锦精密工业(深圳)有限公司 | Data recovery system and method |
-
2015
- 2015-02-15 CN CN201510081884.2A patent/CN104699551B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101937377A (en) * | 2009-06-29 | 2011-01-05 | 百度在线网络技术(北京)有限公司 | Data recovery method and device |
CN103164432A (en) * | 2011-12-13 | 2013-06-19 | 联想(北京)有限公司 | Method of recovering mistakenly-deleted files and mobile terminal |
CN103455389A (en) * | 2012-06-04 | 2013-12-18 | 三星电子株式会社 | Method for contents backup and an electronic device thereof |
CN103473147A (en) * | 2012-06-06 | 2013-12-25 | 网秦无限(北京)科技有限公司 | Mobile terminal data recovery method and mobile terminal data recovery system |
Also Published As
Publication number | Publication date |
---|---|
CN104699551A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104601366B (en) | It is a kind of control, service node configuration service method and device | |
CN109739690B (en) | Backup method and related products | |
CN104484242B (en) | During a kind of Copy on write snapshot can breakpoint transmission method | |
CN100461708C (en) | Alarm synchronization method | |
CN104572845B (en) | Document distribution method, device, equipment and system | |
CN104699551B (en) | A kind of data reconstruction method and cloud server | |
CN105871955B (en) | A kind of processing method and server and client based on distributed file system | |
CN105162894B (en) | Device identification acquisition methods and device | |
CN105117382B (en) | Document cooperation method and device | |
CN103729280A (en) | High availability mechanism for virtual machine | |
CN104092740B (en) | Application data synchronous method and device | |
CN104901983B (en) | A kind of information synchronization method, apparatus and system | |
CN105893173A (en) | Caching data processing method and device | |
CN109144785A (en) | Method and apparatus for Backup Data | |
CN104899161B (en) | A kind of caching method of the continuous data protection based on cloud storage environment | |
CN111601304A (en) | Method for generating unique identification code of mobile terminal equipment for controlling security risk | |
CN106603711A (en) | Communication method and system and message server | |
CN110737545A (en) | data processing method, device, electronic equipment and storage medium | |
CN105306581A (en) | Router and cloud disk based data synchronization method | |
CN102752371A (en) | Method for achieving splash on client side and client side | |
CN105302922A (en) | Realizing method for snapshot of distributed file system | |
CN104915252B (en) | A kind of process port management means and method | |
CN102457553A (en) | Off-line SaaS application software implementation method based on B/S mode | |
CN104699552B (en) | A kind of data reconstruction method and cloud server | |
CN105337772A (en) | System and method for backing up and restoring configuration of network equipment |
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 |