CN105893185A - Data backup method and device - Google Patents
Data backup method and device Download PDFInfo
- Publication number
- CN105893185A CN105893185A CN201610197148.8A CN201610197148A CN105893185A CN 105893185 A CN105893185 A CN 105893185A CN 201610197148 A CN201610197148 A CN 201610197148A CN 105893185 A CN105893185 A CN 105893185A
- Authority
- CN
- China
- Prior art keywords
- data
- terminal
- acceleration
- backup
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1461—Backup scheduling policy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a data backup method and device. The data backup method includes the steps that an acceleration acquisition instruction is received, the current acceleration of a terminal is acquired according to the acceleration acquisition instruction, then whether the terminal is in a fall state currently or not is determined according to the acceleration, and if it is determined that the terminal is in the fall state currently, data of the terminal is backed up. According to the scheme, the state of the terminal is judged through the acceleration of the terminal, the data in the terminal is automatically backed up when the terminal is in the fall state, and compared with the prior art, losses, caused by fall of the terminal, of user data can be effectively avoided.
Description
Technical field
The present invention relates to field of terminal technology, be specifically related to a kind of data back up method and device.
Background technology
Along with the fast development of terminal device, the terminal device such as mobile phone, panel computer is used widely.With
The various activities such as family can apply these terminal devices to communicate, amusement.
At present, manufacturer, in order to cater to consumer demand, increasingly emphasizes that what human-computer interaction interface brought regards
Feeling impact, as being made by the screen of mobile phone, increasing, touch-screen and display screen laminating be increasingly tighter, frame
More and more narrow, screen accounting is increasing.Along with the lifting of these performances of mobile terminal, price becomes more
Come the highest while, also become under impact effect is more and more fragile, relevant for shatter-resistant of mobile terminal
Protection becomes more and more important.
Mobile terminal is the terminal device that people use the most universal, the most all takes and takes with oneself, but due to not
Careful or use accidentally, terminal is often faced with the danger fallen, and terminal falls that to be likely to result in some afterwards hard
The damage of part, hardware often affects the program in terminal and data, and after these programs and corrupted data is
Cannot recover, the loss of data after therefore terminal is fallen, can be caused.
Summary of the invention
The embodiment of the present invention provides a kind of data back up method and device, can solve cause after terminal is fallen
The technical problem of loss of data.
The embodiment of the present invention provides a kind of data back up method, including:
Receive acceleration and obtain instruction;
Obtain instruction according to described acceleration and obtain the acceleration that terminal is current;
Determine the most described terminal is according to described acceleration and fall state;
If it is determined that described terminal is currently at and falls state, then the data of described terminal are backed up.
Further, the described step backing up the data of described terminal specifically includes:
Reception data acquisition instructs, and the instruction instruction of described data acquisition needs the target data and described of backup
The data storage areas at target data place;
From described data storage areas, described target data is obtained according to the instruction of described data acquisition;
Described target data is backed up.
Further, the described step backing up described target data specifically includes:
Backup reception data instructs, described data backup command instruction backup region;
According to described data backup command, described target data is stored to described backup region.
Further, the described step backing up described target data specifically includes:
Sending backup request to backup server, described backup request carries described target data, so that institute
State server according to described backup request, described target data to be backed up.
Further, after determining that described terminal is currently at and falls state, the data of described terminal are entered
Before row backup, described method also includes:
Obtain described terminal and be in the duration falling state;
Judge that whether described duration is more than preset duration;
The most then perform the step that the data of described terminal are backed up.
Further, described determine the most described terminal is according to described acceleration and fall the step of state
Suddenly specifically include:
Judge that whether described acceleration is more than or equal to acceleration of gravity;
If, it is determined that described terminal current state is for falling state;
If not, it is determined that described terminal current state is not for falling state.
The embodiment of the present invention additionally provides a kind of data backup device, including: receiver module, the first acquisition mould
Block, determine module and backup module;
Described receiver module, is used for receiving acceleration and obtains instruction;
Described first acquisition module, obtains, for obtaining instruction according to described acceleration, the acceleration that terminal is current
Degree;
Described determine module, fall shape for determining the most described terminal is according to described acceleration
State;
Described backup module, for when described determine that module is determined as time, the data of described terminal are carried out
Backup.
Further, described backup module specifically includes: receives submodule, obtain submodule and backup submodule
Block;
Described reception submodule, is used for receiving data acquisition instruction, and the instruction instruction of described data acquisition needs standby
The target data of part and the data storage areas at described target data place;
Described acquisition submodule, for obtaining from described data storage areas according to the instruction of described data acquisition
Described target data;
Described backup submodule, for backing up described target data.
Further, described device also includes: the second acquisition module and judge module;
Described, described second acquisition module, for determining that module determines that described terminal is currently at and falls state
Afterwards, before the data of described terminal are backed up by described backup module, obtain described terminal and be in and fall
The duration of state;
Described judge module, is used for judging that whether described duration is more than preset duration;
Described backup module, specifically for when described judge module is judged as YES, the data to described terminal
Back up.
Further, described determine that module specifically includes: judge submodule and determine submodule;
Described judgement submodule, is used for judging that whether described acceleration is more than or equal to acceleration of gravity;
Described determine submodule, for when described judgement submodule is judged as YES, determine that described terminal is current
State is for falling state;When described judgement submodule is judged as NO, determine that described terminal current state is not
Fall state.
First the embodiment of the present invention receives acceleration and obtains instruction, obtains instruction according to this acceleration and obtains terminal
According to acceleration, current acceleration, then determines the most whether terminal is in and falls state, however, it is determined that terminal
It is currently at and falls state, then the data of terminal are backed up;The program is sentenced by the acceleration of terminal
The state of disconnected terminal, and automatically the data in terminal are backed up, relatively when terminal is to fall state
For prior art, it is possible to effectively prevent terminal from causing the loss of user data after falling.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those skilled in the art, on the premise of not paying creative work, also
Other accompanying drawing can be obtained according to these accompanying drawings.
The schematic flow sheet of a kind of data back up method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of data back up method that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of a kind of data backup device that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the second data backup device that Fig. 4 provides for the embodiment of the present invention three;
The structural representation of the third data backup device that Fig. 5 provides for the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than
Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor
The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of data back up method and device.To be described in detail respectively below.
Embodiment one,
The present embodiment will be described from the angle of data backup device, and this data backup device specifically can collect
Becoming in the terminal, this terminal can be mobile internet device (such as smart mobile phone, panel computer), intelligence
Each class of electronic devices such as wearable device (such as intelligent watch).
Refer to the schematic flow sheet of the data back up method that Fig. 1, Fig. 1 provide for the embodiment of the present invention one, this
The data back up method of embodiment includes:
Step S101, receives acceleration and obtains instruction.
In embodiments of the present invention, this acceleration obtains the generating mode of instruction can be had multiple, the most permissible
Automatically generated by terminal system, or instruction etc. can be generated by user operation, wherein, with terminal
It is preferred embodiment that system automatically generates this instruction.
Optionally, the idiographic flow that step " receives acceleration and obtains instruction " may include that when default
Between section generate acceleration and obtain instruction, this instruction is for obtaining the acceleration of present terminal, such as, can
To arrange a timer, timer is set and generates acceleration acquisition instruction every 2s, wherein, between this time
Every being set according to the actual requirements, such as, constant duration can be set as 0.01s, 0.02s etc.
Deng.In order to terminal power can be saved, this time interval can be set as bigger value, such as 1s, 2s
Etc., this is not especially limited by the present invention.
Step S102, obtains instruction according to this acceleration and obtains the acceleration that terminal is current.
In embodiments of the present invention, the mode obtaining the current acceleration of terminal can have multiple, the most permissible
This acceleration value is obtained by arranging acceleration transducer in terminal.
Wherein, the position of acceleration transducer can be arranged according to actual conditions, such as: can be positioned over
The center of gravity of terminal, the edge of terminal can also be positioned over.Further, the quantity of acceleration transducer
Depending on can also be according to actual conditions, multiple acceleration transducer be i.e. set and be distributed evenly in terminal, with
Obtain acceleration value more accurately.
According to above-mentioned acceleration, step S103, determines the most whether terminal is in and falls state, the most then hold
Row step S104, if it is not, then return step S101.
Wherein, the acceleration in the embodiment of the present invention refers to the acceleration that terminal is under state of weightlessness, with
Distinguishing terminal follow user movement and the erroneous judgement situation that to be terminal fall (such as: user's carried terminal sits electricity
Ladder, acceleration and deceleration etc. during running).Therefore, after terminal gets current acceleration, step " according to
Above-mentioned acceleration determines the most whether terminal is in and falls state " can specifically include:
Judge whether current acceleration direction is downward, the most then judge the most whether terminal is in and fall shape
State, if it is not, then return step S101, continues to acceleration and obtains instruction
Specifically, if current acceleration direction is downward, acceleration rate threshold can be pre-set, according to upper
State the multilevel iudge terminal of acceleration and this acceleration rate threshold the most whether to be in and fall state, namely " judge
The most whether terminal is in is fallen state " step can specifically include:
Judge that whether the current acceleration of this terminal is more than or equal to acceleration rate threshold;
If, it is determined that terminal is in falls state.
Such as, pre-set acceleration rate threshold a, using as reference value and downward acceleration information b got
Compare, as b >=a, then judge that above-mentioned downward acceleration information meets above-mentioned default acceleration rate threshold,
Determine that terminal is for falling state;When b < during a, then judges that above-mentioned downward acceleration information is unsatisfactory for above-mentioned presetting
Acceleration rate threshold, determine that terminal is not for falling state.
In embodiments of the present invention, it is judged that whether terminal is in is fallen state and need by acceleration and acceleration
Threshold value contrasts, however in view of reality application in be not required to the acceleration every time got all with add
Threshold speed contrasts, and such as (is such as placed on table when terminal is in stable state within certain a period of time
On son), current acceleration can't change, and in this case, terminal avoids the need for currently adding
Velocity and acceleration threshold value contrasts, and the most in the present embodiment, is judging the current acceleration of this terminal
Whether before more than or equal to the step of acceleration rate threshold, the method can also include:
Obtain the acceleration of the terminal that the last time detects, and the acceleration of the terminal detected the last time is made
For history acceleration;
Determine according to current acceleration and history acceleration whether the current state of terminal changes, if so,
Then judge that whether the current acceleration of this terminal is more than or equal to acceleration rate threshold.
Wherein, above-mentioned determine whether the current state of terminal changes according to current acceleration and history acceleration
The step become can specifically include:
Judge that current acceleration is the most identical with above-mentioned history acceleration;
If, it is determined that the current state of terminal changes;If not, it is determined that the current state of terminal is not
Change.
Data in terminal are backed up by step S104.
Concrete, when determining terminal currently for falling state, the data in terminal " are backed up " by step
Idiographic flow may include that and obtain in terminal the target data needing backup, wherein, this target data can
Think the data message of user's sets itself according to the actual requirements, such as, by contact person's letter important in mobile phone
Breath, message registration, chat record, photo, the application information etc. of installation are set to target data,
Then above-mentioned target data is backed up, that is, the data in terminal " are backed up " permissible by step
Specifically include:
Obtain the target data needing backup in terminal;
Above-mentioned target data is backed up.
Further, before target data is backed up, can first determine for storing this target data
Storage device, wherein, this storage device can be that the high in the clouds corresponding with terminal is (as terminal use applies for
The network virtual storage that the server such as 360 cloud disks, Baidu's cloud disk provides), removable data card is (as conventional
The data storage cards such as SD card, TF card, or as SIM etc. possesses user's knowledge of certain data storage capacities
Not Ka), terminal built-in storage (such as tag memory) etc..
Preferably, it is contemplated that terminal system needs to bring in real time extra power consumption for acceleration transducer is powered,
So the present invention can also use an integrated switch in the system of terminal is arranged, end can be controlled by user
The opening and closing of end data backup functionality.
From the foregoing, it will be observed that the embodiment of the present invention uses receives acceleration acquisition instruction, obtain according to this acceleration and refer to
Order obtains the acceleration that terminal is current, then determines the most whether terminal is according to acceleration and falls state,
If it is determined that terminal is currently at falls state, then the data of terminal are backed up;The program is by terminal
Acceleration judges the state of terminal, and automatically carries out the data in terminal when terminal is to fall state
Backup, in terms of existing technologies, can effectively prevent terminal from causing the loss of user data after falling, make
Obtain terminal data can be protected in time, and terminal data backup procedure is simple, it is not necessary to user operation, intelligence
Degree can be changed higher.
Embodiment two,
The data back up method of the present invention will be made to be situated between further on the basis of embodiment one by the present embodiment
Continue, refer to Fig. 2, including:
Step S201, terminal receives acceleration and obtains instruction.
In embodiments of the present invention, generating an acceleration every one section of Preset Time and obtain instruction, this is preset
Time can be arranged by terminal system, it is also possible to by user's sets itself according to the actual requirements, such as, with
In the smart mobile phone at family, generating an acceleration every 0.5s and obtain instruction, this instruction is used for calling acceleration
Data in sensor.
Step S202, terminal obtains instruction according to this acceleration and obtains current acceleration.
Such as, after receiving acceleration and obtaining request, send acquisition to the acceleration transducer of terminal and add
The instruction of speed, obtains current adding according to this instruction in the data storage areas that acceleration transducer is corresponding
Speed.
Step S203, whether the above-mentioned acceleration of terminal judges more than or equal to acceleration of gravity, is the most then held
Row step S204, if it is not, then return step S201.
In actual applications, gravity acceleration g is often referred to Near Ground object and is acted on vacuum by terrestrial gravitation
The acceleration of middle whereabouts, for the ease of calculating, its approximate test value is usually taken to be 980cm/s2Or 9.8m/s2,
It is contemplated that acceleration of gravity can change according to objective factors such as height above sea level, dimension, atmospheric density
Become, a fixing value is the most only set and may make terminal judges mistake, such as in the place that height above sea level is higher,
Local acceleration of gravity can compare 9.8m/s2Less than normal, therefore, it can arrange a scope (such as 9.7
m/s2—9.9m/s2), it is judged that the value of current acceleration whether in the middle of this scope, if, it is determined that terminal
It is currently at and falls state, if not, it is determined that terminal is not currently in falls state, and returns step S201
Continue to acceleration and obtain instruction.
Step S204, terminal obtains and is in the duration falling state.
In embodiments of the present invention, it is contemplated that if terminal is fallen from lower, or user picks up terminal and enters
Row teetertotter (such as with " the shaking " of wechat) time, terminal do not have substantial damage so
Back up also without to user data, so in order to improve judge terminal as falling the accuracy of state,
Can be according to terminal and fall the duration of state and determine whether.
Wherein, acquisition terminal is in the method for the duration falling state can be had multiple, such as, permissible
Arranging a timer, the acceleration current when judgement terminal opens this timing more than or equal to acceleration of gravity
Device, during until terminal current acceleration is less than acceleration of gravity, wherein, obtains on this timer in real time
Duration be terminal and be currently at the duration falling state.
Step S205, the above-mentioned duration of terminal judges whether more than preset duration, the most then performs step
S206, if it is not, then return step S201.
Such as, the present embodiment can set a time threshold t, correspondingly, is judging that above-mentioned terminal is current
Acceleration more than or equal to acceleration of gravity time, determine whether that terminal is in the duration falling state
Whether t1 meets time threshold t, as t1 >=t, then judges that terminal is in and falls the duration of state and meet pre-
If duration, perform next step;When t1 < during t, then judge terminal be in fall state duration be discontented with
Foot preset duration, then return step S201 and continue to acceleration acquisition instruction.
Step S206, terminal receives data acquisition instruction.
In embodiments of the present invention, this data acquisition instruction instruction needs target data and this target of backup
The data storage areas at data place, wherein, this target data can be that user sets the most voluntarily
Fixed data message, such as, by associated person information important in mobile phone, message registration, chat record, photograph
Sheet, the application information etc. of installation are set to target data, and this data storage areas is this mesh of storage
The device of mark data, the rom (Read-Only Memory, read-only memory) of such as mobile phone.
Step S207, terminal obtains target data according to the instruction of above-mentioned data acquisition from data storage areas.
Optionally, can arrange data backup template the most in the terminal, user can be by this data backup
Stencil-chosen needs the data of automated back-up, when data backup device judge mobile terminal currently meet preset
During data backup condition, data backup device obtains automatically according to this data backup template from data storage areas
Take the target data needing backup on this mobile terminal.
Step S208, above-mentioned target data is backed up by terminal.
Concrete, the flow process that target data " is backed up " by step can specifically include: receives data standby
Part instruction, wherein, the instruction of this data backup command is for storing the backup region of this target data, the most eventually
The internal memory (such as tag memory) of end, removable data card are (such as data such as conventional SD card, TF cards
Storage card, or as SIM, 3G card etc. possess the Subscriber Identity Module of certain data storage capacities) etc., also
Target data " is backed up " and can specifically include by i.e. step:
Backup reception data instructs, data backup command instruction backup region;
According to data backup command, target data is stored to backup region.
In actual applications, it is contemplated that terminal is likely to be due to fall depositing of the damage causing hardware, such as terminal
Reservoir, removable data card etc. are all likely to result in damage, thus cause Backup Data to recover, to user
Making troubles, therefore, the present embodiment can also be on the basis of above-mentioned backup method, it would be desirable to the mesh of backup
Mark data back up on the server, can specifically wrap that is, target data " is backed up " by step
Include:
Sending backup request to backup server, backup request carries target data so that server according to
Target data is backed up by backup request.
In embodiments of the present invention, file can be set up the most on the server, such as obtain the mark of terminal
Knowledge information, sets up file on the server according to this identification information, when needs back up, by target data
Storing to this document folder, the terminal in the present embodiment can be entered by wired or wireless mode with server
Row connects, and does not limits.
In view of under emergency or emergency case, owing to the time is ofer short duration, can upload in the process
The data volume of data to be backed up to server is limited, therefore, it can carry out preferentially data to be backed up
Level sequence, this priority can be set by user according to actual conditions, such as by the contact person in mobile phone
Information is set to the first priority, photo is the second priority, application program installation list is third priority etc.,
Then backing up according to this prioritization result when backup, i.e. " server is according to backup request for step
Target data is backed up " may include that
Above-mentioned target data is carried out prioritization, to obtain ranking results;
According to this ranking results and backup request, target data is backed up.
From the foregoing, it will be observed that the embodiment of the present invention uses receives acceleration acquisition instruction, obtain according to this acceleration and refer to
Order obtains the acceleration that terminal is current, then determines the most whether terminal is according to acceleration and falls state,
If it is determined that terminal is currently at and falls state and being in and fall the duration of state more than preset duration, then
Receive data acquisition instruction and from data storage areas, obtain target data, then to this mesh according to this instruction
Mark data back up;The program judges the state of terminal by the acceleration of terminal, and in terminal is
Automatically the data in terminal are backed up when falling state, in terms of existing technologies, can effectively prevent
Terminal causes the loss of user data after falling, and backs up in terminal and server simultaneously so that
Terminal data can be protected and be further increased the security of user data in time, on the other hand, is somebody's turn to do
The implementation process of terminal data backup is simple, it is not necessary to user operation, intelligence degree is higher, brings to user
Preferably Consumer's Experience.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides for a kind of data backup device, this number
According to back-up device can integrated in the terminal, this terminal can be mobile internet device (as smart mobile phone,
Panel computer), each class of electronic devices such as Intelligent worn device (such as intelligent watch).As it is shown on figure 3, this number
May include that receiver module the 301, first acquisition module 302 according to back-up device, determine module 303 and backup
Module 304;
This receiver module 301, is used for receiving acceleration and obtains instruction.
Wherein, this acceleration obtains the generating mode of instruction can be had multiple, such as can pass through terminal system
Automatically generate, or instruction etc. can be generated by user operation.
This first acquisition module 302, obtains, for obtaining instruction according to acceleration, the acceleration that terminal is current.
Wherein, the mode obtaining the current acceleration of terminal can have multiple, such as, and the first acquisition module 302
After receiving acceleration and obtaining request, send the finger obtaining acceleration to the acceleration transducer of terminal
Order, obtains current acceleration according to this instruction in the data storage areas that acceleration transducer is corresponding.
This determines module 303, falls state for determining the most whether terminal is according to acceleration.
Concrete, acceleration rate threshold (such as acceleration of gravity) can be pre-set, this determines module 303
The most whether the multilevel iudge terminal according to current acceleration Yu this acceleration rate threshold is in is fallen state, if working as
Preacceleration is more than or equal to this acceleration rate threshold, then judge that terminal is currently at and fall state;If currently adding
Speed is less than this acceleration rate threshold, then judge that terminal is not currently in and fall state.
The data of terminal, for when determining that module 303 is determined as, are backed up by this backup module 304.
Such as in user mobile phone, backup module 304 by associated person information important in mobile phone, message registration,
Chat record, photo, the application information etc. of installation are set to target data, then to above-mentioned target
Data back up.
Preferably, as shown in Figure 4, the backup module 304 in the data backup device that the embodiment of the present invention provides
Can specifically include: receive submodule 3041, obtain submodule 3042 and backup submodule 3043;
This reception submodule 3041, is used for receiving data acquisition instruction, and the instruction instruction of above-mentioned data acquisition needs
The target data of backup and the data storage areas at target data place;
This acquisition submodule 3042, for obtaining number of targets according to data acquisition instruction from data storage areas
According to;
This backup submodule 3043, for backing up target data.
Above-mentioned determine that module 303 can specifically include: judge submodule 3031 and determine submodule 3032;
This judgement submodule 3031, is used for judging that whether acceleration is more than or equal to acceleration of gravity;
This determines submodule 3032, for when judging that submodule 3031 is judged as YES, determines the current shape of terminal
State is for falling state;When judging that submodule 3031 is judged as NO, determine that terminal current state is not for falling shape
State.
Preferably, as it is shown in figure 5, the data backup device that the embodiment of the present invention provides can also include: the
Two acquisition modules 305 and judge module 306;
This second acquisition module 305, for determine module 303 determine terminal be currently at fall state it
After, before the data of terminal are backed up by backup module 304, acquisition terminal is in falls continuing of state
Duration;
This judge module 306, is used for judging that whether above-mentioned duration is more than preset duration;
Backup module 304, specifically for when described judge module 306 is judged as YES, entering the data of terminal
Row backup.
From the foregoing, it will be observed that the embodiment of the present invention uses receiver module 301 to receive acceleration obtains instruction, first obtains
Delivery block 302 obtains instruction according to this acceleration and obtains the acceleration that terminal is current, then by determining module 303
Determine the most whether terminal is according to acceleration and fall state, however, it is determined that terminal is currently at falls state,
Then the data of terminal are backed up by backup module 304;The program judges terminal by the acceleration of terminal
State, and automatically the data in terminal are backed up when terminal is to fall state, relative to existing
For technology, can effectively prevent terminal from after falling, causing the loss of user data so that terminal data can and
Time protected, and terminal data backup procedure is simple, it is not necessary to user operation, intelligence degree is higher, has
Preferably Consumer's Experience.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out arbitrarily
Combination, realizes as same or several entities, and being embodied as of above modules can be found in above
Embodiment of the method, does not repeats them here.
It should be noted that one of ordinary skill in the art will appreciate that in the various methods of above-described embodiment
All or part of step can be by program and completes to instruct relevant hardware, and this program can be stored in
In computer-readable recording medium, as being stored in the memory of terminal, and by least one in this terminal
Processor performs, and can include the flow process of the embodiment such as information issuing method in the process of implementation.Wherein, deposit
Storage media may include that read-only storage (ROM, Read Only Memory), random access memory
(RAM, Random Access Memory), disk or CD etc..
A kind of data back up method and the device that there is provided the embodiment of the present invention above are described in detail, its
Each functional module can be integrated in one and process in chip, it is also possible to be that modules is individually physically present, also
Can be integrated in a module with two or more modules.Above-mentioned integrated module both can use hardware
Form realize, it would however also be possible to employ the form of software function module realizes.Specific case pair used herein
Principle and the embodiment of the present invention are set forth, and the explanation of above example is only intended to help to understand this
The method of invention and core concept thereof;Simultaneously for those skilled in the art, according to the thought of the present invention,
The most all will change, in sum, this specification content should not
It is interpreted as limitation of the present invention.
Claims (10)
1. a data back up method, it is characterised in that comprise the following steps:
Receive acceleration and obtain instruction;
Obtain instruction according to described acceleration and obtain the acceleration that terminal is current;
Determine the most described terminal is according to described acceleration and fall state;
If it is determined that described terminal is currently at and falls state, then the data of described terminal are backed up.
2. data back up method as claimed in claim 1, it is characterised in that the described number to described terminal
Specifically include according to the step carrying out backing up:
Reception data acquisition instructs, and the instruction instruction of described data acquisition needs the target data and described of backup
The data storage areas at target data place;
From described data storage areas, described target data is obtained according to the instruction of described data acquisition;
Described target data is backed up.
3. data back up method as claimed in claim 2, it is characterised in that described to described target data
The step carrying out backing up specifically includes:
Backup reception data instructs, described data backup command instruction backup region;
According to described data backup command, described target data is stored to described backup region.
4. data back up method as claimed in claim 2, it is characterised in that described to described target data
The step carrying out backing up specifically includes:
Sending backup request to backup server, described backup request carries described target data, so that institute
State server according to described backup request, described target data to be backed up.
5. data back up method as claimed in claim 1, it is characterised in that determining that described terminal is current
Being in after falling state, before backing up the data of described terminal, described method also includes:
Obtain described terminal and be in the duration falling state;
Judge that whether described duration is more than preset duration;
The most then perform the step that the data of described terminal are backed up.
6. data back up method as claimed in claim 1, it is characterised in that described according to described acceleration
Determine the most described terminal is in fall the step of state and specifically include:
Judge that whether described acceleration is more than or equal to acceleration of gravity;
If, it is determined that described terminal current state is for falling state;
If not, it is determined that described terminal current state is not for falling state.
7. a data backup device, it is characterised in that including: receiver module, the first acquisition module,
Determine module and backup module;
Described receiver module, is used for receiving acceleration and obtains instruction;
Described first acquisition module, obtains, for obtaining instruction according to described acceleration, the acceleration that terminal is current
Degree;
Described determine module, fall shape for determining the most described terminal is according to described acceleration
State;
Described backup module, for when described determine that module is determined as time, the data of described terminal are carried out
Backup.
8. data backup device as claimed in claim 7, it is characterised in that described backup module specifically wraps
Include: receive submodule, obtain submodule and backup submodule;
Described reception submodule, is used for receiving data acquisition instruction, and the instruction instruction of described data acquisition needs standby
The target data of part and the data storage areas at described target data place;
Described acquisition submodule, for obtaining from described data storage areas according to the instruction of described data acquisition
Described target data;
Described backup submodule, for backing up described target data.
9. data backup device as claimed in claim 7, it is characterised in that described device also includes: the
Two acquisition modules and judge module;
Described, described second acquisition module, for determining that module determines that described terminal is currently at and falls state
Afterwards, before the data of described terminal are backed up by described backup module, obtain described terminal and be in and fall
The duration of state;
Described judge module, is used for judging that whether described duration is more than preset duration;
Described backup module, specifically for when described judge module is judged as YES, the data to described terminal
Back up.
10. data backup device as claimed in claim 7, it is characterised in that described determine that module is concrete
Including: judge submodule and determine submodule;
Described judgement submodule, is used for judging that whether described acceleration is more than or equal to acceleration of gravity;
Described determine submodule, for when described judgement submodule is judged as YES, determine that described terminal is current
State is for falling state;When described judgement submodule is judged as NO, determine that described terminal current state is not
Fall state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610197148.8A CN105893185B (en) | 2016-03-31 | 2016-03-31 | A kind of data back up method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610197148.8A CN105893185B (en) | 2016-03-31 | 2016-03-31 | A kind of data back up method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105893185A true CN105893185A (en) | 2016-08-24 |
CN105893185B CN105893185B (en) | 2019-10-25 |
Family
ID=57011758
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610197148.8A Active CN105893185B (en) | 2016-03-31 | 2016-03-31 | A kind of data back up method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105893185B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453767A (en) * | 2016-09-06 | 2017-02-22 | 广东欧珀移动通信有限公司 | Method and device for detecting failure after dropping |
CN107145386A (en) * | 2017-04-28 | 2017-09-08 | 广东欧珀移动通信有限公司 | Data migration method, terminal device and computer-readable recording medium |
CN108418951A (en) * | 2018-01-30 | 2018-08-17 | 广东欧珀移动通信有限公司 | Electronic device, date storage method and Related product |
CN108833667A (en) * | 2018-04-27 | 2018-11-16 | 努比亚技术有限公司 | A kind of terminal shatter-resistant method, terminal and computer readable storage medium |
CN109413266A (en) * | 2018-09-29 | 2019-03-01 | 上海爱优威软件开发有限公司 | It is a kind of based on the data back up method and terminal that fall detection |
CN110138955A (en) * | 2019-01-29 | 2019-08-16 | 努比亚技术有限公司 | A kind of document protection method, terminal and computer readable storage medium |
CN111464854A (en) * | 2020-04-16 | 2020-07-28 | 深圳市华德安科技有限公司 | Fall data processing method, device and equipment and readable storage medium |
CN111917917A (en) * | 2020-06-29 | 2020-11-10 | 维沃移动通信有限公司 | File backup method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685324A (en) * | 2012-04-23 | 2012-09-19 | 华为终端有限公司 | Automatic data backup method and device |
CN102915264A (en) * | 2012-10-25 | 2013-02-06 | 北京小米科技有限责任公司 | Data protection method and device |
US20130080843A1 (en) * | 2011-09-23 | 2013-03-28 | Fujitsu Limited | Detecting Sensor Malfunctions Using Compression Analysis of Binary Decision Diagrams |
CN103428901A (en) * | 2012-05-15 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and data protection method thereof |
CN103679055A (en) * | 2012-09-18 | 2014-03-26 | 联想(北京)有限公司 | Information processing method, information processing device and electronic equipment |
CN104680091A (en) * | 2013-11-28 | 2015-06-03 | 英业达科技有限公司 | Mobile device protection system and method |
CN105245701A (en) * | 2015-09-25 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Data protection system and data protection method for mobile terminal |
-
2016
- 2016-03-31 CN CN201610197148.8A patent/CN105893185B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130080843A1 (en) * | 2011-09-23 | 2013-03-28 | Fujitsu Limited | Detecting Sensor Malfunctions Using Compression Analysis of Binary Decision Diagrams |
CN102685324A (en) * | 2012-04-23 | 2012-09-19 | 华为终端有限公司 | Automatic data backup method and device |
CN103428901A (en) * | 2012-05-15 | 2013-12-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and data protection method thereof |
CN103679055A (en) * | 2012-09-18 | 2014-03-26 | 联想(北京)有限公司 | Information processing method, information processing device and electronic equipment |
CN102915264A (en) * | 2012-10-25 | 2013-02-06 | 北京小米科技有限责任公司 | Data protection method and device |
CN104680091A (en) * | 2013-11-28 | 2015-06-03 | 英业达科技有限公司 | Mobile device protection system and method |
CN105245701A (en) * | 2015-09-25 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Data protection system and data protection method for mobile terminal |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453767A (en) * | 2016-09-06 | 2017-02-22 | 广东欧珀移动通信有限公司 | Method and device for detecting failure after dropping |
CN106453767B (en) * | 2016-09-06 | 2019-03-22 | Oppo广东移动通信有限公司 | Fall rear fault detection method and device |
CN107145386A (en) * | 2017-04-28 | 2017-09-08 | 广东欧珀移动通信有限公司 | Data migration method, terminal device and computer-readable recording medium |
CN108418951A (en) * | 2018-01-30 | 2018-08-17 | 广东欧珀移动通信有限公司 | Electronic device, date storage method and Related product |
CN108418951B (en) * | 2018-01-30 | 2021-04-09 | Oppo广东移动通信有限公司 | Electronic device, data storage method and related product |
CN108833667A (en) * | 2018-04-27 | 2018-11-16 | 努比亚技术有限公司 | A kind of terminal shatter-resistant method, terminal and computer readable storage medium |
CN109413266A (en) * | 2018-09-29 | 2019-03-01 | 上海爱优威软件开发有限公司 | It is a kind of based on the data back up method and terminal that fall detection |
CN110138955A (en) * | 2019-01-29 | 2019-08-16 | 努比亚技术有限公司 | A kind of document protection method, terminal and computer readable storage medium |
CN111464854A (en) * | 2020-04-16 | 2020-07-28 | 深圳市华德安科技有限公司 | Fall data processing method, device and equipment and readable storage medium |
CN111917917A (en) * | 2020-06-29 | 2020-11-10 | 维沃移动通信有限公司 | File backup method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105893185B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105893185A (en) | Data backup method and device | |
CN105245701A (en) | Data protection system and data protection method for mobile terminal | |
EP3531290B1 (en) | Data backup method, apparatus, electronic device, storage medium, and system | |
CN109697265B (en) | Page returning method and device | |
CN103019554A (en) | Command recognition method and electronic device using same | |
CN107729836A (en) | Face identification method and Related product | |
CN106164838A (en) | Method for information display and Message Display Terminal | |
KR20170084558A (en) | Electronic Device and Operating Method Thereof | |
EP3525101B1 (en) | Data backup method, apparatus, storage medium, and terminal | |
CN105843726A (en) | Terminal protection method and apparatus | |
CN108897996A (en) | Identification information correlating method and device, electronic equipment and storage medium | |
US20210342755A1 (en) | Verification of proof of work using computer vision and/or machine learning | |
CN108733797A (en) | Document handling method and relevant apparatus | |
CN110298161A (en) | Identity identifying method and electronic equipment applied to electronic equipment | |
US20120219181A1 (en) | Augmented reality-based file transfer method and file transfer system thereof | |
CN104883441A (en) | Antitheft method and mobile terminal | |
CN110909264A (en) | Information processing method, device, equipment and storage medium | |
CN105488678A (en) | Payment behavior information acquisition method and system | |
CN107918517B (en) | Screen rotation response method and device, mobile terminal and storage medium | |
CN104580731B (en) | Display methods, device and the mobile terminal of call interface | |
CN106959743B (en) | Control method and electronic equipment | |
CN108805512B (en) | Attendance information recording method, equipment and system thereof | |
CN110543432B (en) | Memory defragmentation method, device, terminal and storage medium | |
CN106295472A (en) | A kind of fingerprint pattern application process and device | |
EP2649834B1 (en) | Method and system for providing improved perpetrator imaging |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |