CN113505153B - Memorandum backup method based on iOS system and related equipment - Google Patents

Memorandum backup method based on iOS system and related equipment Download PDF

Info

Publication number
CN113505153B
CN113505153B CN202110511612.7A CN202110511612A CN113505153B CN 113505153 B CN113505153 B CN 113505153B CN 202110511612 A CN202110511612 A CN 202110511612A CN 113505153 B CN113505153 B CN 113505153B
Authority
CN
China
Prior art keywords
information
uuid
memo
text
search
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
CN202110511612.7A
Other languages
Chinese (zh)
Other versions
CN113505153A (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.)
Afirstsoft Co Ltd
Original Assignee
Afirstsoft 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 Afirstsoft Co Ltd filed Critical Afirstsoft Co Ltd
Priority to CN202110511612.7A priority Critical patent/CN113505153B/en
Publication of CN113505153A publication Critical patent/CN113505153A/en
Application granted granted Critical
Publication of CN113505153B publication Critical patent/CN113505153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a memo backup method and related equipment based on an iOS system, wherein the method comprises the steps of obtaining a memo database to be analyzed; decompressing text data segments of a content data table in the memo database to obtain a serialized file; performing deserialization on the serialized file according to a preset serialization protocol to obtain initial information corresponding to the memo database; when the initial information contains text information, generating a memo file corresponding to the text information according to the text information; and when the initial information contains the search UUID, searching the backup folder corresponding to the memo database according to the search UUID to obtain non-text information corresponding to the memo database, and generating a memo file corresponding to the search UUID according to the text information and the non-text information. The invention can realize the reading and displaying of the memo on the iOS system on other operating systems and realize the file universality among a plurality of systems.

Description

