CN107066346B - Data backup method, data recovery method and device - Google Patents

Data backup method, data recovery method and device Download PDF

Info

Publication number
CN107066346B
CN107066346B CN201610857307.2A CN201610857307A CN107066346B CN 107066346 B CN107066346 B CN 107066346B CN 201610857307 A CN201610857307 A CN 201610857307A CN 107066346 B CN107066346 B CN 107066346B
Authority
CN
China
Prior art keywords
data
application
storage area
terminal
data storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610857307.2A
Other languages
Chinese (zh)
Other versions
CN107066346A (en
Inventor
陈细双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201610857307.2A priority Critical patent/CN107066346B/en
Publication of CN107066346A publication Critical patent/CN107066346A/en
Application granted granted Critical
Publication of CN107066346B publication Critical patent/CN107066346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Abstract

The application discloses a data backup method and device, which are used for solving the problem that in the prior art, application resources stored in a terminal are deleted, so that the application cannot normally run. The method comprises the following steps: aiming at each application installed on a terminal, monitoring data stored in a system data storage area of the terminal by the application; when the data are monitored to change, the changed data are backed up to a user data storage area of the terminal, and a corresponding relation between the changed data backed up to the user data storage area and the application is established, so that the data which are backed up in a system data storage area and correspond to the application are restored to the system data storage area after the data stored in the system data storage area by the application are deleted. The application also discloses a data recovery method and device.

Description

Data backup method, data recovery method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data backup method, a data recovery method, and an apparatus.
Background
With the increasing functions of smart phones, Applications (APPs) installed on the phones are also increasing.
After the APP is installed on the mobile device, the installation files in the APP installation package are stored in the storage space allocated to the APP by the mobile terminal, the installation files contain page layout data used for generating an APP display interface, and after a user starts the APP, the APP can generate a display page according to the page layout data pre-stored in the installation files and display the display page to the user.
Meanwhile, after the version of the APP is updated, the page layout data stored in the local installation file can be updated to the page layout data used for generating the new version display page, and under the condition, when the user starts the APP, the APP can always show the latest display page to the user.
However, currently, cleaning software is often installed on the mobile device, and data stored on the mobile device (for example, relevant data of APP installed on the mobile device, operation data, and user cache data, etc.) can be cleaned through the cleaning software, so that it is ensured that the storage space of the mobile device is not excessively occupied, and thus the operating speed of the mobile device can be ensured to a certain extent.
When the cleaning software is used for cleaning data, data required by running of an APP installed on the mobile device may also be cleaned, for example, page layout data of the APP installed on the mobile device may be deleted by the cleaning software, in this case, after a user starts the APP, the APP cannot generate a display page because the locally stored page layout data is removed, in this case, the following problem may occur, and when the mobile device is not networked, the APP may have a white screen because the display page cannot be generated according to the page layout data; when the mobile device is networked, the APP may request to download the page layout data from the server again, and generate a display page according to the downloaded page layout data, which is limited by the current network condition, and the duration of the process is long, so that the user may need a wait time of tens of seconds or even tens of seconds to wait for the APP to respond.
Disclosure of Invention
The embodiment of the application provides a data backup method and device, and is used for solving the problem that in the prior art, application resources stored in a terminal are deleted, so that the application cannot normally run.
The embodiment of the application also provides a data recovery method and device, which are used for solving the problem that the application cannot normally run due to the fact that the application resources stored in the terminal are deleted in the prior art.
The embodiment of the application adopts the following technical scheme:
a method of data backup, comprising:
aiming at each application installed on a terminal, monitoring data stored in a system data storage area of the terminal by the application;
when the data are monitored to change, the changed data are backed up to a user data storage area of the terminal, and a corresponding relation between the changed data backed up to the user data storage area and the application is established, so that the data which are backed up in a system data storage area and correspond to the application are restored to the system data storage area after the data stored in the system data storage area by the application are deleted.
A method of data recovery, comprising:
receiving a recovery instruction sent by an application installed on a terminal, wherein the recovery instruction is sent when the application does not read data stored in a system data storage area of the terminal;
acquiring data corresponding to the application from a user data storage area of the terminal according to the recovery instruction;
and restoring the obtained data to the system data storage area.
A data backup apparatus comprising:
the data monitoring unit is used for monitoring data stored in a system data storage area of the terminal by the application aiming at each application installed on the terminal;
and the data backup unit is used for backing up the changed data to a user data storage area of the terminal when monitoring that the data are changed, and establishing a corresponding relation between the changed data backed up to the user data storage area and the application, so that the data backed up in the user data storage area and corresponding to the application are restored to the system data storage area after the data stored in the system data storage area by the application are deleted.
A data recovery apparatus comprising:
a recovery instruction receiving unit, configured to receive a recovery instruction sent by an application installed on a terminal, where the recovery instruction is sent by the application when the application does not read data stored in a system data storage area of the terminal;
a backup data obtaining unit, which obtains the data corresponding to the application from the user data storage area of the terminal according to the recovery instruction;
and the backup data recovery unit is used for recovering the obtained data to the system data storage area.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the data stored in the system data storage area of the terminal by the application can be monitored aiming at each application installed on the terminal, when the data stored in the system storage area is monitored to be changed, the changed data is backed up to the user data storage area of the terminal, the corresponding relation between the changed data backed up to the user data storage area and the application is established, and the data stored in the user data storage area can not be generally deleted.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a specific implementation of a data backup method according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a specific implementation of a data recovery method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a specific implementation flow of an application data backup method and a data recovery method for an application installed on an android mobile phone according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data backup device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data recovery apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The execution main body of the data backup method provided by the embodiment of the present application may be, but is not limited to, at least one of a mobile phone, a tablet Computer, a Personal Computer (PC), a smart television, and any terminal capable of running an application. In addition, the execution main body of the method can also be data backup software.
For convenience of description, the following description will be made on the implementation of the method by taking the main execution body of the method as data backup software as an example. It is understood that the implementation of the method as data backup software is only an exemplary illustration and should not be construed as a limitation of the method.
The embodiment of the application provides a data backup method, which is used for solving the problem that in the prior art, application resources stored in a terminal are deleted, so that the application cannot normally run. The specific implementation flow diagram of the method is shown in fig. 1, and mainly comprises the following steps:
step 11, aiming at each application installed on a terminal, monitoring data stored in a system data storage area of the terminal by the application;
the system data storage area of the application may generally refer to an area, which is allocated by the terminal to the application and used for storing application data in the application installation package when the application is installed on the terminal, and subsequently, after the version of the application is updated, the update data of the application is also stored in the system data storage area of the application.
Taking an example that an operating system of the terminal is an Android operating system, a system data storage area of the terminal is an internal storage area.
When an application is installed (or an application already installed on the terminal is updated), application data in the application installation package (or the application update package) is saved in a system data storage area of the application; meanwhile, the version number of the application installed (or updated) at this time is also stored in the system data storage area of the application, and the application data corresponding to different versions of the same application are often different, that is, the application data stored in the system data storage of the application can be reflected to a certain extent by the version number of the application, so that whether the application version number stored in the system data storage area of the application is changed or not can be monitored, and the purpose of monitoring whether the data stored in the system data storage area of the application is changed or not can be achieved.
In one embodiment, the system data storage area of each application installed on the terminal may be monitored by data backup software installed on the terminal (the data backup software may be an application installed on the terminal), and subsequent operations may be performed. However, the system data storage area allocated by the terminal for the application generally only allows the access of the application, but does not allow the access of other applications on the terminal, so that in order to achieve the purpose that the data backup software monitors the system data storage area of the application, the terminal can set a higher authority for the data backup software, so that the data backup software can monitor the system data storage areas of other applications.
Besides, the system data storage area of each application installed on the terminal can be directly monitored through the operating system of the terminal.
It should be noted here that the data stored in the system data storage area of the application, although generally not accessible by other applications installed on the terminal, may be deleted by a cleaning application installed on the terminal, for example, when a user cleans up a storage space of the terminal using the cleaning application, the data stored in the system data storage area of the application may be deleted.
Since the application data stored in the system data storage area of the application may be deleted, the data stored in the system data storage area of the application needs to be backed up, and in particular, how to back up the data stored in the system data storage area is described in detail in step 12.
Step 12, when the change of the data stored in the system data storage area is monitored by executing the step 11, backing up the changed data to a user data storage area of the terminal;
the user data storage area of the terminal may generally refer to a storage area in the terminal for storing user-related data (e.g., photos, videos, and audios of a user), and since the user data storage area of the terminal generally stores user-related data, the user generally does not expect the user data to be removed, so that the currently commonly used cleaning application does not often clean the data stored in the user data storage area of the terminal when cleaning the storage space of the terminal.
Taking an operating system of the terminal as an Android operating system as an example, a system data storage area of the terminal is an internal storage area.
Since the version of the application installed on the terminal may be updated frequently, in order to ensure that the data backed up in the user data storage area is always the latest version of the application, to ensure that after the backup data corresponding to the application in the user data storage area is restored to the system data storage area of the application, the application may use the latest version of the application data at runtime and, in one embodiment, whenever a change is detected in the data stored in the system data storage area of the application (where the change may include, for example, new data, replacement data, etc.), the changed data can be backed up to the user data storage area, and the old version of the application data corresponding to the application in the user data storage area can be deleted, therefore, the application data corresponding to the application and backed up in the user data storage area is ensured to be the data of the latest version of the application all the time.
It should be noted that, with the data backup method provided in the embodiment of the present application, application data stored in a system data storage area of each application installed on a terminal is backed up in a user data storage area of the terminal. In order to ensure that application data corresponding to an application can be restored from a user data storage area after the application data stored in a system data storage area of the terminal is subsequently deleted, in one embodiment, after the changed data is backed up to the user data storage area of the terminal, a corresponding relationship between the changed data backed up to the user data storage area and the application is established, and then after the data stored in the system data storage area of the application is deleted, the data backed up in the user data storage area corresponding to the application can be restored to the system data storage area of the application according to the pre-established corresponding relationship between the data backed up to the user data storage area and the application.
In an embodiment, different storage spaces may be divided for different applications installed on the terminal in a user data storage area of the terminal, for example, a folder corresponding to each application may be created in the user data storage area of the terminal for each application installed on the terminal, and then data stored in a system data storage area of the application may be subsequently backed up to the folder corresponding to the application in the user data storage area, so as to achieve the purpose of establishing a correspondence relationship between the data backed up to the user data storage area and the application.
In another embodiment, when the changed data in the system data storage area of the application is backed up to the user data storage area of the terminal, an identifier of the application, such as a name of the application, may be added to the data backed up to the user data storage area, so as to achieve the purpose of establishing a corresponding relationship between the data backed up to the user data storage area and the application.
The embodiment of the application does not specifically limit what way to establish the corresponding relationship between the data backed up in the user data storage area and the application.
At present, a user data storage area on a terminal is generally a public storage area, that is, all applications installed on the terminal can access data stored in the user data storage area, and in order to ensure the security of application data backed up in the user data storage area, in an embodiment, the application data backed up in the user data storage area may be encrypted, so that only an application corresponding to the application data can access and acquire the backed up application data, and then the changed data is backed up in the user data storage area of the terminal, which may specifically include: encrypting the changed data to obtain encrypted data; and storing the encrypted data to a user data storage area of the terminal.
In an embodiment, the encrypting the changed data may specifically include: determining abstract information of the changed data by adopting a preset message abstract algorithm; and encrypting the changed data and the abstract information by adopting a preset secret key to obtain encrypted data.
The summary information of the data to be backed up in the user data storage area is determined through a preset message summary algorithm, and the summary information is mainly used for verifying the integrity of the backup data through the summary information when the data backed up in the user data storage area is subsequently restored to the system data storage area.
The Message Digest Algorithm used in the embodiment of the present application may be, for example, a fifth version Message Digest Algorithm (Message-Digest Algorithm 5, MD5), and in addition, other Message Digest algorithms may also be used in the embodiment of the present application, and the embodiment of the present application does not specifically limit which Message Digest Algorithm is used to determine the Digest information of the backup data.
By adopting the data backup method provided by the embodiment of the application, the data stored in the system data storage area of the terminal can be monitored aiming at each application installed on the terminal, when the data stored in the system storage area is monitored to be changed, the changed data is backed up to the user data storage area of the terminal, and establishes the corresponding relation between the changed data backed up in the user data storage area and the application, the data stored in the user data storage area will not be deleted, therefore, when the data stored in the system data storage area is deleted by the application, data backed up in the user data storage corresponding to the application may be restored to the system data storage of the application, therefore, the problem that the application cannot normally run due to the fact that the data stored in the system data storage area is deleted is solved.
The embodiment of the application also provides a data recovery method, which is used for solving the problem that the application cannot normally run in the prior art because the application resources stored in the terminal are deleted. The specific implementation flow diagram of the method is shown in fig. 2, and mainly comprises the following steps:
step 21, receiving a recovery instruction sent by an application installed on a terminal;
wherein the recovery instruction is sent by the application when the application does not read the data stored in the system data storage area of the terminal.
When the application installed on the terminal runs, application data often needs to be read from a system data storage area of the application, for example, when the application is started, the application can read application interface generation data from the system data storage area of the application, and generate a user operation interface of the application according to the read application interface generation data.
However, since the data stored in the system data storage area of the terminal may be deleted by the cleaning application, when the application runs, the data may not be read from the system data storage area of the application, and at this time, the application program may send a restore instruction to the data backup software, so that the data backup software restores the backup data corresponding to the application, which is backed up in the user data storage area, to the system data storage area of the application.
Step 22, obtaining data corresponding to the application from a user data storage area of the terminal according to the recovery instruction;
since the user data storage area on the terminal is generally a public storage area, that is, all applications installed on the terminal can access data stored in the user data storage area, in order to ensure the security of application data backed up in the user data storage area, the data backed up in the user data storage area is generally encrypted data, and then, by executing step 22, according to the recovery instruction, the data corresponding to the application and obtained from the user data storage area of the terminal is generally encrypted data.
And step 23, restoring the data obtained by executing step 22 to the system data storage area.
Since the backup data obtained from the user data storage area by executing step 22 is generally encrypted backup data, before restoring the obtained application backup data to the system data storage area of the application, decryption processing needs to be performed on the application backup data first, it should be noted that when the backup data of the application is encrypted, a symmetric encryption manner is adopted, that is, data backup software may encrypt or decrypt the backup data of the same application by using the same key, so that the data backup software may determine the key corresponding to the application according to the application identifier of the application that sends the restoration request, and decrypt the obtained backup data by using the determined key, so as to obtain the backup data corresponding to the application and the digest information of the backup data.
It should be noted that, in order to avoid that, in the data recovery process, the backup data is illegally tampered, so that the data recovered to the application system data storage area cannot be normally used, in an implementation manner, before the application backup data obtained by decryption is recovered to the application system data storage area, data integrity verification may be performed on the backup data, and specifically, the method for verifying data integrity provided in this embodiment of the present application may include: determining abstract information of the backup data by using a preset message abstract algorithm; and when the decrypted digest information is the same as the determined digest information, determining that the encrypted data is verified.
By the method for verifying the data integrity, when the backup data is restored from the user data storage area to the system data storage area, if the data integrity is verified, the data backup software calculates the backup data obtained by decryption according to the backup data obtained by decryption and a preset message digest algorithm, the obtained digest information is different from the digest information obtained by decryption, and the message digest algorithm used in calculating the digest information is the same, so that the backup data obtained by decryption and the backup data backed up in the user data storage area can be determined to be different, that is, the backup data can be determined to be illegally tampered in the data restoration process, and the tampered backup data is rejected to be restored to the applied system data storage area, and whether the backup data is illegally tampered in the restoration process can be determined by the method, and refusing to restore the tampered backup data to the system data storage area of the application, thereby avoiding the problem that the application cannot normally run because the tampered backup data is restored to the system data storage area of the application.
With reference to fig. 3, taking the terminal as an android phone as an example, a process of backing up and recovering application data of an application installed on the android phone by using the data backup method and the data recovery method provided in the embodiment of the present application is described in detail below:
step 31, when the application 1 is installed, the application data in the installation package of the application 1 is stored in an internal storage area allocated to the application by the android phone;
step 32, the data backup software obtains the stored application data from the internal storage area of the application 1;
step 33, the data backup software backs up the obtained application data of the application 1 to an external storage area of the android mobile phone;
step 34, when the application 1 is running, the application 1 reads the internal storage area of the application 1, and if the data in the internal storage area of the application 1 is deleted by the cleaning application, the application 1 cannot read the application data in the internal storage area;
step 35, the application 1 sends a data recovery request to the data backup software;
step 36, after receiving the data recovery request sent by the application 1, the data backup software obtains the data corresponding to the application 1 from the external storage area according to the data recovery request;
step 37, after the data backup software passes the verification of the obtained data, restoring the obtained data to the internal data storage area of the application 1;
specifically, how the data backup software verifies the data integrity is described in detail in the above related description, and is not described herein again.
Step 38, the data backup software sends a data recovery completion notification to the application 1;
and step 39, after receiving the data recovery completion notification, the application 1 reads the data recovered in the internal data storage area and operates according to the read data.
The application also provides a data backup device, which is used for solving the problem that the application cannot normally run due to the fact that the application resources stored in the terminal are deleted in the prior art. The specific structural diagram of the device is shown in fig. 4, and the device comprises: a data monitoring unit 41 and a data backup unit 42.
The data monitoring unit 41 monitors data stored in a system data storage area of the terminal by the application for each application installed on the terminal;
and the data backup unit 42 is configured to, when it is monitored that the data changes, backup the changed data to a user data storage area of the terminal, and establish a corresponding relationship between the changed data backed up to the user data storage area and the application, so that, after the data stored in the system data storage area by the application is deleted, the data backed up in the user data storage area and corresponding to the application is restored to the system data storage area.
In one embodiment, the data backup unit 42 encrypts the changed data to obtain encrypted data; and storing the encrypted data to a user data storage area of the terminal.
In one embodiment, the data backup unit 42 determines summary information of the changed data by using a preset message summary algorithm; and encrypting the changed data and the abstract information by adopting a preset secret key to obtain encrypted data.
In an embodiment, when the operating system of the terminal is an Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
In addition, the application also provides a data recovery device, which is used for solving the problem that the application cannot normally run due to the fact that the application resources stored in the terminal are deleted in the prior art. The specific structural diagram of the device is shown in fig. 5, and the device comprises: a restoration instruction receiving unit 51, a backup data obtaining unit 52, and a backup data restoring unit 53.
The recovery instruction receiving unit 51 is configured to receive a recovery instruction sent by an application installed on a terminal, where the recovery instruction is sent by the application when the application does not read data stored in a system data storage area of the terminal;
a backup data obtaining unit 52, configured to obtain data corresponding to the application from a user data storage area of the terminal according to the recovery instruction;
and a backup data restoring unit 53 that restores the obtained data to the system data storage area.
In one embodiment, the backup data obtaining unit 52 obtains encrypted data corresponding to the application from a user data storage area of the terminal.
In one embodiment, the backup data restoring unit 53 decrypts the encrypted data by using a preset key, to obtain backup data corresponding to the application and digest information of the backup data; determining abstract information of the backup data by using a preset message abstract algorithm; and when the decrypted summary information is the same as the determined summary information, determining that the encrypted data passes verification, and restoring the backup data to the system data storage area.
In an embodiment, when the operating system of the terminal is an Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
By adopting the method provided by the embodiment of the application, the data stored in the system data storage area of the terminal by the application can be monitored aiming at each application installed on the terminal, when the change of the data stored in the system storage area is monitored, the changed data is backed up to the user data storage area of the terminal, and the corresponding relation between the changed data backed up to the user data storage area and the application is established, the data stored in the user data storage area can not be generally deleted, so that the data corresponding to the application backed up in the user data storage area can be restored to the system data storage area of the application after the data stored in the system data storage area is deleted, and the problem that the application cannot normally run due to the deletion of the data stored in the system data storage area is avoided.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A method for data backup, comprising:
aiming at each application installed on a terminal, monitoring data stored in a system data storage area of the terminal by the application after the application is installed on the terminal; the system data storage area of the application is an area which is allocated by the terminal for the application and used for storing application data in the application installation package;
when the situation that the data stored in the system data storage area of the application is changed is monitored, encrypting the changed data to obtain encrypted data;
storing the encrypted data to a user data storage area of the terminal, and establishing a corresponding relation between the encrypted data backed up to the user data storage area and the application, so that when the application cannot read application interface generation data from the system data storage area, the encrypted data corresponding to the application is obtained from the user data storage area of the terminal; decrypting the encrypted data by using a preset key to obtain backup data corresponding to the application and summary information of the backup data; determining abstract information of the backup data by using a preset message abstract algorithm; when the digest information obtained by the decryption by using the preset key is the same as the digest information determined by using the preset message digest algorithm, passing the data integrity verification of the encrypted data, and recovering the backup data to the system data storage area;
wherein, carry on the encryption process to the data after changing, including:
determining abstract information of the changed data by adopting a preset message abstract algorithm;
and encrypting the changed data and the abstract information by adopting a preset secret key to obtain encrypted data.
2. The method according to claim 1, wherein when the operating system of the terminal is an Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
3. A method for data recovery, comprising:
receiving a recovery instruction sent by an application installed on a terminal, wherein the recovery instruction is sent when the application does not read application interface generation data stored in a system data storage area of the terminal;
acquiring encrypted data corresponding to the application from a user data storage area of the terminal according to the recovery instruction; when the encrypted data corresponding to the application in the user data storage area of the terminal is monitored to change, encrypting the changed data, and storing the obtained encrypted data in the user data storage area of the terminal;
decrypting the encrypted data by using a preset key to obtain backup data corresponding to the application and summary information of the backup data;
determining abstract information of the backup data by using a preset message abstract algorithm;
and when the digest information obtained by the decryption by using the preset key is the same as the digest information determined by using the preset message digest algorithm, passing the data integrity verification of the encrypted data, and restoring the backup data to the system data storage area.
4. The method according to claim 3, wherein when the operating system of the terminal is Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
5. A data backup apparatus, comprising:
the data monitoring unit is used for monitoring data stored in a system data storage area of the terminal by the application after the application is installed on the terminal aiming at each application installed on the terminal; the system data storage area of the application is an area which is allocated by the terminal for the application and used for storing application data in the application installation package;
the data backup unit is used for encrypting the changed data to obtain encrypted data when monitoring that the data stored in the system data storage area of the terminal is changed; storing the encrypted data to a user data storage area of the terminal, and establishing a corresponding relation between the encrypted data backed up to the user data storage area and the application, so that when the application cannot read application interface generation data from the system data storage area, the encrypted data corresponding to the application is obtained from the user data storage area of the terminal; decrypting the encrypted data by using a preset key to obtain backup data corresponding to the application and summary information of the backup data; determining abstract information of the backup data by using a preset message abstract algorithm; when the digest information obtained by the decryption by using the preset key is the same as the digest information determined by using the preset message digest algorithm, passing the data integrity verification of the encrypted data, and recovering the backup data to the system data storage area;
the data backup unit determines summary information of the changed data by adopting a preset message summary algorithm;
and encrypting the changed data and the abstract information by adopting a preset secret key to obtain encrypted data.
6. The apparatus according to claim 5, wherein when the operating system of the terminal is Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
7. A data recovery apparatus, comprising:
the system comprises a recovery instruction receiving unit, a recovery instruction receiving unit and a recovery instruction transmitting unit, wherein the recovery instruction is transmitted when the application generates data in an application interface stored in a system data storage area of the terminal without reading the application;
a backup data obtaining unit, which obtains the encrypted data corresponding to the application from the user data storage area of the terminal according to the recovery instruction; when the encrypted data corresponding to the application in the user data storage area of the terminal is monitored to change, encrypting the changed data, and storing the obtained encrypted data in the user data storage area of the terminal;
the backup data recovery unit is used for decrypting the encrypted data by using a preset secret key to obtain backup data corresponding to the application and summary information of the backup data; determining abstract information of the backup data by using a preset message abstract algorithm; and when the digest information obtained by the decryption by using the preset key is the same as the digest information determined by using the preset message digest algorithm, passing the data integrity verification of the encrypted data, and restoring the backup data to the system data storage area.
8. The apparatus according to claim 7, wherein when the operating system of the terminal is Android operating system, the system data storage area is an internal storage area, and the user data storage area is an external storage area.
CN201610857307.2A 2016-09-27 2016-09-27 Data backup method, data recovery method and device Active CN107066346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610857307.2A CN107066346B (en) 2016-09-27 2016-09-27 Data backup method, data recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610857307.2A CN107066346B (en) 2016-09-27 2016-09-27 Data backup method, data recovery method and device

Publications (2)

Publication Number Publication Date
CN107066346A CN107066346A (en) 2017-08-18
CN107066346B true CN107066346B (en) 2021-05-04

Family

ID=59617289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610857307.2A Active CN107066346B (en) 2016-09-27 2016-09-27 Data backup method, data recovery method and device

Country Status (1)

Country Link
CN (1) CN107066346B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678886B (en) * 2017-10-09 2020-02-21 飞天诚信科技股份有限公司 Method for storing and recovering application program data and terminal equipment
CN108494481B (en) * 2018-03-30 2020-06-09 青岛海信宽带多媒体技术有限公司 Monitoring data processing method and device of optical module and optical module
CN109871296A (en) * 2018-12-24 2019-06-11 航天信息股份有限公司 A kind of data back up method and system, data reconstruction method and system and mobile terminal
CN109947594B (en) * 2019-02-27 2021-04-09 武汉天喻信息产业股份有限公司 Data backup method and device and data recovery method and device
CN113507512B (en) * 2021-06-30 2022-10-21 中标慧安信息技术股份有限公司 Internet of things platform storage end data storage security detection method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9122643B2 (en) * 2005-12-08 2015-09-01 Nvidia Corporation Event trigger based data backup services
DE602007014347D1 (en) * 2007-06-15 2011-06-16 Research In Motion Ltd A method and apparatus for providing secure data backup from a mobile communication device to an external computing device
CN103425552B (en) * 2013-08-29 2015-12-02 江苏省邮电规划设计院有限责任公司 A kind of equipment of data backup, system and method
CN105279047B (en) * 2015-11-02 2019-10-25 Oppo广东移动通信有限公司 Data backup device, method and Data Recapture Unit, method

Also Published As

Publication number Publication date
CN107066346A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN107066346B (en) Data backup method, data recovery method and device
CN109214168B (en) Firmware upgrading method and device
CN108932297B (en) Data query method, data sharing method, device and equipment
CN111539813B (en) Method, device, equipment and system for backtracking processing of business behaviors
CN108833091B (en) Encryption method, decryption method and device for log file
EP3103048B1 (en) Content item encryption on mobile devices
CN110661748B (en) Log encryption method, log decryption method and log encryption device
CN105468659B (en) A kind of method of data synchronization and device
CN104462965A (en) Method for verifying integrity of application program and network device
CN112507291B (en) Method and device for generating unique identifier of Android device
US20160335017A1 (en) Information processing apparatus for storing data in cloud environment, terminal device, and storage method
CN111224786A (en) Block chain-based data security sharing method, device and medium
CN112596740A (en) Program deployment method and device
US20160080329A1 (en) Mobile terminal and method thereof
CN111228819B (en) Method, device and equipment for protecting Shader
CN112287376A (en) Method and device for processing private data
CN110837643B (en) Activation method and device of trusted execution environment
CN114880011A (en) OTA (over the air) upgrading method and device, electronic equipment and readable storage medium
JP2013255161A (en) Encryption key update system and key update program
CN112416407A (en) Software upgrading method, device, equipment and computer readable storage medium
CN110750800A (en) Data security processing method, device, equipment and storage medium
CN113489667B (en) Verification method, device and medium based on living body detection
CN112528239A (en) Method and device for automatically authorizing software
CN115865532B (en) Communication processing method and device for offline service data
CN112579112B (en) Mirror image security processing and deploying method, device and storage medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201015

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201015

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant