Intelligent backup method, device, equipment and medium for application program data
1. An intelligent backup method for application program data is characterized in that the method is applied to a user terminal, the user terminal and an installation terminal are connected through a network to transmit data information, and the method comprises the following steps:
if a data backup instruction input by a user is received, backing up and storing system catalog data of an application program corresponding to the data backup instruction in the installation terminal through a preset ADB tool;
if the backed-up prompt information fed back by the installation terminal is received, sending an initialization instruction to the installation terminal so that the installation terminal executes the initialization instruction to uninstall and restart the application program;
if the restart prompt information fed back by the installation terminal is received, sending a backup application program corresponding to the application program to the installation terminal so that the installation terminal can install the backup application program;
if receiving the installed prompt information fed back by the installation terminal, acquiring the system directory data which is backed up and stored from the installation terminal;
and analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information.
2. The method for intelligently backing up application program data according to claim 1, wherein the backing up and storing the system catalog data of the application program corresponding to the data backup instruction in the installation terminal by using a preset ADB tool comprises:
determining a corresponding data storage address according to a program identifier contained in the data backup instruction;
and taking the data information corresponding to the data storage address in the installation terminal as the system directory data for backup storage.
3. The method for intelligently backing up application program data according to claim 2, wherein the installation terminal is connected to a cloud server through a network to transmit data information, and before determining a corresponding data storage address according to a program identifier included in the data backup instruction, the method further comprises:
and generating a cloud storage instruction according to the data backup instruction and sending the cloud storage instruction to the installation terminal so that the installation terminal executes the cloud storage instruction and uploads system catalog data of an application program corresponding to the cloud storage instruction to the cloud server for storage.
4. The method for intelligently backing up application data according to claim 1, wherein the sending the backup application corresponding to the application to the installation terminal comprises:
acquiring an alternative application program matched with the program identifier in a prestored program database according to the program identifier of the application program;
and screening out one alternative application program closest to the version information from the alternative application programs according to the version information of the application program to serve as a backup application program corresponding to the application program.
5. The method for intelligently backing up application data according to claim 4, wherein the screening out one of the alternative applications that is closest to the version information according to the version information of the application as the backup application corresponding to the application comprises:
comparing the version information of the alternative application programs with the version information of the application programs to obtain a version difference value between each alternative application program and the application program;
and obtaining one alternative application program with version information smaller than the application program and the corresponding version difference being minimum from the alternative application programs, and determining the alternative application program as the backup application program.
6. The method for intelligently backing up application program data according to claim 1, wherein the data parsing rule includes a decryption algorithm and a format conversion rule, and the parsing the system directory data according to a preset data parsing rule to obtain a corresponding directory parsing file and directory data parsing information includes:
decrypting the system directory data according to the decryption algorithm to obtain a decrypted data file;
carrying out format conversion on each decrypted data file according to the format conversion rule to obtain a directory analysis file;
and acquiring file basic information of each directory analysis file as the directory data analysis information.
7. The method for intelligently backing up application data according to claim 6, wherein the format conversion rule includes cutting information and format information, and the performing format conversion on each decrypted data file according to the format conversion rule to obtain a directory resolution file includes:
cutting data corresponding to the cutting information in each decrypted data file according to the cutting information to obtain a cut data file corresponding to each decrypted data file;
and carrying out format conversion on the cut data files according to the format information to obtain a directory analysis file corresponding to each cut data file.
8. An apparatus for intelligent backup of application data, the apparatus comprising:
the system directory data backup storage unit is used for performing backup storage on system directory data of an application program corresponding to a data backup instruction in the installation terminal through a preset ADB tool if the data backup instruction input by a user is received;
the initialization instruction sending unit is used for sending an initialization instruction to the installation terminal if the backed-up prompt information fed back by the installation terminal is received, so that the installation terminal executes the initialization instruction to uninstall and restart the application program;
a backup application program sending unit, configured to send a backup application program corresponding to the application program to the installation terminal if receiving restart prompt information fed back by the installation terminal, so that the installation terminal installs the backup application program;
the system directory data acquisition unit is used for acquiring the system directory data which is backed up and stored from the installation terminal if the installation prompt information fed back by the installation terminal is received;
and the system directory data analysis unit is used for analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the intelligent backup method of application data according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the intelligent backup method of application data according to any one of claims 1 to 7.
Background
With the increasing popularization of intelligent devices, users can select from various application programs and install and use the application programs, personal use data corresponding to each user is generated in the process of using the application programs, and the personal use data is stored in the terminal device for installing the application programs and cannot be directly viewed. A user has a need to back up personal use data in the process of using an application program, but the application program usually does not provide the data backup function, so that the user cannot conveniently acquire corresponding personal use data from a terminal device in which the application program is installed and perform backup storage, thereby affecting the efficiency of performing backup storage on the data. Therefore, the conventional method has a problem that the personal use data cannot be efficiently acquired and backed up for storage.
Disclosure of Invention
The embodiment of the invention provides an intelligent backup method, device, equipment and medium for application program data, and aims to solve the problem that personal use data cannot be efficiently acquired and backed up for storage in the prior art.
In a first aspect, an embodiment of the present invention provides an intelligent backup method for application data, including:
if a data backup instruction input by a user is received, backing up and storing system catalog data of an application program corresponding to the data backup instruction in the installation terminal through a preset ADB tool;
if the backed-up prompt information fed back by the installation terminal is received, sending an initialization instruction to the installation terminal so that the installation terminal executes the initialization instruction to uninstall and restart the application program;
if the restart prompt information fed back by the installation terminal is received, sending a backup application program corresponding to the application program to the installation terminal so that the installation terminal can install the backup application program;
if receiving the installed prompt information fed back by the installation terminal, acquiring the system directory data which is backed up and stored from the installation terminal;
and analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information.
In a second aspect, an embodiment of the present invention provides an intelligent backup apparatus for application data, including:
the system directory data backup storage unit is used for performing backup storage on system directory data of an application program corresponding to a data backup instruction in the installation terminal through a preset ADB tool if the data backup instruction input by a user is received;
the initialization instruction sending unit is used for sending an initialization instruction to the installation terminal if the backed-up prompt information fed back by the installation terminal is received, so that the installation terminal executes the initialization instruction to uninstall and restart the application program;
a backup application program sending unit, configured to send a backup application program corresponding to the application program to the installation terminal if receiving restart prompt information fed back by the installation terminal, so that the installation terminal installs the backup application program;
the system directory data acquisition unit is used for acquiring the system directory data which is backed up and stored from the installation terminal if the installation prompt information fed back by the installation terminal is received;
and the system directory data analysis unit is used for analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the intelligent backup method for application data according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the method for intelligently backing up application data according to the first aspect.
The embodiment of the invention provides an intelligent backup method, device, equipment and medium for application program data. According to a data backup instruction input by a user, acquiring corresponding system directory data from an installation terminal through an ADB tool for backup storage, sending an initialization instruction to the installation terminal to uninstall an application program and restart the application program, sending a backup application program corresponding to the application program to the installation terminal for installation, acquiring the backed-up and stored system directory data from the installation terminal, and analyzing the system directory data to obtain directory data analysis information. By the method, the system catalog data can be backed up and stored by the ADB tool, the system catalog data is acquired from the installation terminal after the equipment application program is reinstalled and transmitted to the user terminal for storage, the backup storage required by the user can be conveniently and quickly acquired from the installation terminal, the catalog data analysis information is obtained by analysis from the backup storage, the user can conveniently check the catalog data, and the efficiency of the backup storage of the system catalog data is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an intelligent backup method for application data according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of an intelligent backup method for application data according to an embodiment of the present invention;
fig. 3 is another schematic flowchart of an intelligent backup method for application data according to an embodiment of the present invention;
fig. 4 is a schematic sub-flow chart of an intelligent backup method for application data according to an embodiment of the present invention;
FIG. 5 is a schematic view of another sub-flow chart of the method for intelligently backing up application data according to the embodiment of the present invention;
FIG. 6 is a schematic view of another sub-flow chart of the method for intelligently backing up application data according to the embodiment of the present invention;
FIG. 7 is a schematic view of another sub-flow chart of an intelligent backup method for application data according to an embodiment of the present invention;
FIG. 8 is a schematic view of another sub-flow chart of the method for intelligently backing up application data according to the embodiment of the present invention;
fig. 9 is a schematic block diagram of an intelligent backup device for application data according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart illustrating an intelligent backup method for application data according to an embodiment of the present invention; the intelligent backup method of the application program data is applied to a user terminal 10, the intelligent backup method of the application program data is executed through application software installed in the user terminal 10, the user terminal 10 is connected with an installation terminal 20 through a network to transmit data information, the user terminal 10 is a terminal device which can receive a data backup instruction input by a user to acquire corresponding system directory data from the installation terminal 20 to perform backup storage, such as a desktop computer, a notebook computer or a tablet computer, and the installation terminal 20 is a terminal device which is used for installing the application program and the backup application program, such as a mobile phone and an intelligent watch; the installation terminal 20 is connected to the cloud server 30 via a network to transmit data information, and the cloud server 30 is a server side, such as a server constructed by an enterprise or a government department, that can provide services for the installation terminal 20 to install the application program. As shown in fig. 1, the method includes steps S110 to S150.
And S110, if a data backup instruction input by a user is received, backing up and storing system catalog data of an application program corresponding to the data backup instruction in the installation terminal through a preset ADB tool.
And if a data backup instruction input by a user is received, backing up and storing system catalog data of an application program corresponding to the data backup instruction in the installation terminal through a preset ADB tool. The user can input a data backup instruction to the user terminal, and the user terminal can backup and store system directory data of an application program corresponding to the data backup instruction in the installation terminal through an ADB (Android Debug Bridge) tool, wherein the ADB tool is a script tool configured in the user terminal in advance, and the ADB tool can read corresponding system directory data from the application program corresponding to the data backup instruction installed in the installation terminal and transfer the system directory data to other storage areas of the installation terminal for backup and storage.
In one embodiment, as shown in FIG. 3, step S110 includes sub-steps S111 and S112.
S111, determining a corresponding data storage address according to a program identifier contained in the data backup instruction; and S112, backing up and storing the data information corresponding to the data storage address in the installation terminal as the system directory data.
Specifically, the data backup instruction includes a program identifier, the program identifier uniquely corresponds to each application program, and the program identifier may be information such as a name or an application serial number of the application program. The application program records a corresponding data storage address, and after acquiring the personal use data of the user, the application program can store the personal use data into a directory corresponding to the data storage address in the installation terminal according to the data storage address. The application program installed in the installation terminal and uniquely corresponding to the program identifier can be obtained according to the program identifier contained in the data backup instruction, and the data storage address in the uniquely corresponding application program can be further obtained. The data information corresponding to the target storage can be acquired from the installation terminal according to the determined data storage address to be used as system directory data corresponding to the data backup instruction for backup storage, the data storage address of the application program can be one or more, and if the data storage address is one, the data information is directly acquired from a directory corresponding to the data storage address to be used as the system directory data; if the number of the data storage addresses is multiple, the corresponding multiple data information needs to be acquired from the corresponding multiple directories respectively to serve as the system directory data. For example, the system directory data may be chat records, audio/video documents, and contact data, and the backup storage is only to transfer the system directory data to other storage areas in the installation terminal for backup storage. More specifically, before backing up and storing the data information in the directory corresponding to the data storage address, the installation terminal may also perform overall encryption on the data information corresponding to the data storage address, and perform subsequent processing on the data information obtained through encryption as system directory data, where the encryption process may be implemented based on the AES-256 algorithm.
In one embodiment, as shown in fig. 4, step S1110 is further included before step S111.
S1110, generating a cloud storage instruction according to the data backup instruction and sending the cloud storage instruction to the installation terminal, so that the installation terminal executes the cloud storage instruction and uploads system catalog data of an application program corresponding to the cloud storage instruction to the cloud server for storage.
Before determining the data storage address corresponding to the data backup instruction, a corresponding cloud storage instruction can be generated according to the data backup instruction and sent to the installation terminal, and specifically, the generated cloud storage instruction includes information such as a program identifier and generation time. The installation terminal can execute the cloud storage instruction and upload the corresponding system catalog data to the cloud server for storage, the cloud server is a server side corresponding to the application program, and a user can obtain the service provided by the cloud server corresponding to the application program by using the application program.
And S120, if the backup prompt information fed back by the installation terminal is received, sending an initialization instruction to the installation terminal so that the installation terminal executes the initialization instruction to uninstall and restart the application program.
And if the backed-up prompt information fed back by the installation terminal is received, sending an initialization instruction to the installation terminal so that the installation terminal executes the initialization instruction to uninstall and restart the application program. The installation terminal can feed back the backed-up prompt information to the user terminal after finishing the backup storage of the system directory data, the user terminal can send a prestored initialization instruction to the installation terminal after receiving the prompt information, and the installation terminal executes the initialization instruction to realize initialization.
And S130, if the restart prompt information fed back by the installation terminal is received, sending a backup application program corresponding to the application program to the installation terminal so that the installation terminal installs the backup application program.
And if the restart prompt information fed back by the installation terminal is received, sending a backup application program corresponding to the application program to the installation terminal so that the installation terminal installs the backup application program. The installation terminal can feed back restart prompt information to the user terminal after finishing initialization, the restart prompt information comprises version information of the uninstalled application program, the user terminal can send a pre-stored backup application program corresponding to the application program to the installation terminal after receiving the prompt information, the installation terminal can install the installation terminal after receiving the backup application program, specifically, the same application program usually comprises different application versions, the backup application program is the same as the uninstalled application program, namely, the program identifiers of the backup application program and the uninstalled application program are the same, the difference is only that the version numbers of the backup application program are different, and the backup application program can be a program with an older version relative to the application program.
In one embodiment, as shown in fig. 5, step S130 includes sub-steps S131 and S132.
S131, obtaining the alternative application program matched with the program identifier in the pre-stored program database according to the program identifier of the application program.
The user terminal is pre-stored with a program database, the program database can store programs of multiple program versions corresponding to the application programs, and then the program matched with the program identification can be obtained from the program database as an alternative application program according to the program identification of the application program, and one or more alternative application programs matched with the program identification in the program database can be provided.
S132, according to the version information of the application programs, one alternative application program closest to the version information is screened from the alternative application programs to serve as a backup application program corresponding to the application program.
The restarted prompt message contains version information corresponding to the unloaded application program, each alternative application program correspondingly has one version information, one alternative application program closest to the version information can be screened from the alternative application programs according to the version information of the unloaded application program to serve as a corresponding backup application program, and the backup application program is sent to the installation terminal for installation.
In one embodiment, as shown in fig. 6, step S132 includes substeps S1321 and S1322.
S1321, comparing the version information of the alternative application programs with the version information of the application programs to obtain a version difference value between each alternative application program and the application program; s1322, obtaining, from the candidate applications, a candidate application whose version information is smaller than the application and whose corresponding version difference is the smallest, and determining that the candidate application is the backup application.
Specifically, the version information of each candidate application program may be compared with the version information of the uninstalled application program to obtain a version difference corresponding to each candidate application program. Specifically, the version information may be represented in a digital form, for example, "1.0.3.105", two version information may be compared to obtain a corresponding version difference, and each alternative application may be compared with the uninstalled application to obtain a corresponding version difference, where, for example, the version information of the uninstalled application is "1.0.3.105", the version information of a certain alternative application is "1.0.2.127", and the corresponding version difference is "0.0.0.978". Based on the obtained version difference, a candidate application program with version information smaller than the uninstalled application program and the smallest version difference with the uninstalled application program can be obtained as the backup application program.
And S140, if the installation prompt information fed back by the installation terminal is received, obtaining the system directory data which is backed up and stored from the installation terminal.
And if receiving the installed prompt information fed back by the installation terminal, acquiring the system directory data which is backed up and stored from the installation terminal. And if the installed prompt information fed back by the installation terminal is received, the system directory data which is backed up and stored can be obtained from the installation terminal.
S150, analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information.
And analyzing the system directory data according to a preset data analysis rule to obtain a corresponding directory analysis file and directory data analysis information. The system directory data acquired from the installation terminal can be analyzed according to the data analysis rule, and a directory analysis file and target data analysis information corresponding to the system directory data are obtained. The directory parsing file is a file which is obtained by parsing system target data and stores data information, the directory data parsing information is data information which records file basic information of each directory parsing file, the obtained directory parsing file can be directly read and used by a user, the directory data parsing information can be used for recording general profiles of the directory parsing files, and the user can clearly view the file basic information corresponding to each directory parsing file by obtaining the directory data parsing information. The data analysis rule comprises a decryption algorithm and a format conversion rule.
In one embodiment, as shown in fig. 7, step S150 includes sub-steps S151, S152, and S153.
And S151, decrypting the system directory data according to the decryption algorithm to obtain a decrypted data file.
The obtained system directory data is encrypted data, and the system directory data can be decrypted according to a decryption algorithm to obtain a decrypted data file, wherein the decryption algorithm can be an AES-256 algorithm.
S152, carrying out format conversion on each decrypted data file according to the format conversion rule to obtain a directory analysis file.
The decrypted data file may be one or more, and the decrypted data file may be an ab suffix file, that is, the decrypted data file is a file in an ab format, and in order to enable a user to directly read and use the corresponding file, format conversion processing may be performed on the obtained decrypted data file to obtain a directory analysis file. Wherein the format conversion rule comprises cutting information and format information. The decrypted data file obtained by decrypting the system directory data backed up in the user terminal cannot be directly browsed by a user, namely the user cannot directly browse the file in the ab format.
In one embodiment, as shown in fig. 8, step S152 includes sub-steps S1521 and S1522.
S1521, according to the cutting information, cutting the data corresponding to the cutting information in each decrypted data file to obtain a cut data file corresponding to each decrypted data file.
The data stored in each decrypted data file can be cut according to the cutting information, specifically, the data corresponding to the cutting information can be determined from each decrypted data file, and the data corresponding to the cutting information is deleted from each decrypted data file, so that the cut data file corresponding to each decrypted data file is obtained.
For example, if the cutting information is 18-24 bytes, the data corresponding to the 18 th-24 th byte can be obtained from each decrypted data file and deleted, so as to obtain the cutting data file corresponding to each decrypted data file.
S1522, format conversion is carried out on the cutting data files according to the format information, and directory analysis files corresponding to the cutting data files are obtained.
The format conversion can be performed on the obtained cutting data file according to the format information, the directory analysis file obtained through conversion corresponds to the format recorded in the format information, and each cutting data file can be converted to obtain a corresponding directory analysis file.
For example, if the format information is Tar, each clipped data file may be correspondingly converted into a file in the Tar format according to the format information, and the converted file in the Tar format is a directory analysis file.
S153, acquiring file basic information of each directory parsing file as the directory data parsing information.
The file basic information of each directory parsing file can be acquired, and the file basic information of each directory parsing file is integrated to obtain corresponding directory data parsing information, that is, the obtained directory data parsing information contains file basic information corresponding to each directory parsing file. The file basic information of a directory parsing file may include information such as a file name, an occupied space, and a file storage path corresponding to the directory parsing file.
In the method for intelligently backing up application program data provided by the embodiment of the invention, according to a data backup instruction input by a user, corresponding system directory data is obtained from an installation terminal through an ADB tool for backup storage, an initialization instruction is sent to the installation terminal to unload an application program and restart the application program, a backup application program corresponding to the application program is sent to the installation terminal for installation, the backed-up and stored system directory data is obtained from the installation terminal, and the system directory data is analyzed to obtain directory data analysis information. By the method, the system catalog data can be backed up and stored by the ADB tool, the system catalog data is acquired from the installation terminal after the equipment application program is reinstalled and transmitted to the user terminal for storage, the backup storage required by the user can be conveniently and quickly acquired from the installation terminal, the catalog data analysis information is obtained by analysis from the backup storage, the user can conveniently check the catalog data, and the efficiency of the backup storage of the system catalog data is greatly improved.
The embodiment of the present invention further provides an intelligent backup device for application data, where the intelligent backup device for application data may be configured in the user terminal 10, and the intelligent backup device for application data is configured to execute any one of the foregoing intelligent backup methods for application data. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of an intelligent backup device for application data according to an embodiment of the present invention.
As shown in fig. 9, the intelligent backup apparatus 100 for application data includes a system catalog data backup storage unit 110, an initialization instruction transmission unit 120, a backup application transmission unit 130, a system catalog data acquisition unit 140, and a system catalog data parsing unit 150.
The system catalog data backup storage unit 110 is configured to, if a data backup instruction input by a user is received, backup and store system catalog data of an application program corresponding to the data backup instruction in the installation terminal through a preset ADB tool.
In one embodiment, the system catalog data backup storage unit 110 includes subunits: the data storage address determining unit is used for determining a corresponding data storage address according to a program identifier contained in the data backup instruction; and the backup storage unit is used for performing backup storage on the data information corresponding to the data storage address in the installation terminal as the system directory data.
In one embodiment, the system catalog data backup storage unit 110 further includes a subunit: and the cloud storage instruction sending unit is used for generating a cloud storage instruction according to the data backup instruction and sending the cloud storage instruction to the installation terminal so that the installation terminal executes the cloud storage instruction and uploads system catalog data of an application program corresponding to the cloud storage instruction to the cloud server for storage.
An initialization instruction sending unit 120, configured to send an initialization instruction to the installation terminal if the backed-up prompt information fed back by the installation terminal is received, so that the installation terminal executes the initialization instruction to uninstall and restart the application program.
A backup application sending unit 130, configured to send, if receiving the restart prompt information fed back by the installation terminal, a backup application corresponding to the application to the installation terminal, so that the installation terminal installs the backup application.
In one embodiment, the backup application sending unit 130 includes sub-units: the alternative application program acquisition unit is used for acquiring alternative application programs matched with the program identifiers in a pre-stored program database according to the program identifiers of the application programs; and the backup application program acquisition unit is used for screening out one alternative application program closest to the version information from the alternative application programs according to the version information of the application program as the backup application program corresponding to the application program.
In one embodiment, the backup application acquisition unit includes a subunit: the version difference acquiring unit is used for comparing the version information of the alternative application programs with the version information of the application programs to obtain the version difference between each alternative application program and the application program; and the backup application program determining unit is used for acquiring one alternative application program of which the version information is smaller than the application program and the corresponding version difference value is the smallest from the alternative application programs and determining the alternative application program as the backup application program.
A system directory data obtaining unit 140, configured to obtain the backed-up and stored system directory data from the installation terminal if receiving the installation prompt information fed back by the installation terminal.
The system directory data parsing unit 150 is configured to parse the system directory data according to a preset data parsing rule to obtain a corresponding directory parsing file and directory data parsing information.
In one embodiment, the system catalog data parsing unit 150 includes sub-units: the decryption unit is used for decrypting the system directory data according to the decryption algorithm to obtain a decrypted data file; a directory parsing file obtaining unit, configured to perform format conversion on each decrypted data file according to the format conversion rule to obtain a directory parsing file; and the target data analysis information acquisition unit is used for acquiring the file basic information of each directory analysis file as the directory data analysis information.
In one embodiment, the format conversion unit includes a subunit: the data cutting unit is used for cutting data corresponding to the cutting information in each decrypted data file according to the cutting information to obtain a cut data file corresponding to each decrypted data file; and the format conversion unit is used for carrying out format conversion on the cut data files according to the format information to obtain a directory analysis file corresponding to each cut data file.
According to the intelligent backup method for the application program data, provided by the embodiment of the invention, the corresponding system directory data is acquired from the installation terminal through the ADB tool according to the data backup instruction input by the user for backup storage, the initialization instruction is sent to the installation terminal to unload the application program and restart the application program, the backup application program corresponding to the application program is sent to the installation terminal for installation, the backed-up and stored system directory data is acquired from the installation terminal, and the system directory data is analyzed to obtain directory data analysis information. By the method, the system catalog data can be backed up and stored by the ADB tool, the system catalog data is acquired from the installation terminal after the equipment application program is reinstalled and transmitted to the user terminal for storage, the backup storage required by the user can be conveniently and quickly acquired from the installation terminal, the catalog data analysis information is obtained by analysis from the backup storage, the user can conveniently check the catalog data, and the efficiency of the backup storage of the system catalog data is greatly improved.
The intelligent backup means of the application data may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a user terminal for executing an intelligent backup method of application data to acquire corresponding system directory data from an installation terminal for backup storage.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform an intelligent backup method for application data, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute an intelligent backup method of application data.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned intelligent backup method of application data.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps included in the above-mentioned intelligent backup method for application data.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.