Memorandum backup method based on iOS system and related equipment
Technical Field
The invention relates to the field of data processing, in particular to a memorandum backup method based on an iOS system and related equipment.
Background
The iOS system is a mobile operating system developed by apple company, is initially used for a mobile phone self-produced by apple company, is subsequently transplanted and applied to devices such as iPod, iPad and the like, and belongs to Unix business operating systems.
Because the iOS system is relatively closed, a lot of software can only run on the iOS system, when a user wants to process information stored on the iOS software by using equipment of other operating systems, the software is developed by a developer of the software to run on multiple platforms, and then the running and the processing on the platforms of different operating systems are realized through a cloud.
However, for software that is limited to the development of iOS systems, the user cannot implement processing on the platform of a different operating system.
For example, an application program "memo" built in the iOS system has no scheme for analyzing the memo software currently on the market, so that when a user records and backs up an event, the user can only record and back up the event by downloading third-party software, and the processing and running on platforms of different operating systems can be realized. Therefore, two types of software with the same function exist in the mobile phone, so that the system memory is occupied, and new function experience cannot be brought to a user, thereby causing unnecessary waste. In addition, it is inconvenient that the memo which has been previously stored can be reproduced only by copying or the like.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a memo backup method based on an iOS system aiming at the defects of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a memo backup method based on an iOS system, the method comprising:
acquiring a memo database to be analyzed;
decompressing text data segments of a content data table in the memo database to obtain a serialized file;
performing deserialization on the serialized file according to a preset serialization protocol to obtain initial information corresponding to the memo database, wherein the initial information comprises text information and/or a search UUID;
when the initial information contains the text information, generating a memo file corresponding to the text information according to the text information; and
And when the initial information comprises the search UUID, searching the backup folder corresponding to the memo database according to the search UUID to obtain non-text information corresponding to the memo database, and generating a memo file corresponding to the search UUID according to the text information and the non-text information.
The method for backing up memo based on iOS system, wherein when the initial information includes the search UUID, searches the backup folder corresponding to the memo database according to the search UUID to obtain non-text information corresponding to the memo database, and before generating the memo file corresponding to the search UUID according to the text information and the non-text information, further comprises:
Screening each piece of accessory information in an accessory information table in the memo database according to a preset data screening rule to obtain target data in the accessory information;
analyzing the target data according to a preset analysis rule to obtain a main UUID corresponding to the memo database, a plurality of sub UUIDs corresponding to the main UUID and file names corresponding to the sub UUIDs;
and constructing a mapping table corresponding to the accessory information table according to the main UUID, the sub UUID and the file name.
The method for backing up memo based on iOS system, wherein, according to the search UUID, searches the backup folder corresponding to the memo database to obtain non-text information corresponding to the memo database, specifically includes:
When the search UUID is matched with a preset mapping table to obtain a matched UUID, generating first search information according to a preset first generation rule and the matched UUID;
Determining a target folder in the backup folder corresponding to the memo database according to the first two initial letters of the first retrieval information;
and searching the target folder according to the first search information to obtain non-text information corresponding to the search UUID.
The memo backup method based on the iOS system, wherein the generating the first search information according to the preset first generation rule and the matching UUID specifically includes:
writing the matched UUID and the file name corresponding to the matched UUID into a preset first name template to obtain a first name text, wherein the first name template comprises fixed information, and the fixed information comprises a first root directory;
And calculating the SHA value corresponding to the first name text and taking the SHA value as retrieval information.
The method for backing up memo based on iOS system, wherein, according to the search UUID, searches the backup folder corresponding to the memo database to obtain non-text information corresponding to the memo database, specifically includes:
when the search UUID is matched with a preset mapping table to obtain a null result, generating second search information according to a preset second generation rule and the search UUID;
determining a second folder in the backup folders corresponding to the memo database according to the first two initial letters of the second retrieval information;
And taking the file with the same name as the second retrieval information in the second folder as non-text information corresponding to the retrieval UUID.
The method for backing up memo based on the iOS system, wherein when the search UUID is matched with a preset mapping table to obtain a null result, generating second search information according to a preset second generation rule and the search UUID includes:
Writing the search UUID into a preset second name template to obtain a second name text, wherein the second name template comprises a file suffix;
And calculating the SHA value corresponding to the second name text and taking the SHA value as the second retrieval information.
The method for backing up memo based on iOS system, wherein, according to the search UUID, searches the backup folder corresponding to the memo database, and before obtaining the non-text information corresponding to the memo database, further comprises:
Determining first user information of an accessory information table and second user information in a reference information table according to a preset screening rule, wherein the accessory information table and the reference information table are data tables in the memo database;
matching the first user information with the second user information to obtain target user information;
And determining the user account corresponding to the memo database according to the target user information.
The memorandum backup device based on the iOS system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a memorandum database to be analyzed;
the decompression module is used for decompressing the text data segment of the content data table in the memo database to obtain a serialized file;
The deserializing module is used for deserializing the serialized file according to a preset serializing protocol to obtain initial information corresponding to the memo database, wherein the initial information comprises text information and/or a search UUID;
The text module is used for generating a memo file corresponding to the text information according to the text information when the initial information contains the text information; and
And the non-text module is used for searching the backup folder corresponding to the memo database according to the search UUID when the initial information contains the search UUID, obtaining non-text information corresponding to the memo database, and generating a memo file corresponding to the search UUID according to the text information and the non-text information.
A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the iOS system-based memo backup method as described in any one of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
The communication bus realizes connection communication between the processor and the memory;
The processor, when executing the computer-readable program, implements the steps in the iOS system-based memo backup method as described in any one of the above.
The beneficial effects are that: compared with the prior art, the invention provides a memo backup method and related equipment based on an iOS system, wherein the method firstly acquires a memo database with analysis, and the memo database is a database file obtained by backing up a memo in the iOS system. The memo has several data tables, and the content data tables are stored with data related to the memo information recorded by the memo in the form of text data segment. And then decompressing the text data segment to obtain the serialized file corresponding to the text data segment. And then, performing deserialization processing on the serialized file through a serialization protocol corresponding to the serialized file to obtain the initial information in the text characters. If the memo information in the memo is stored in the form of texts such as characters and tables, the initial information is text information, and the memo file which can be watched on other platforms is directly generated according to the text information. If the memo includes files in audio format, the initial information includes UUID (Universally Unique Identifier, universal unique identifier) strings, and the memo database is searched according to the UUID strings, so as to obtain non-text files in audio format, corresponding to the UUID strings, and then a memo file corresponding to the memo information is generated according to the non-text files.
Drawings
Fig. 1 is a flowchart of a memo backup method based on an iOS system provided by the invention.
Fig. 2 is a flowchart of searching by adopting a search UUID in the memo backup method based on the iOS system provided by the invention.
Fig. 3 is a schematic diagram of a memo backup device based on an iOS system according to the present invention.
Fig. 4 is a schematic structural diagram of a terminal device provided by the present invention.
Detailed Description
The invention provides a memo backup method and related equipment based on an iOS system, which are used for making the purposes, technical schemes and effects of the invention clearer and more definite, and the invention is further described in detail below by referring to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, 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 will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For example, the embodiment of the present invention may be applied to a specific memo parsing software or a plug-in existing office software. The software can be applied to a plurality of mobile platforms, and the embodiment uses memo analysis software as an execution subject for description.
The invention will be further described by the description of embodiments with reference to the accompanying drawings.
As shown in fig. 1, the present embodiment provides a memo backup method based on the iOS system, which may include the following steps:
s10, acquiring a memo database to be analyzed.
Specifically, when a user needs to parse a certain memo database, the memo database is imported into the memo parsing software, and the memo parsing software obtains a memo database to be parsed.
Before that, the user needs to guide the memo to be backed up to the operating system installed with the memo analysis software, taking a common Windows system as an example, the user runs the itunes. Exe program on the operating system, and then starts the backup function of the itunes. Exe program to backup the memo loaded terminal. After Backup, there is a memo folder on the operating system for storing Backup content, where the address of the memo folder may be a default or user-defined address, and the default address is generally "% appdata% Apple computer\ MobileSync \backup". Under the directory of the address, there are a plurality of memo folders, each of which corresponds to a memo in one of the memo software. The memo database to be acquired by the memo parsing software is in the memo folder under the directory. For each memo folder, the memo folder includes a memo database to be analyzed and a memo information file, the file name of the memo information file is "management. Plist", the memo information file records some information of a memo corresponding to the memo folder, one of the information is an encryption parameter, the name of the information is "ISENCRYPTE" in the folder, the value of the encryption parameter is used for indicating whether the memo is in an encryption state, and if the memo is in the encryption state, the subsequent memo analysis software cannot read the memo database in the folder. Therefore, it is first determined whether the memo is encrypted according to the number of the encryption parameter. If the value is "wire", the memo is in an encrypted state, and a preset key input window is popped up so as to facilitate the user to input the key. When the key for the key input window is detected, decrypting the subfolder according to the key, thereby obtaining a memo database which can be directly read by the memo analysis software. If the value is "false", the memo is in an unencrypted state, and the memo parsing software can directly obtain the memo database.
The memo folder includes a directory database, in addition to the memo database and the memo information file, and the general directory database is named as "management. Db", and is a sqlite3 database. The storage path of the memo corresponding to the memo folder on the iOS system and the corresponding SHA value are recorded on the directory database, and the storage path and the file name of the file in the established memo folder are established according to the SHA value. The directory database includes a file path table named "file", and a path corresponding to the memo database is selected from the related paths (RELATIVE PATH) in the file table and used as a target path. For example, in the file table, "notistor.sqlite" is commonly used to represent a memo database, and a file name number corresponding to data having a field value of "notistor.sqlite" is used as a target path corresponding to the memo database. For example, its file name number is "4f98687d8ab0d6d1a371110e6b7300f6e465 bef" and the path of this memo database under this memo folder is "the first two initials of the file name number" + "file name number", i.e. "4 f/4 f 98687d8ab6d1a37720 e6b7300f6e 463 bef2". The user can determine the path of the memo database by himself and import the path into the memo analysis software, and can analyze the directory database in the memo folder by the memo analysis software so as to determine the path of the memo database and acquire the memo database. In addition, the memo database may be obtained by parsing each file in the memo folder, and the like, and is not described in detail herein.
S20, determining text data segments of a content data table in the memo database according to preset text field names.
Specifically, the memo database is also a sqlite3 database, which is a database storing core data in a memo. The memo may store a variety of file types including text, pictures, audio-video, documents in the form of attachments, and the like. For text information such as simple characters and tables, the memo data is directly stored, and other types of files are not directly stored in the memo database because of large data volume, but files stored in other positions are connected with the memo database in series in a form of UUID character strings, so that in the embodiment, the core data stored in the memo database comprises text information in the memo and UUID character strings corresponding to non-text information in the memo.
There are several tables in the memo database, and the content data table records the text data table, such as text, table, etc. in the memo corresponding to the memo database. In the memo database, the table name of the content data table is "ZICNOTEDATA", and the following table is the main information stored in the content data table:
Fields Meaning of
ZNOTE Identification associated with an attachment information table
ZDATA Memorandum data
The "ZDATA" field in the content data table speaks the corresponding data segment, i.e., the text data segment in the memo database. The text data segment is a binary large object (binary large object, BLOB) type of data, storing binary data. And then decompressing the text data segment, wherein the decompression mode is determined according to the characteristics of the compressed file, and in the embodiment, the first few bytes of the text data segment are 1f8b 0800 which accords with the file header characteristics of the gzip format, so that the decompression mode is gzip decompression. The decompressed file is a serialized file.
S30, performing deserialization on the serialized file according to a preset serialization protocol to obtain initial information corresponding to the memo database, wherein the initial information comprises text information and/or a search UUID.
Specifically, the binary data is first serialized, so that the custom object is persisted in a certain storage form, and cross-platform transmission is realized. Thus, obtaining a serialized file refers to a file that is generated after serializing the original file. To obtain the original file, it needs to be deserialized. In this embodiment, since the iOS system file is transferred to the Windows system, the deserialization is required based on the protocol in which the iOS system performs the serialization. The iOS system can adjust the anti-serialization protocol according to the plain of the memo analysis software, wherein the serialization protocols of different operating systems are different. The following are key parts in the serialization protocol:
/>
/>
/>
Based on the serialization protocol, the serialization file is deserialized, so that initial information corresponding to the memo database is obtained, wherein the initial information includes core data recorded in the memo database, text information such as memo characters and tables, and UUID character strings of data storage paths such as images and music. The UUID string is subsequently used to retrieve the backup subfolder, so that it is distinguished from other UUIDs, and the UUID string obtained in this step is named as the retrieved UUID.
S40, when the initial information contains the text information, generating a memo file corresponding to the text information according to the text information; and when the initial information contains the search UUID, searching the backup folder corresponding to the memo database according to the search UUID to obtain non-text information corresponding to the memo database, and generating a memo file corresponding to the search UUID according to the text information and the non-text information.
Specifically, when the initial information does not include the search UUID, it is indicated that the corresponding memo of the memo database has text contents, so that a memo file is directly generated according to the text information obtained by parsing. The content in the memo file, namely the content contained in the text information, can be in various forms such as txt, pdf and the like, and a user can watch the memo file on a non-iOS operating system, so that the effect of browsing the memo is achieved.
When the initial information includes a search UUID, it is explained that the memo corresponding to the memo database exists in contents other than text contents, such as images and music. Therefore, according to the search UUID, the memo database needs to be searched to obtain the non-text information corresponding to the search UUID.
There are various ways to retrieve the corresponding information based on UUID strings, as shown in fig. 2, this embodiment provides a retrieval way with a higher retrieval rate, and before retrieving, a mapping table corresponding to the memo database is constructed, where the specific construction process of the mapping table is as follows:
a10, screening each piece of attachment information in the attachment information table in the memo database according to a preset data screening rule to obtain target data in the attachment information.
Specifically, the memo database further includes an attachment information table, the name of which is generally "ZICCLOUDSYNCINGOBJECT", and the attachment information table records the related information of the attachment in the memo that is already related to the user. The main contents stored in the attachment information table are as follows:
Fields Meaning of
ZTITLE1 Name of memo
Z_PK Identifier associated with a table of content data
ZCREATIONDATE Time of creation of memo
ZMODIFICATIONDATE1 Last modification time
ZISPASSWORDPROTECTED Whether or not to encrypt
ZMARKEDFORDELETION Whether or not to delete
The accessory information table contains two values for recording the accessories of the accessory information corresponding to the memo, and the names of the accessories are Z_PK and ZMEDIA respectively. If "z_pk" in a piece of attachment information is equal to "ZMEDIA", the piece of attachment information is likely to record the main UUID and the sub UUID of a piece of attachment.
Therefore, the preset data filtering rule in this embodiment matches the main UUID value and the sub UUID value recorded in the attachment information. The data filtering rule adopted in the embodiment is specifically that if a certain piece of attachment information in the attachment information table simultaneously satisfies the value of (1) ZMEDIA and is not null, namely whether the file corresponding to the attachment information is null or not; (2) ZTYPEUTI is also not null, i.e. whether the unified type identifier corresponding to the attachment information is null; (3) ZMEDIA is equal to the z_pk value, and if the file corresponding to the attachment information is identical to the identifier associated with the content data table, the piece of attachment information is the target data.
If SQL statements are employed, this can be expressed as:
"select a.ZIDENTIFIER as NoteAttachmentID,b.ZIDENTIFIER as NoteAttachmentSubID,b.ZFILENAME as NoteAttachmentFileName
from ZICCLOUDSYNCINGOBJECT as a
left join ZICCLOUDSYNCINGOBJECT ICCLOUDSYNCINGOBJECT as b
on b.Z_PK=a.ZMEDIA
where a.ZMEDIA is not null
or a.ZTYPEUTI is not null”
a20, analyzing the target data according to a preset analysis rule to obtain a main UUID corresponding to the memo database, a plurality of sub UUIDs corresponding to the main UUID and file names corresponding to the sub UUIDs.
Specifically, after the target data is obtained, the target data is analyzed, in this embodiment, an analysis rule is preset, where "NoteAttachmentID" in the target data is a main UUID, "NoteAttachmentSubID" is a child UUID, and "NoteAttachmentFileName" is a file name of the attachment in the memo. The names selected in the parsing rule in this embodiment may also be affected according to the changes to the names of the main UUID, the sub UUID, and the file name in the target data. For example, if the name of the main UUID is changed to "a", the value of "a" is set as the value of the main UUID in the parsing rule.
A30, constructing a mapping table corresponding to the accessory information table according to the main UUID, the sub UUID and the file name.
Specifically, a mapping table is then constructed according to the main UUID, the sub UUID and the file name, and the mapping table corresponds to the accessory information table because the information in the mapping table is obtained from the accessory information. An example of a mapping table provided in this embodiment is as follows:
After the mapping table is obtained, the mapping table is searched according to the search UUID obtained through analysis. Two search results are available, one is that according to the search UUID, the main UUID or the sub UUID corresponding to the search result is matched in the mapping table, and then the matched UUID is obtained after the matching. Based on the matching UUID, the process of obtaining the non-text information is specifically as follows:
And B10, generating first retrieval information according to a preset first generation rule and the matched UUID.
Specifically, a first generation rule set for a matching UUID is preset, and the first generation rule is used for generating first retrieval information for retrieving non-text information for a matching UUID. The first retrieval information is essentially a path of a folder storing non-text information corresponding to the matching UUID.
Presetting a first name template corresponding to a first generation rule, and writing the matched UUID and a file name corresponding to the matched UUID into the preset first name template to obtain a name text.
The first name template includes fixed information, a first variable, and a second variable, the first variable being replaced by a matching UUID and the second variable being replaced by a filename when generated. The fixed information includes two types, one is to directly use the space domain and the directory of the default storage media file as the fixed information, and the other is to use the directory of the storage media file under the user account as the fixed information.
For example, the spatial domain is "AppDomainGroup-group.com.applications" and the first name templates are "AppDomainGroup-group.com.applications-Media/first variable/second variable" and "AppDomainGroup-group.com.applications-Accounts/user account/Media/first variable/second variable".
Taking the user account number "LocalAccount" as an example, matching UUID "78B29ACE-7507-4E2B-819A-70162CFBDC69" and the file name "test. Mov", the obtained name text is "App DomainGroup-group.com. Patent-Media/78B 29ACE-7507-4E2B-819A-70162 CFBDC/test. Mov" and "AppDomainGroup-group.com.apple.notes-Accounts/LocalAccount/Media/78B29ACE-7507-4E2B-819A-70162CFBDC69/Test.mov",, and then calculating SHA (Secure Hash Algo rithm ) values corresponding to the name text as retrieval information respectively. The resulting retrieved information is "EA892CF910DC45B806C5BFC7EFD2D06633942170" and "823A7220338B7CAA3ACCD284C88E80C3F031F3CD".
And B20, determining a first folder in the backup folders corresponding to the memo database according to the first two initial letters of the first retrieval information.
Specifically, the first two initials of the first search information, namely "EA" and "82" in this embodiment, are then searched for folders with folder names "EA" and "82" in the backup folders corresponding to the memo database and used as the first folder.
And B30, searching the first folder according to the first search information to obtain non-text information corresponding to the search UUID.
Specifically, the first folder is searched according to the first search information to see whether a file with a file name of "EA892CF910DC45B806C5BFC7EFD2D06633942170" or "823A7220338B7CAA3ACCD284C88E80C3F031F3CD" exists. If so, the file is a test. Mov, and the file corresponding to the UUID is searched.
The other search result is that no matching UUID is searched, and the matching UUID is matched with the empty result.
And C10, generating second retrieval information according to a preset second generation rule and the retrieval UUID.
Specifically, a second generation rule similar to the first generation rule and a second name template corresponding to the second generation rule are preset. The second search information is generated in a manner similar to the first generation rule type.
However, since the second generation rule is for the case where no matching UUID is retrieved, in the second name template, there is no longer a first variable corresponding to the matching UUID. In this embodiment, considering the properties of different files, such as preview files, review files, thumbnail files, etc., the storage paths are also different, and the possible folders and spatial domains of the stored files are used as fixed information, such as "FallbackImages", "Previews", "Accounts/usernames/FallbackImages", "Accounts/usernames/Previews". At the same time, the folders contain a large number of files, and the situation of unmatched UUIDs is generally related to the format of the files, so that the file suffix is also used as a variable to load the end of the second name template. The format of the final second name template is "fixed information/(user account /) retrieve uuid.
For example, the user account number is "LocalAccount", the possible folder is "FallbackImages", the file suffix is "jpg", the generated second search information is "AppDomainGroup-group.com.application.nodes-FallbackImages/78B 29ACE-7507-4E2B-819A-70162cfbdc69.jpg", the SHA value corresponding to the second name text is calculated and used as the second search information, which is "8A5CBFC2CCB15FCC7F2022D92ECABD CEC57FF4C" in this embodiment.
And C20, determining a second folder in the backup folder corresponding to the memo database according to the first two initial letters of the second search information.
Specifically, according to the first two initial letters of the second search information, namely "8A", searching whether a folder with the folder name of "8A" exists in the backup folder corresponding to the memo database, and if so, taking the "8A" as the second folder.
And C30, taking the file with the same name as the second retrieval information in the second folder as non-text information corresponding to the retrieval UUID.
Specifically, the file name "8A" in this folder is "8A5CBFC2CCB15FCC7F2022D92ECABD1CEC57FF4C" as the non-text information corresponding to the search UUID. And generating a memo file corresponding to the search UUID according to the non-text information.
In addition, if the initial information includes both text information and search UUID, when generating the memo, combining the text information and non-text information corresponding to the search UUID to generate the memo file, and since the process is to integrate the text information acquisition with the non-text information acquisition, the description thereof will not be repeated here.
Further, in this embodiment, the user account is required in the process of generating the first search text and the second search text, and the user account may be obtained by directly inputting the user, and simultaneously obtaining the user account when performing backup. Before the user account is filled into the first name template or the second name template, the specific process is as follows:
and D10, determining first user information of an accessory information table and second user information in a reference information table according to a preset screening rule, wherein the accessory information table and the reference information table are data tables in the memo database.
Specifically, the attachment information "z_name" in the attachment information table is a record of related information such as a user account, the value "z_ent" in the attachment information is taken as the first user information in the attachment information table, and meanwhile, in the reference information table in the memo database, the general table NAME is "z_ PRIMARYKEY", and the "z_ent" in the table is taken as the second user information. The first user information and the second user information are compared. The screening rule is to screen according to the parameter name of Z_ENT as screening condition, wherein Z_ENT is the data for recording user information.
And D20, matching the first user information with the second user information to obtain target user information.
Specifically, the first user information and the second user information are matched, and the matched data are target user information.
And D30, determining the user account corresponding to the memo database according to the target user information.
Specifically, the data in the field "ZIDENTIFIER" is fetched after matching, and the field is related to identification, thus the user account recorded in the memo database.
Based on the memo backup method based on the iOS system, as shown in fig. 3, the present embodiment provides a memo backup device 100 based on the iOS system, where the memo backup device 100 based on the iOS system includes:
An obtaining module 110, configured to obtain a memo database to be parsed;
the decompression module 120 is configured to decompress a text data segment of a content data table in the memo database to obtain a serialized file;
the deserializing module 130 is configured to deserialize the serialized file according to a preset serializing protocol, so as to obtain initial information corresponding to the memo database, where the initial information includes text information and/or a search UUID;
a text module 140, configured to generate a memo file corresponding to the text information according to the text information when the initial information includes the text information; and
And the non-text module 150 is configured to, when the initial information includes the search UUID, search a backup folder corresponding to the memo database according to the search UUID to obtain non-text information corresponding to the memo database, and generate a memo file corresponding to the search UUID according to the text information and the non-text information.
The iOS system-based memo backup device 100 further includes a mapping table module, where the mapping table module is specifically configured to:
Screening each piece of accessory information in an accessory information table in the memo database according to a preset data screening rule to obtain target data in the accessory information;
analyzing the target data according to a preset analysis rule to obtain a main UUID corresponding to the memo database, a plurality of sub UUIDs corresponding to the main UUID and file names corresponding to the sub UUIDs;
and constructing a mapping table corresponding to the accessory information table according to the main UUID, the sub UUID and the file name.
The non-text module 150 includes a matching unit and a non-matching unit, the matching unit including:
The first generation subunit is used for generating first retrieval information according to a preset first generation rule and the matching UUID when the retrieval UUID is matched with a preset mapping table to obtain the matching UUID;
a first determining subunit, configured to determine, according to first two first letters of the first search information, a target folder in a backup folder corresponding to the memo database;
And the first retrieval subunit is used for retrieving the target folder according to the first retrieval information to obtain non-text information corresponding to the retrieval UUID.
The first generating subunit is specifically configured to:
writing the matched UUID and the file name corresponding to the matched UUID into a preset first name template to obtain a first name text, wherein the first name template comprises fixed information, and the fixed information comprises a first root directory;
And calculating the SHA value corresponding to the first name text and taking the SHA value as retrieval information.
The unmatched unit includes:
The second generation subunit is configured to generate second search information according to a preset second generation rule and the search UUID when the search UUID is matched with a preset mapping table to obtain a null result;
a second determining subunit, configured to determine, according to the first two first letters of the second search information, a second folder in the backup folders corresponding to the memo database;
And the second searching subunit is used for taking the file with the same name as the second searching information in the second folder as non-text information corresponding to the searching UUID.
The second generating subunit is specifically configured to:
Writing the search UUID into a preset second name template to obtain a second name text, wherein the second name template comprises a file suffix;
And calculating the SHA value corresponding to the second name text and taking the SHA value as the second retrieval information.
The memorandum backup device based on the iOS system further comprises an account module, wherein the account module is specifically used for:
Determining first user information of an accessory information table and second user information in a reference information table according to a preset screening rule, wherein the accessory information table and the reference information table are data tables in the memo database;
matching the first user information with the second user information to obtain target user information;
And determining the user account corresponding to the memo database according to the target user information.
Based on the iOS system-based memo backup method described above, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the iOS system-based memo backup method described in the above embodiment.
Based on the memo backup method based on the iOS system, the invention also provides a terminal device, as shown in fig. 4, which comprises at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Furthermore, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory computer readable storage medium.
In addition, the specific processes that the computer readable storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A memo backup method based on an iOS system, the method comprising:
acquiring a memo database to be analyzed;
decompressing text data segments of a content data table in the memo database to obtain a serialized file;
performing deserialization on the serialized file according to a preset serialization protocol to obtain initial information corresponding to the memo database, wherein the initial information comprises text information and/or a search UUID;
when the initial information contains the text information, generating a memo file corresponding to the text information according to the text information; and
Screening each piece of accessory information in an accessory information table in the memo database according to a preset data screening rule to obtain target data in the accessory information;
analyzing the target data according to a preset analysis rule to obtain a main UUID corresponding to the memo database, a plurality of sub UUIDs corresponding to the main UUID and file names corresponding to the sub UUIDs;
Constructing a mapping table corresponding to the accessory information table according to the main UUID, the sub UUID and the file name;
When the search UUID is matched with a preset mapping table to obtain a matched UUID, generating first search information according to a preset first generation rule and the matched UUID;
Determining a target folder in the backup folder corresponding to the memo database according to the first two initial letters of the first retrieval information;
according to the first retrieval information, retrieving the target folder to obtain non-text information corresponding to the retrieval UUID;
when the search UUID is matched with a preset mapping table to obtain a null result, generating second search information according to a preset second generation rule and the search UUID;
determining a second folder in the backup folders corresponding to the memo database according to the first two initial letters of the second retrieval information;
Taking the file with the same name as the second retrieval information in the second folder as non-text information corresponding to the retrieval UUID;
And generating a memo file corresponding to the search UUID according to the text information and the non-text information.
2. The iOS system-based memo backup method according to claim 1, wherein the generating the first search information according to the preset first generation rule and the matching UUID specifically includes:
writing the matched UUID and the file name corresponding to the matched UUID into a preset first name template to obtain a first name text, wherein the first name template comprises fixed information, and the fixed information comprises a first root directory;
And calculating the SHA value corresponding to the first name text and taking the SHA value as retrieval information.
3. The iOS system-based memo backup method according to claim 1, wherein when the search UUID is matched with a preset mapping table to obtain a null result, generating second search information according to a preset second generation rule and the search UUID includes:
Writing the search UUID into a preset second name template to obtain a second name text, wherein the second name template comprises a file suffix;
And calculating the SHA value corresponding to the second name text and taking the SHA value as the second retrieval information.
4. The iOS system-based memo backup method according to claim 1, wherein the searching the backup folder corresponding to the memo database according to the search UUID, before obtaining the non-text information corresponding to the memo database, further comprises:
Determining first user information of an accessory information table and second user information in a reference information table according to a preset screening rule, wherein the accessory information table and the reference information table are data tables in the memo database;
matching the first user information with the second user information to obtain target user information;
And determining the user account corresponding to the memo database according to the target user information.
5. The memorandum backup device based on the iOS system is characterized by comprising the following components:
The acquisition module is used for acquiring a memo database to be analyzed;
the decompression module is used for decompressing the text data segment of the content data table in the memo database to obtain a serialized file;
The deserializing module is used for deserializing the serialized file according to a preset serializing protocol to obtain initial information corresponding to the memo database, wherein the initial information comprises text information and/or a search UUID;
The text module is used for generating a memo file corresponding to the text information according to the text information when the initial information contains the text information; and
The mapping table module is used for screening each piece of attachment information in the attachment information table in the memo database according to a preset data screening rule to obtain target data in the attachment information; analyzing the target data according to a preset analysis rule to obtain a main UUID corresponding to the memo database, a plurality of sub UUIDs corresponding to the main UUID and file names corresponding to the sub UUIDs; constructing a mapping table corresponding to the attachment information table according to the main UUID, the sub UUID and the file name
A non-text module, configured to retrieve, when the initial information includes the retrieval UUID, a backup folder corresponding to the memo database according to the retrieval UUID, obtain non-text information corresponding to the memo database, generate, according to the text information and the non-text information, a memo file corresponding to the retrieval UUID,
The non-text module comprises a matching unit and a non-matching unit, wherein the matching unit comprises:
The first generation subunit is used for generating first retrieval information according to a preset first generation rule and the matching UUID when the retrieval UUID is matched with a preset mapping table to obtain the matching UUID;
a first determining subunit, configured to determine, according to first two first letters of the first search information, a target folder in a backup folder corresponding to the memo database;
The first retrieval subunit is used for retrieving the target folder according to the first retrieval information to obtain non-text information corresponding to the retrieval UUID;
The unmatched unit includes:
The second generation subunit is configured to generate second search information according to a preset second generation rule and the search UUID when the search UUID is matched with a preset mapping table to obtain a null result;
a second determining subunit, configured to determine, according to the first two first letters of the second search information, a second folder in the backup folders corresponding to the memo database;
And the second searching subunit is used for taking the file with the same name as the second searching information in the second folder as non-text information corresponding to the searching UUID.
6. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps in the iOS system-based memo backup method recited in any one of claims 1-4.
7. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
The communication bus realizes connection communication between the processor and the memory; the processor, when executing the computer-readable program, implements the steps in the iOS system-based memo backup method as claimed in any one of claims 1 to 4.
CN202110511612.7A 2021-05-11 2021-05-11 Memorandum backup method based on iOS system and related equipment Active CN113505153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110511612.7A CN113505153B (en) 2021-05-11 2021-05-11 Memorandum backup method based on iOS system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110511612.7A CN113505153B (en) 2021-05-11 2021-05-11 Memorandum backup method based on iOS system and related equipment

