CN107402840A - The method and mobile terminal of data backup - Google Patents
The method and mobile terminal of data backup Download PDFInfo
- Publication number
- CN107402840A CN107402840A CN201610339262.XA CN201610339262A CN107402840A CN 107402840 A CN107402840 A CN 107402840A CN 201610339262 A CN201610339262 A CN 201610339262A CN 107402840 A CN107402840 A CN 107402840A
- Authority
- CN
- China
- Prior art keywords
- backed
- backup
- config file
- mobile terminal
- external memory
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
-
- 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/1456—Hardware arrangements for backup
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method of data backup, including:Detect and whether be connected with the external memory with OTG functions;When it is determined that being connected with the external memory with OTG functions, there is the external memory of OTG functions described in carry;The data backup for being backed up needs according to backed-up config file is described with the external memory of OTG functions.The embodiment of the present invention also discloses a kind of mobile terminal of data backup simultaneously.
Description
Technical field
The present invention relates to the data backup field of mobile terminal, more particularly to a kind of method of data backup and shifting
Dynamic terminal.
Background technology
As mobile terminal is increasingly popularized, dependence of the user for mobile terminal is also increasing, amusement,
The overwhelming majority is daily can all complete on mobile terminals for social, work etc., at the same time, on mobile terminal
User data also can be more and more huger, such as address list, short message, photo, music etc..
If the screen of mobile terminal, after damage, user can not view the content of current screen, and can not
Carry out any operation to the screen of mobile terminal, user just will recognize that mobile terminal is connected with computer by with
User data exports from mobile phone, but after mobile terminal is connected with computer, with media transmission protocol (Media
Transfer Protocol, mtp) pattern when being connected with computer, can only back up the internal virtual peace of the mobile terminal
Data in digital (Secure Digital, SD) card, such as the text such as the music of storage, photo, video
Part, the user data such as cards folder in the memory storage space of mobile terminal, short message can not be backed up;If
When mobile terminal is connected with USB (Universal Serial Bus, USB) charge mode with computer,
All user data can not all be backed up again so in mobile terminal;So, in the screen of mobile terminal
After damage, the user data in the memory storage space of mobile terminal can not be backed up, user is caused
Loss.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of method and mobile terminal of data backup, with
After the screen damage of mobile terminal, in the case that user can not operate, to the memory storage space of mobile terminal
In user data backed up, reduce user loss.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The present invention provides a kind of method of data backup, and methods described includes:
Detect and whether be connected with the external memory with OTG functions;
When it is determined that being connected with the external memory with OTG functions, there is OTG work(described in carry
The external memory of energy;
Described there is the external of OTG functions to deposit the data backup for needing to back up according to backed-up config file
In reservoir.
It is described to be had the data backup for needing to back up described according to backed-up config file in such scheme
In the external memory of OTG functions, including:
Parsing is stored in the first local backed-up config file;
Backup configuration information in first backed-up config file is by the data backup for needing to back up in institute
State in the external memory with OTG functions.
It is described to be had the data backup for needing to back up described according to backed-up config file in such scheme
In the external memory of OTG functions, including:
Parsing is stored in the second backed-up config file in the external memory with OTG functions;
Judge whether second backed-up config file meets backup condition, if second backed-up config file
Meet backup condition, then the backup configuration information in second backed-up config file will need what is backed up
Data backup is described with the external memory of OTG functions.
In such scheme, the parsing is stored in the external memory with OTG functions second standby
Part configuration file, including:
Whether the second backup configuration text is stored with the detection external memory with OTG functions
Part, if being stored with second backed-up config file in the external memory with OTG functions, solve
Analysis is stored in second backed-up config file in the external memory with OTG functions.
It is described to judge whether second backed-up config file meets backup condition in such scheme, including:
Judge user authentication information in second backed-up config file whether the facility information with local
Match somebody with somebody;
Wherein, the user authentication information in second backed-up config file includes at least one:Backup password,
Client's identification of the sequence number of mobile terminal, the International Mobile Station Equipment Identification IMEI of mobile terminal, mobile terminal
Module SIM, mobile terminal hardware address;The local facility information includes at least one:Back up close
Code, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM of mobile terminal, the hardware of mobile terminal
Address.
In such scheme, the user authentication information judged in second backed-up config file whether with
After local facility information matching, methods described also includes:
If the user authentication information in second backed-up config file matches with the local facility information,
The data backup that then the backup configuration information in second backed-up config file backs up needs is described
In external memory with OTG functions;
Wherein, the backup configuration information in second backed-up config file includes at least one:Backup switch
Information, port controlling information, data backup information, data backup precedence information, data backup progress letter
Breath.
The present invention also provides a kind of mobile terminal of data backup, it is characterised in that the mobile terminal includes:
Detection module, whether it is connected with the external memory with OTG functions for detecting;
Carry module, for when it is determined that being connected with the external memory with OTG functions, carry institute
State the external memory with OTG functions;
Processing module, for the data backup for needing to back up to be had into OTG described according to backed-up config file
In the external memory of function.
In such scheme, the processing module, it is additionally operable to parsing and is stored in the first local backed-up config file;
Backup configuration information in first backed-up config file is by the data backup for needing to back up in institute
State in the external memory with OTG functions.
In such scheme, the processing module, be additionally operable to parsing be stored in it is described external with OTG functions
The second backed-up config file in memory;
Judge whether second backed-up config file meets backup condition, if second backed-up config file
Meet backup condition, then the backup configuration information in second backed-up config file will need what is backed up
Data backup is described with the external memory of OTG functions.
In such scheme, the processing module, specifically for detecting the external storage with OTG functions
Whether second backed-up config file is stored with device, if in the external memory with OTG functions
Second backed-up config file is stored with, then parsing is stored in the external memory with OTG functions
In second backed-up config file.
In such scheme, the processing module, specifically for judging the use in second backed-up config file
Whether family authentication information matches with the facility information of local;
Wherein, the user authentication information in second backed-up config file includes at least one:Backup password,
Client's identification of the sequence number of mobile terminal, the International Mobile Station Equipment Identification IMEI of mobile terminal, mobile terminal
Module SIM, mobile terminal hardware address;The local facility information includes at least one:Back up close
Code, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM of mobile terminal, the hardware of mobile terminal
Address.
In such scheme, the processing module, if also particularly useful for the use in second backed-up config file
Family authentication information matches with the local facility information, then standby in second backed-up config file
Part configuration information is by the data backup for needing to back up described with the external memory of OTG functions;
Wherein, the backup configuration information in second backed-up config file includes at least one:Backup switch
Information, port controlling information, data backup information, data backup precedence information, data backup progress letter
Breath.
The method and mobile terminal of data backup provided in an embodiment of the present invention, by detection with having OTG work(
Whether the external memory of energy connects;When it is determined that being connected with the external memory with OTG functions,
There is the external memory of OTG functions described in carry;It is standby according to the data that backed-up config file backs up needs
Part is described with the external memory of OTG functions;After the screen damage of mobile terminal, user can not
In the case of operation, mobile terminal can be in external memory of the insertion with OTG functions, according to user
The good backed-up config file of configured in advance by local memory storage space in user data automated back-up to have
In the external memory for there are OTG functions, reduce the loss of user.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment of the method one of data backup of the present invention;
Fig. 2 is the flow chart of the embodiment of the method two of data backup of the present invention;
Fig. 3 is the flow chart of the embodiment of the method three of data backup of the present invention;
Fig. 4 is that the mobile phone side of the embodiment of the method three of data backup of the present invention configures the second backed-up config file
Flow chart;
Fig. 5 is that the computer side of the embodiment of the method three of data backup of the present invention is configured in the second backed-up config file
The flow chart of user authentication information;
Fig. 6 is that the computer side of the embodiment of the method three of data backup of the present invention is configured in the second backed-up config file
The flow chart of backup configuration information;
Fig. 7 is the flow of the Backup Data process of the mobile phone side of the embodiment of the method three of data backup of the present invention
Figure;
Fig. 8 is the structural representation of the mobile terminal of data backup of the present invention.
Embodiment
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 clear
Chu, it is fully described by.
The mobile terminal that the present invention relates to can include such as mobile phone, smart phone, notebook electricity
Brain, digit broadcasting receiver, personal digital assistant (PDA), tablet personal computer (PAD), portable more matchmakers
The mobile device of body player (PMP), guider etc.;, should if mobile terminal has operating system
Operating system can be UNIX, Linux, Windows, Mac OS X, Android (Android), Windows
Phone etc..
Fig. 1 is the flow chart of the embodiment of the method one of data backup of the present invention, as shown in figure 1, the present invention is real
The method for applying the data backup of example offer comprises the following steps:
Whether step 101, detection are connected with the external memory with OTG functions.
Whether mobile terminal detects is connected with the external memory with OTG functions;Wherein, OTG is
On-The-Go abbreviation, the connection being mainly used between a variety of equipment or mobile device, enters line number
According to exchange;Such as digital camera is directly connected on printer, by OTG technologies, two equipment rooms are connected
USB port, the photograph taken is printed immediately;Data in digital camera can also be passed through
OTG is sent on the mobile hard disk of USB interface, is user-friendly;The external memory can be bag
Include but be not limited to USB flash drive, USB mobile hard disks etc..
Step 102, when it is determined that being connected with the external memory with OTG functions, described in carry tool
There is the external memory of OTG functions.
Mobile terminal has when it is determined that being connected with the external memory with OTG functions described in carry
The external memory of OTG functions;If mobile terminal is it is determined that with described there is the external of OTG functions to deposit
When reservoir does not connect, then end task.
Step 103, according to backed-up config file it will need the data backup backed up that there is OTG functions described
External memory in.
Mobile terminal parses to the backed-up config file got, according to the backed-up config file parsed
In content instruction, it would be desirable to the automatic duplicating of data of backup is in the external storage with OTG functions
In device;Wherein, the backed-up config file can be stored in the local of mobile terminal well by user configuration in advance
In depositing, it may be alternatively stored in the external memory with OTG functions;
For example, all customer data on the mobile terminal is backed up in instruction in backed-up config file, then it is mobile whole
All customer data is all backed up in the external memory with OTG functions at end;In another example backup configuration
Document shows the user data that the address list backed up on the mobile terminal, short message, system are set, then moves
The user data backup that terminal sets address list, short message, system is in the external memory with OTG functions
In.
The method of data backup provided in an embodiment of the present invention, by detection with being deposited with the external of OTG functions
Whether reservoir connects;When it is determined that being connected with the external memory with OTG functions, tool described in carry
There is the external memory of OTG functions;According to backed-up config file by the data backup for needing to back up in the tool
In the external memory for having OTG functions;After the screen damage of mobile terminal, situation that user can not operate
Under, mobile terminal can be good according to user's configured in advance in external memory of the insertion with OTG functions
Backed-up config file by the user data automated back-up in the memory storage space of local to having OTG work(
In the external memory of energy, reduce the loss of user.
In order to more embody the purpose of the present invention, on the basis of above-described embodiment, further illustrate
It is bright.
Fig. 2 is the flow chart of the embodiment of the method two of data backup of the present invention;In embodiments of the present invention, it is standby
In the terminal, i.e., the first backed-up config file is stored in local to the storage of part configuration file;As shown in Fig. 2
Method provided in an embodiment of the present invention comprises the following steps:
Whether step 201, detection are connected with the external memory with OTG functions.
In embodiments of the present invention, mobile terminal can be the intelligent hand with Android Android operation system
Machine (abbreviation mobile phone);External memory with OTG functions can be that the USB with OTG functions dodges
Deposit driver (abbreviation USB flash disk).
The backup tool of mobile phone running background detects whether USB flash disk is connected with the data-interface of mobile phone in real time.
Step 202, when it is determined that being connected with the external memory with OTG functions, described in carry tool
There is the external memory of OTG functions.
Mobile phone with current USB flash disk when it is determined that be connected, the meeting carry current USB flash disk;If mobile phone determine not with
Current USB flash disk connection, then will not the carry current USB flash disk.
Step 203, parsing are stored in the first local backed-up config file.
The backup tool parsing of mobile phone running background is stored in the first backed-up config file in mobile phone, and this first
Backed-up config file can be set in advance by user, for example, user can be by backup switching information, port
Control information, data backup information, data backup precedence information, data backup progress msg etc. they its
In at least one of backup configuration information curriculum offering in ini file, the backup of the running background in mobile phone
Instrument parsing is stored in the ini file in mobile phone, obtains the content of the backup configuration information in ini file;Again
For example, user can be excellent by backup switching information, port controlling information, data backup information, data backup
The curriculum offering of their at least one backup configuration information therein such as first level information, data backup progress msg
In text document (bak.txt), the backup tool parsing of the running background in mobile phone is stored in mobile phone
Bak.txt, the content of the backup configuration information in bak.txt files is obtained, such as parse backup switching information
(bak=1), port controlling information (port=adb) etc..
Wherein, the backup switching information in first backed-up config file, it is used to determine whether that progress data are standby
Part;Port controlling information, it is used to determine whether to change the USB link type of the machine;Data backup information,
For determining which data backed up;Data backup precedence information, for determining the priority of data backup,
I.e. which data first backs up, which digital backup part;Data backup progress msg, for determining data backup
Progress, if because fortuitous event disconnects in way is backed up, for example, extracting USB flash disk, USB flash disk space not
It is enough, or during other situations, store current backup progress, continue to back up when user inserts USB flash disk next time.
The number that step 204, the backup configuration information in first backed-up config file back up needs
According to backup described with the external memory of OTG functions.
Backup configuration letter in first backed-up config file that the backup tool of mobile phone running background parses
After the content of breath, the description content according to corresponding to backup configuration information is by the data backup for needing to back up even
In the current USB flash disk connect;For example, the backup switching information parsed is bak=1, port controlling information is
Port=adb, mobile phone can enter automatically backup data state.
Step 205, data backup is showed by voice unit (VU) and/or display unit after data backup terminates
Progress.
The backup tool of mobile phone running background can pass through the loudspeaker on mobile phone after it is determined that data backup terminates
And/or indicator lamp shows data backup progress.
Whether the method for data backup provided in an embodiment of the present invention, mobile phone are connected by detecting with USB flash disk;
It is determined that when being connected with the USB flash disk, USB flash disk described in carry;Parsing is stored in the first local backed-up config file;
Backup configuration information in first backed-up config file is by the data backup for needing to back up in the U
In disk;Mobile phone screen damage after, in the case that user can not operate, mobile phone can when inserting USB flash disk,
According to user's configured in advance is good, the backed-up config file that is stored in mobile phone is by the memory storage space of local
In user data automated back-up into USB flash disk, reduce the loss of user.
Fig. 3 is the flow chart of the embodiment of the method three of data backup of the present invention;In embodiments of the present invention, it is standby
Part configuration file is stored in the external memory with OTG functions, i.e., the second backed-up config file is stored in
In external memory with OTG functions;As shown in figure 3, method provided in an embodiment of the present invention is included such as
Lower step:
Whether step 301, detection are connected with the external memory with OTG functions.
In embodiments of the present invention, mobile terminal can be the intelligent hand with Android Android operation system
Machine (abbreviation mobile phone);External memory with OTG functions can be that the USB with OTG functions dodges
Deposit driver (abbreviation USB flash disk).
The backup tool of mobile phone running background detects whether USB flash disk is connected with the data-interface of mobile phone in real time.
Step 302, when it is determined that being connected with the external memory with OTG functions, described in carry tool
There is the external memory of OTG functions.
Mobile phone with current USB flash disk when it is determined that be connected, the meeting carry current USB flash disk;If mobile phone determine not with
Current USB flash disk connection, then will not the carry current USB flash disk.
The second backup whether is stored with step 303, the detection external memory with OTG functions to match somebody with somebody
Put file.
The second backup configuration text whether is stored with the backup tool detection current USB flash disk of mobile phone running background
Part, if detecting in current USB flash disk without the second backed-up config file of storage, perform step 304;If inspection
Measure and the second backed-up config file is stored with current USB flash disk, then perform step 305;Wherein, the second backup
Configuration file includes user authentication information and backup configuration information, and second backed-up config file can be stored in
In the visible partition of the USB flash disk, it can also be stored in the invisible subregion of the USB flash disk.
Step 304, end task.
The backup tool of mobile phone running background terminates data backup task.
Step 305, parsing are stored in second backup in the external memory with OTG functions
Configuration file.
Specifically, the backup tool parsing of mobile phone running background is stored in the second backup configuration in current USB flash disk
File, obtain the user authentication information and backup configuration information in the second backed-up config file.
Step 306, judge whether the user authentication information in second backed-up config file sets with local
Standby information matches.
The backup tool of mobile phone running background judge user authentication information in the second backed-up config file whether with
Corresponding facility information matching in mobile phone, if it does not match, performing step 307;If it does, then
Perform step 308;
Wherein, the user authentication information in second backed-up config file includes at least one:Backup password,
The sequence number of mobile terminal, International Mobile Station Equipment Identification (the International Mobile of mobile terminal
Equipment Identity, IMEI), client identification module (the Subscriber Identity of mobile terminal
Module, SIM) block, the hardware address of mobile terminal;The local facility information includes at least one:
Backup password, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM card of mobile terminal, movement
The hardware address of terminal.
Need exist for illustrating, the full content of the user authentication information in only the second backed-up config file
Match with corresponding local facility information, can just be defined as matching;If the second backed-up config file
In some content of user authentication information match with corresponding local facility information, and it is other in
Hold and mismatched with corresponding local facility information, it is determined that to mismatch.
For example, the user authentication information in the second backed-up config file includes backup password and mobile phone
IMEI, the backup tool of mobile phone running background can judge backup password in the second backed-up config file whether with
Backup password match in the facility information of current phone, judges the mobile terminal in the second backed-up config file
IMEI whether matched with the IMEI of the mobile terminal in the facility information of current phone, only at the same time
Timing, the backup tool of mobile phone running background just can determine that the user authentication information in the second backed-up config file
Match with the facility information of current phone.
User is needed to leave user authentication information in mobile phone, such as backup is set in the backup tool of mobile phone
Password, when being configured with identical backup password in the configuration file in user's USB flash disk, can log-on data it is automatic
Backup functionality;Mobile phone must all create when in use logs in a unlatching mobile phone high in the clouds service account, the high in the clouds
Service can be used for the data in mobile phone for backing up user, can be used for the service such as certification user authentication information.
The judgment step whether to be matched by increasing user authentication information and facility information, improving user makes
With the security of Backup Data function, it is ensured that the data message of user arbitrarily will not be stolen by people.
For the more specifically understanding to the second backed-up config file of configuration, specifically illustrate herein,
Fig. 4 is that the mobile phone side of the embodiment of the method three of data backup of the present invention configures the flow of the second backed-up config file
Figure, as shown in figure 4, the method that mobile phone side configures the second backed-up config file may include steps of:
Step 4001, mobile phone log in cloud service account.
User logs in cloud server by the backup tool of mobile phone using user name.
Step 4002, mobile phone cryptographically upload the facility information of current phone to cloud server.
Mobile phone cryptographically uploads the facility information of current phone, the facility information bag of the mobile phone to server
Include but be not limited to the backup password of the backup tool of current phone, sequence number, IMEI, SIM card, hardware
Location etc..
Step 4003, cloud server receive and preserve the facility information of current phone.
Cloud server is received and preserves the facility information of current phone, and the facility information of current phone is carried out
Certification.
Step 4004, mobile phone receive notification message of the cloud server certification after.
Mobile phone receives notification message of the cloud server certification after, it has been determined that the facility information of current phone
It is stored in cloud server;Wherein, notification message of the certification after can cryptographically be stored in mobile phone
In, protect the data message of user.
Fig. 5 is that the computer side of the embodiment of the method three of data backup of the present invention is configured in the second backed-up config file
The flow chart of user authentication information, recognize as shown in figure 5, computer side configures user in the second backed-up config file
The method of card information may include steps of:
Step 5001, the backup tool of computer side log in Cloud Server.
User logs in cloud server by the backup tool use of computer with mobile phone identical user name.
Step 5002, cloud server authentication username and password.
The username and password that cloud server certification currently logs in and the username and password phase logged on mobile phone
Together.
Step 5003, the backup tool of computer input the facility information of mobile phone to be backed up to cloud server.
User inputs the facility information of mobile phone to be backed up by the backup tool of computer to cloud server, and this is treated
The facility information of backup mobile phone include but is not limited to the backup password of the backup tool of mobile phone, sequence number, IMEI,
SIM card, hardware address etc..
After step 5004, cloud server confirm that the facility information of mobile phone to be backed up is accurate, by the user of generation
Authentication information is sent into the backup tool of computer.
The equipment that cloud server confirms the mobile phone stored in the facility information and cloud server of mobile phone to be backed up
Information accurately generates user authentication information afterwards, afterwards sends the user authentication information of generation to the backup of computer
In instrument.
Fig. 6 is that the computer side of the embodiment of the method three of data backup of the present invention is configured in the second backed-up config file
The flow chart of backup configuration information, match somebody with somebody as shown in fig. 6, computer side configures to back up in the second backed-up config file
The method of confidence breath comprises the following steps:
Step 6001, the backup tool detection USB flash disk information of computer.
The backup tool of computer detects that USB flash disk access waits user to confirm, now needs to detect U disk file system
Whether system is FAT (including FAT16FAT32exFAT) system, if file system is not FAT systems,
Then prompting user's USB flash disk is not useable for backup, it is necessary to format or change USB flash disk.
The backup tool option and installment backup USB flash disk of step 6002, computer.
User confirms to need to back up and confirm to be ready for configuring after USB flash disk is available by the backup tool of computer
Backup configuration information.
Step 6003, the backup tool of computer confirm that user needs the mobile phone backed up.
The equipment that user needs to back up by the selection of the backup tool of computer, herein can be with for security consideration
Allow user oneself to input the facility information of mobile phone to be backed up, user can also be allowed to be selected.
The backup tool configuration backup configuration information of step 6004, computer.
User is included at least by the backup tool of computer come configuration backup configuration information, the backup configuration information
One:Backup switching information, port controlling information, data backup information, data backup precedence information,
Data backup progress msg;Wherein, backup switching information, it is used to determine whether to carry out data backup;Port
Control information, it is used to determine whether to change the USB link type of the machine;Data backup information, for determining
Which data backed up;Data backup precedence information, for determining the priority of data backup, i.e., which is counted
According to first backing up, which digital backup part;Data backup progress msg, for determining data backup progress, such as
Fruit in way is backed up because fortuitous event disconnects, for example, it is inadequate to extract USB flash disk, USB flash disk space, or its
During his situation, current backup progress is stored, continues to back up when user inserts USB flash disk next time.
Step 6005, the backup tool of computer write the second backed-up config file to USB flash disk.
The backup tool of computer is after user determines the backup configuration information content, by user authentication information and backup
Configuration information is combined into the second backed-up config file, and second backed-up config file is write in USB flash disk.
Step 307, end task.
The backup tool of mobile phone running background terminates Backup Data task.
The number that step 308, the backup configuration information in second backed-up config file back up needs
According to backup described with the external memory of OTG functions.
The backup tool of mobile phone running background is it is determined that the user authentication information in the second backed-up config file meets
After condition, confirm whether backup configuration information backup switch is unlatching in the second backed-up config file, if standby
Part switch then now ejects the countdown prompting frame for whether starting backup to open on the screen of mobile phone, if super
Spending the corresponding time does not detect response of the user on screen, then automatically starting backup data procedures.
Fig. 7 is the flow of the Backup Data process of the mobile phone side of the embodiment of the method three of data backup of the present invention
Figure, as shown in fig. 7, this method comprises the following steps:
Step 7001, detection port control information.
The backup tool detection port control information of mobile phone running background, user is opened according to port controlling information
The port opened is wanted, such as adb mouths or other USB link modes.
Step 7002, detection data backup information.
The backup tool detection data backup information of mobile phone running background, determines that user wants which data backed up.
Step 7003, detection data backup precedence information.
The backup tool detection data backup precedence information of mobile phone running background, determines that user wants first to back up
Which data, those data are backed up afterwards.
Step 7004, detection data backup progress msg.
The backup tool detection data backup progress msg of mobile phone running background, it is determined whether have backup progress letter
Breath, if then continuing to back up according to backup progress.
Step 7005, to USB flash disk writing backup data.
The backup tool of mobile phone running background in real time to USB flash disk writing backup data, if USB flash disk surprisingly disconnect or
When person is full, when accessing USB flash disk again, can then it be backed up at progress according to data backup progress msg.
Step 309, data backup is showed by voice unit (VU) and/or display unit after data backup terminates
Progress.
The backup tool of mobile phone running background can pass through the loudspeaker on mobile phone after it is determined that data backup terminates
And/or indicator lamp shows data backup progress.
The method of data backup provided in an embodiment of the present invention, detected by mobile phone with having the outer of OTG functions
Put whether memory connects;When it is determined that being connected with the external memory with OTG functions, carry institute
State the external memory with OTG functions;In the detection external memory with OTG functions whether
The second backed-up config file is stored with, when being stored with the second backed-up config file, parsing is stored in the tool
There is second backed-up config file in the external memory of OTG functions;Judge second backup configuration
Whether the user authentication information in file matches with the facility information of local, in matching, according to described second
The data backup for needing to back up is had OTG functions by the backup configuration information in backed-up config file described
External memory in;It is standby that data are showed by voice unit (VU) and/or display unit after data backup terminates
The progress of part;User is running into mobile phone screen damage, when can not operate, in computer side insertion USB flash disk, and
Mobile phone cloud service account is logged in computer side backup tool, and determines to need the mobile phone backed up, by U after confirmation
Disk inserts mobile phone, after the backup tool of mobile phone running background detects user authentication information and certification in USB flash disk,
Automatically backup data is started according to backup configuration information, if user midway run into fortuitous event extract USB flash disk or
When USB flash disk is full, it can then be backed up again insertable into USB flash disk, reduce the loss of user;In addition, without giving hand
Machine increases any hardware, reduces Backup Data cost, by carrying out authentication to USB flash disk, improves peace
Quan Xing.
Fig. 8 is the structural representation of the mobile terminal of data backup of the present invention, as shown in figure 8, the present embodiment
The mobile terminal 08 of data backup include:Detection module 81, carry module 82, processing module 83;Its
In,
The detection module 81, whether it is connected with the external memory with OTG functions for detecting;
The carry module 82, for when it is determined that being connected with the external memory with OTG functions,
There is the external memory of OTG functions described in carry;
The processing module 83, for the data backup backed up will to be needed in the tool according to backed-up config file
In the external memory for having OTG functions.
Further, the processing module 83, it is additionally operable to parsing and is stored in the first local backed-up config file;
Backup configuration information in first backed-up config file is by the data backup for needing to back up in institute
State in the external memory with OTG functions.
Further, the processing module 83, be additionally operable to parsing be stored in it is described outer with OTG functions
Put the second backed-up config file in memory;
Judge whether second backed-up config file meets backup condition, if second backed-up config file
Meet backup condition, then the backup configuration information in second backed-up config file will need what is backed up
Data backup is described with the external memory of OTG functions.
Further, the processing module 83, specifically for detection is described there is the external of OTG functions to deposit
Whether second backed-up config file is stored with reservoir, if the external memory with OTG functions
In be stored with second backed-up config file, then parsing is stored in the external storage with OTG functions
Second backed-up config file in device.
Further, the processing module 83, specifically for judging the use in second backed-up config file
Whether family authentication information matches with the facility information of local;
Wherein, the user authentication information in second backed-up config file includes at least one:Backup password,
Client's identification of the sequence number of mobile terminal, the International Mobile Station Equipment Identification IMEI of mobile terminal, mobile terminal
Module SIM, mobile terminal hardware address;The local facility information includes at least one:Back up close
Code, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM of mobile terminal, the hardware of mobile terminal
Address.
Further, the processing module 83, if also particularly useful for the use in second backed-up config file
Family authentication information matches with the local facility information, then standby in second backed-up config file
Part configuration information is by the data backup for needing to back up described with the external memory of OTG functions;
Wherein, the backup configuration information in second backed-up config file includes at least one:Backup switch
Information, port controlling information, data backup information, data backup precedence information, data backup progress letter
Breath.
The mobile terminal of the present embodiment, it can be used for the technical scheme for performing above-mentioned shown embodiment of the method, its
Implementing principle and technical effect are similar, and here is omitted.
In actual applications, the detection module 81, carry module 82, processing module 83 can by positioned at
Wireless data sends central processing unit (Central Processing Unit, CPU), microprocessor in equipment
(Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP)
Or field programmable gate array (Field Programmable Gate Array, FPGA) etc. is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use hardware embodiment, software implementation or combine software and
The form of the embodiment of hardware aspect.Moreover, the present invention can use wherein includes calculating in one or more
The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage and optical storage
Device etc.) on the form of computer program product implemented.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions implementation process figure and/or side
Each flow and/or square frame in block diagram and flow and/or the knot of square frame in flow chart and/or block diagram
Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or
The processor of other programmable data processing devices is to produce a machine so that by computer or other can
The instruction of the computing device of programming data processing equipment is produced for realizing in one flow or multiple of flow chart
The device for the function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices
In the computer-readable memory to work in a specific way so that be stored in the computer-readable memory
Instruction produces the manufacture for including command device, and the command device is realized in one flow of flow chart or multiple streams
The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to which the instruction that is performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention
Enclose.
Claims (12)
- A kind of 1. method of data backup, it is characterised in that methods described includes:Detect and whether be connected with the external memory with OTG functions;When it is determined that being connected with the external memory with OTG functions, there is OTG work(described in carry The external memory of energy;Described there is the external of OTG functions to deposit the data backup for needing to back up according to backed-up config file In reservoir.
- 2. according to the method for claim 1, it is characterised in that it is described according to backed-up config file by need The data backup to be backed up described with the external memory of OTG functions, including:Parsing is stored in the first local backed-up config file;Backup configuration information in first backed-up config file is by the data backup for needing to back up in institute State in the external memory with OTG functions.
- 3. according to the method for claim 1, it is characterised in that it is described according to backed-up config file by need The data backup to be backed up described with the external memory of OTG functions, including:Parsing is stored in the second backed-up config file in the external memory with OTG functions;Judge whether second backed-up config file meets backup condition, if second backed-up config file Meet backup condition, then the backup configuration information in second backed-up config file will need what is backed up Data backup is described with the external memory of OTG functions.
- 4. according to the method for claim 3, it is characterised in that the parsing, which is stored in, described to be had The second backed-up config file in the external memory of OTG functions, including:Whether the second backup configuration text is stored with the detection external memory with OTG functions Part, if being stored with second backed-up config file in the external memory with OTG functions, solve Analysis is stored in second backed-up config file in the external memory with OTG functions.
- 5. according to the method for claim 3, it is characterised in that described to judge second backup configuration Whether file meets backup condition, including:Judge user authentication information in second backed-up config file whether the facility information with local Match somebody with somebody;Wherein, the user authentication information in second backed-up config file includes at least one:Backup password, Client's identification of the sequence number of mobile terminal, the International Mobile Station Equipment Identification IMEI of mobile terminal, mobile terminal Module SIM, mobile terminal hardware address;The local facility information includes at least one:Back up close Code, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM of mobile terminal, the hardware of mobile terminal Address.
- 6. according to the method for claim 5, it is characterised in that judge that second backup is matched somebody with somebody described Put the user authentication information in file whether with local facility information match after, methods described also includes:If the user authentication information in second backed-up config file matches with the local facility information, The data backup that then the backup configuration information in second backed-up config file backs up needs is described In external memory with OTG functions;Wherein, the backup configuration information in second backed-up config file includes at least one:Backup switch Information, port controlling information, data backup information, data backup precedence information, data backup progress letter Breath.
- 7. a kind of mobile terminal of data backup, it is characterised in that the mobile terminal includes:Detection module, whether it is connected with the external memory with OTG functions for detecting;Carry module, for when it is determined that being connected with the external memory with OTG functions, carry institute State the external memory with OTG functions;Processing module, for the data backup for needing to back up to be had into OTG described according to backed-up config file In the external memory of function.
- 8. mobile terminal according to claim 7, it is characterised in that the processing module, be additionally operable to Parsing is stored in the first local backed-up config file;Backup configuration information in first backed-up config file is by the data backup for needing to back up in institute State in the external memory with OTG functions.
- 9. mobile terminal according to claim 7, it is characterised in that the processing module, be additionally operable to Parsing is stored in the second backed-up config file in the external memory with OTG functions;Judge whether second backed-up config file meets backup condition, if second backed-up config file Meet backup condition, then the backup configuration information in second backed-up config file will need what is backed up Data backup is described with the external memory of OTG functions.
- 10. mobile terminal according to claim 9, it is characterised in that the processing module, specifically The second backup configuration text whether is stored with the external memory with OTG functions for detecting Part, if being stored with second backed-up config file in the external memory with OTG functions, solve Analysis is stored in second backed-up config file in the external memory with OTG functions.
- 11. mobile terminal according to claim 9, it is characterised in that the processing module, specifically For judge the user authentication information in second backed-up config file whether with local facility information Match somebody with somebody;Wherein, the user authentication information in second backed-up config file includes at least one:Backup password, Client's identification of the sequence number of mobile terminal, the International Mobile Station Equipment Identification IMEI of mobile terminal, mobile terminal Module SIM, mobile terminal hardware address;The local facility information includes at least one:Back up close Code, the sequence number of mobile terminal, the IMEI of mobile terminal, the SIM of mobile terminal, the hardware of mobile terminal Address.
- 12. mobile terminal according to claim 11, it is characterised in that the processing module, also have If the user authentication information that body is used in second backed-up config file and the local facility information Match somebody with somebody, then the backup configuration information in second backed-up config file exists the data backup for needing to back up In the external memory with OTG functions;Wherein, the backup configuration information in second backed-up config file includes at least one:Backup switch Information, port controlling information, data backup information, data backup precedence information, data backup progress letter Breath.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610339262.XA CN107402840A (en) | 2016-05-20 | 2016-05-20 | The method and mobile terminal of data backup |
PCT/CN2016/087294 WO2017197727A1 (en) | 2016-05-20 | 2016-06-27 | Method and mobile terminal for data backup |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610339262.XA CN107402840A (en) | 2016-05-20 | 2016-05-20 | The method and mobile terminal of data backup |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107402840A true CN107402840A (en) | 2017-11-28 |
Family
ID=60324667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610339262.XA Pending CN107402840A (en) | 2016-05-20 | 2016-05-20 | The method and mobile terminal of data backup |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107402840A (en) |
WO (1) | WO2017197727A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238896A (en) * | 2021-06-21 | 2021-08-10 | 北京飞思特信息技术有限公司 | Disaster recovery and recovery system of distributed examination service based on USB flash disk |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111639000B (en) * | 2020-06-03 | 2023-03-24 | 公安部第三研究所 | Method for quickly extracting backup data of android mobile terminal and automatic backup system |
CN114050965A (en) * | 2020-07-22 | 2022-02-15 | 中兴通讯股份有限公司 | Method for searching interrupt device, slave device, master device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117232A (en) * | 2010-08-16 | 2011-07-06 | 鲁海军 | Multifunctional data backup device |
CN202434203U (en) * | 2012-02-13 | 2012-09-12 | 深圳市法码尔科技开发有限公司 | Flash disk with OTG (on-the-go) function |
CN103092723A (en) * | 2011-01-24 | 2013-05-08 | 艾欧互联有限公司 | Hand-held apparatus, base, backup method and data processing method |
CN104202185A (en) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Backup method and backup device for communication data |
CN104765657A (en) * | 2015-04-27 | 2015-07-08 | 广东欧珀移动通信有限公司 | Data backup method, data recovery method and relative device |
CN105426270A (en) * | 2015-12-10 | 2016-03-23 | 惠州Tcl移动通信有限公司 | Mobile terminal photo album data backup method and system, mobile terminal and USB flash disk |
-
2016
- 2016-05-20 CN CN201610339262.XA patent/CN107402840A/en active Pending
- 2016-06-27 WO PCT/CN2016/087294 patent/WO2017197727A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117232A (en) * | 2010-08-16 | 2011-07-06 | 鲁海军 | Multifunctional data backup device |
CN103092723A (en) * | 2011-01-24 | 2013-05-08 | 艾欧互联有限公司 | Hand-held apparatus, base, backup method and data processing method |
CN202434203U (en) * | 2012-02-13 | 2012-09-12 | 深圳市法码尔科技开发有限公司 | Flash disk with OTG (on-the-go) function |
CN104202185A (en) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Backup method and backup device for communication data |
CN104765657A (en) * | 2015-04-27 | 2015-07-08 | 广东欧珀移动通信有限公司 | Data backup method, data recovery method and relative device |
CN105426270A (en) * | 2015-12-10 | 2016-03-23 | 惠州Tcl移动通信有限公司 | Mobile terminal photo album data backup method and system, mobile terminal and USB flash disk |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238896A (en) * | 2021-06-21 | 2021-08-10 | 北京飞思特信息技术有限公司 | Disaster recovery and recovery system of distributed examination service based on USB flash disk |
Also Published As
Publication number | Publication date |
---|---|
WO2017197727A1 (en) | 2017-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104205721B (en) | The adaptive authentication method of context aware and device | |
CN105827600B (en) | Method and device for logging in client | |
EP3016296B1 (en) | Bluetooth communication method and bluetooth communication device | |
CN106503523B (en) | A kind of method and mobile terminal of mobile terminal login | |
CN106209725A (en) | Method, video conference central server and system for video conference certification | |
CN106296900B (en) | A method of opening smart lock | |
CN105677512B (en) | Data processing method and device and electronic equipment | |
CN101651942A (en) | Method and device for unlocking terminal equipment | |
CN102176775A (en) | Intelligent configuration device and method | |
CN103561086A (en) | Method for presenting schedule prompting message, terminal device and cloud server | |
CN106385403A (en) | User account registering method and device of self-service printing equipment | |
CN107402840A (en) | The method and mobile terminal of data backup | |
CN103369529A (en) | Identity authentication method, access point (AP) and access controller (AC) | |
CN110515762A (en) | Data reconstruction method, device, terminal device and storage medium | |
CN108052094A (en) | A kind of extension card identification method, device and frequency converter | |
CN104660639B (en) | Cloud terminal upgrade processing method and device | |
WO2014194598A1 (en) | Communication processing method and apparatus for information storage card, and mobile terminal | |
CN104915588B (en) | The method for secret protection and device of electronic equipment | |
CN104462934A (en) | Information processing method and electronic equipment | |
CN107613494B (en) | Large-scale user sign-in method based on wireless equipment handshake protocol | |
CN102143457A (en) | Method for logging on by using own telephone number, mobile terminal and communication system | |
CN109040050A (en) | Data interactive method and Related product | |
CN112906411A (en) | Service processing method, user terminal, service device, system and storage medium | |
CN109699015A (en) | Binding machine and card relationship authentication method, device and communication system | |
CN106921735A (en) | Mobile terminal data information synchronization method and system based on the backup of fingerprint cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171128 |
|
RJ01 | Rejection of invention patent application after publication |