Publications (2)

Publication Number Publication Date
CN113505153A CN113505153A (en) 2021-10-15
CN113505153B true CN113505153B (en) 2024-06-04

Family

ID=78008437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110511612.7A Active CN113505153B (en) 2021-05-11 2021-05-11 Memorandum backup method based on iOS system and related equipment

Country Status (1)

Country Link
CN (1) CN113505153B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116501700B (en) * 2023-06-29 2023-09-08 深圳瑞信建筑科技有限公司 APP formatted file offline storage method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546359A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Storage medium, and method, server and system for synchronizing data on basis of IMAP (internet message access protocol)
US9202469B1 (en) * 2014-09-16 2015-12-01 Citrix Systems, Inc. Capturing noteworthy portions of audio recordings
CN105894244A (en) * 2016-03-31 2016-08-24 厦门美图移动科技有限公司 Device and system for displaying memorandum
CN106156347A (en) * 2016-07-21 2016-11-23 北京奇虎科技有限公司 Cloud photograph album classification methods of exhibiting, device and server
CN108171472A (en) * 2017-12-26 2018-06-15 佛山市道静科技有限公司 A kind of memorandum display methods and system based on internet
CN108268346A (en) * 2018-02-13 2018-07-10 苏州龙信信息科技有限公司 Data back up method, device, equipment and storage medium
CN111984459A (en) * 2019-05-21 2020-11-24 深圳软牛科技有限公司 Apple ID account removing method and system
CN112134995A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Method, terminal and computer readable storage medium for searching application object
CN112527739A (en) * 2020-12-09 2021-03-19 中冶南方工程技术有限公司 Local area network file retrieval preview system and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9380410B2 (en) * 2011-04-04 2016-06-28 Soundlink, Inc. Audio commenting and publishing system
US11513812B2 (en) * 2019-01-05 2022-11-29 Sam Houston State University Targeted data extraction system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546359A (en) * 2012-07-09 2014-01-29 腾讯科技(深圳)有限公司 Storage medium, and method, server and system for synchronizing data on basis of IMAP (internet message access protocol)
US9202469B1 (en) * 2014-09-16 2015-12-01 Citrix Systems, Inc. Capturing noteworthy portions of audio recordings
CN105894244A (en) * 2016-03-31 2016-08-24 厦门美图移动科技有限公司 Device and system for displaying memorandum
CN106156347A (en) * 2016-07-21 2016-11-23 北京奇虎科技有限公司 Cloud photograph album classification methods of exhibiting, device and server
CN108171472A (en) * 2017-12-26 2018-06-15 佛山市道静科技有限公司 A kind of memorandum display methods and system based on internet
CN108268346A (en) * 2018-02-13 2018-07-10 苏州龙信信息科技有限公司 Data back up method, device, equipment and storage medium
CN111984459A (en) * 2019-05-21 2020-11-24 深圳软牛科技有限公司 Apple ID account removing method and system
CN112134995A (en) * 2020-08-05 2020-12-25 华为技术有限公司 Method, terminal and computer readable storage medium for searching application object
CN112527739A (en) * 2020-12-09 2021-03-19 中冶南方工程技术有限公司 Local area network file retrieval preview system and equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Chen Avin 等.Random preferential attachment hypergraph.《ASONAM '19: Proceedings of the 2019 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining》.2020,398–405. *
ios系统软件迁移到安卓_苹果系统怎么把文件转到安卓手机?;叫我Zed;《CSDN博客 https://blog.csdn.net/weixin_42393127/article/details/111921073》;1-3 *
基于.NET的iOS设备信息管理系统的设计与实现;纪龙龙;《中国优秀硕士学位论文全文数据库 信息科技辑》(第08期);I138-544 *

Also Published As

Publication number Publication date
CN113505153A (en) 2021-10-15

Similar Documents

Publication Publication Date Title
TWI498751B (en) Method and computer-readable storage device for computing environment representation
US9218350B2 (en) Searching and placeholders
US9864736B2 (en) Information processing apparatus, control method, and recording medium
US20130198221A1 (en) Indexing structures using synthetic document summaries
KR20160004285A (en) File management with placeholders
US9372876B2 (en) Metadata driven reporting and editing of databases
CN109885577B (en) Data processing method, device, terminal and storage medium
US11418592B2 (en) Uploading user and system data from a source location to a destination location
WO2017036348A1 (en) Method and device for compressing and decompressing extensible markup language document
CN110674084A (en) Method, apparatus, and computer-readable storage medium for data protection
CN113505153B (en) Memorandum backup method based on iOS system and related equipment
CN108694172B (en) Information output method and device
CN111090623B (en) Data auditing method and device, electronic equipment and storage medium
CN111753141B (en) Data management method and related equipment
CN109947739B (en) Data source management method and device
US20230153358A1 (en) Systems and methods for collecting digital forensic evidence
CN112948389B (en) MD 5-based database table data comparison method and device
CA2722511C (en) Efficient change tracking of transcoded copies
CN111444194B (en) Method, device and equipment for clearing indexes in block chain type account book
EP2819028A2 (en) Content management system
US20110320927A1 (en) Methods and Apparatus Utilizing XooML: Cross (X) Tool Markup Language
JP6178119B2 (en) Data migration system and data migration method
US11321156B1 (en) System for updating resources independently from source code
Nelson et al. Navigating Unmountable Media with the Digital Forensics XML File System
US10102122B2 (en) Personal computing device for editing mainframe data

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
GR01 Patent grant
GR01 Patent grant