CN105468472A - iOS operation system based data backup and recovery method and apparatus - Google Patents

iOS operation system based data backup and recovery method and apparatus Download PDF

Info

Publication number
CN105468472A
CN105468472A CN201410333889.5A CN201410333889A CN105468472A CN 105468472 A CN105468472 A CN 105468472A CN 201410333889 A CN201410333889 A CN 201410333889A CN 105468472 A CN105468472 A CN 105468472A
Authority
CN
China
Prior art keywords
data
operating system
database
note
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410333889.5A
Other languages
Chinese (zh)
Other versions
CN105468472B (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410333889.5A priority Critical patent/CN105468472B/en
Publication of CN105468472A publication Critical patent/CN105468472A/en
Application granted granted Critical
Publication of CN105468472B publication Critical patent/CN105468472B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an iOS operation system based data backup and recovery method and apparatus. The method comprises: calling a C language interface of SQLite provided by an iOS operation system and endowed with a database reading permission through an application; reading to-be-backed-up data in a database; converting the read to-be-backed-up data into machine language data in the form of a data stream; and backing up the machine language data obtained by sequential conversion to a preset backup device through a wireless communication interface connected with the C language interface of SQLite. By applying the method and the apparatus, the security of user access can be improved, the data transmission quantity of data backup and recovery can be reduced, and diversified demands of users on data backup and recovery can be met.

Description

Based on the data backup of iOS operating system, restoration methods and device
Technical field
The present invention relates to information back-up technology, be specifically related to a kind of move the data backup of (iOS, iPhoneOS) operating system, restoration methods and device based on apple.
Background technology
Apple moves (iOS, iPhoneOS) operating system is the Mobile operating system of the iOS device exploitations such as iPhone, iPad, iPod as Apple, due to application software that can be compatible a large amount of, meet the individual demand of different user, the user of application gets more and more.Meanwhile, along with the development of information science technology, the application software that user installs in iOS device also gets more and more, and the data volume in iOS device is rapidly increased.But because iOS operating system is a closed operating system, therefore, the development interface that application developer can only use Apple's external disclosure to provide carries out the exploitation of application software, thus the function that the application software for iOS operating system developed can be realized is limited by the development interface provided.Such as, note program in iOS operating system is after transmitting-receiving note, because current Apple does not provide relevant interface for the importing of note and derivation, therefore, the note of receiving and dispatching in iOS device can only be stored in iOS device, make under needing to back up to improve the scene of data security to data such as notes, the security being stored in the data in iOS device is lower; Meanwhile, external device data also cannot import to iOS device and back up, and have impact on the experience of customer service.
At present, for non-iOS device, such as, fixed terminal equipment, exploitation has some softwares, and such as, note assistant, for realizing backup to note in non-iOS device and recovery.Specifically, utilize the note assistant in windows operating system or OSX operating system, adopt privately owned USB (universal serial bus) (USB, UniversalSerialBus) in agreement copy function system for storing the note data storehouse of note, and by the note data storehouse of copy, exported to the non-iOS operating system server pre-set by USB interface, thus realize the backup of note, and the recovery flow process of note is the inverse process of short message backup flow process.Wherein, the exclusive operating system of OSX operating system to be Apple be Mac series product development, based on unix system.Due to the difference of interface, thus, the data backup in non-iOS operating system can not be applied to iOS operating system.Thus, also do not have in prior art can from iOS operating system Backup Data and, external data is returned to the technical scheme in iOS operating system.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or a kind of data backup based on iOS operating system solved the problem at least in part, restoration methods and device.
According to one aspect of the present invention, provide a kind of data back up method based on iOS operating system, the method comprises:
What provided by application call iOS operating system is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database;
The data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are backuped to the alternate device pre-set.
Preferably, in described reading database, data to be backed up comprise:
Arranging iOS operating system adopts incremental data storehouse to store data newly-generated after last data backup;
Data in reading database in incremental data storehouse.
Preferably, described method comprises further:
Data in incremental data storehouse, after determining that data backup completes, are written in historical data base by iOS operating system, and empty described incremental data storehouse.
Preferably, described on after once newly-generated data store after data backup, read in incremental data storehouse before data, described method comprises further:
Obtain the update date information of data in the described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base, perform the flow process in described reading incremental data storehouse.
Preferably, described incremental data storehouse is multiple, for sequentially storing newly-generated data after the last data backup of iOS operating system, and in the end after incremental data library storage data, first is stored data in the incremental data storehouse of newly-generated data to be written in described iOS operating system and to be used for storing in the database of data, empty the incremental data storehouse of the newly-generated data of described first storage, described on after once newly-generated data store after data backup, in reading incremental data storehouse before data, described method comprises further:
Obtain alternate device store described iOS operating system in data first update date information;
Obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information;
If described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
Preferably, after the data described to be backed up read are converted to machine language data, described method comprises further:
Described computer data is encrypted according to the cryptographic algorithm pre-set.
Preferably, described cryptographic algorithm comprises: the data confidentiality agreement of enhancing, data encryption algorithm, data encryption standards and three layer of data encryption standards.
Preferably, described method comprises further:
Determine that data backup to be backed up is complete, delete the data to be backed up in described database.
Preferably, described database is note data storehouse, and described note data storehouse comprises: note list item, session entry, handle list item, session-note list item and session-handle list item, wherein,
Note list item, for depositing note mark;
Session entry, for depositing note session identification;
Handle list item, for depositing handle mark;
Session-handle list item, for depositing handle identification information corresponding to each note session identification, wherein, handle information is note associated person information corresponding to note;
Session-note list item, for depositing note corresponding to each note session identification.
Preferably, described the data described to be backed up read be converted to machine language data and comprise:
Obtain the data file that data to be backed up are corresponding;
Call the InputStream attribute of HttpPostedFile class, access described data file;
Call the read method of Stream class, by the array of the described data file of access data write Byte type in binary form.
Preferably, the described machine language data by conversion backup to the alternate device pre-set and comprise:
Obtain database structure information in described alternate device, the machine language data of conversion are converted to the data of the database structure meeting acquisition, and write database in described alternate device.
Preferably, described machine language data comprise: binary data, octal data and hexadecimal data.
Preferably, the C language interface of the SQLite of setting data storehouse reading authority comprises:
Obtain the root authority of iOS operating system;
Search database in the C language interface process of SQLite and read the memory variable of authority;
Read at described database in the memory variable of authority, increase the memory variable that data database reads authority.
Provide a kind of data reconstruction method based on iOS operating system according to another aspect of the present invention, the method comprises:
Machine language data is received by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
The described machine language data received are written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority.
Preferably, described method comprises further:
To the machine language decrypt data received.
Preferably, described machine language data are binary data, and described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
Preferably, carry the time period information of data to be restored in described data recovery request, the data in described reading backup database comprise:
Resolution data recovery request, acquisition time segment information;
Read in backup database the data be included in described time period information.
Preferably, the C language interface of the SQLite of setting data storehouse reading authority comprises:
Obtain the root authority of iOS operating system;
Search database in the C language interface process of SQLite and read the memory variable of authority;
Read at described database in the memory variable of authority, increase the memory variable that data database reads authority.
Provide a kind of data backup device based on iOS operating system according to a further aspect of the invention, this device comprises: data read module and data conversion module, wherein,
Data read module, is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database for what provided by application call iOS operating system;
Data conversion module, for the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data of conversion are backuped to the alternate device pre-set.
Preferably, described database is note data storehouse, and described data to be backed up comprise: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
Preferably, described data read module comprises: incremental data library storage unit and reading unit, wherein,
Incremental data library storage unit, for storing iOS operating system data newly-generated after upper once data backup;
Reading unit, for reading the data that incremental data library storage unit stores.
Preferably, described data read module comprises further:
Data in incremental data storehouse, for after iOS operating system determination data backup completes, are write and store by historical data base storage unit, and empty described incremental data library storage unit.
Preferably, described data read module comprises further:
First matching unit, for obtaining the update date information of data in described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base storage unit, notice reading unit.
Preferably, described incremental data library storage unit is set to multiple, for sequentially storing newly-generated data after the last data backup of iOS operating system, and after in the end an incremental data library storage unit stores data, first is stored data in the incremental data library storage unit of newly-generated data to be written in described historical data base storage unit, empty the incremental data library storage unit of the newly-generated data of described first storage; Described data read module comprises further:
Second matching unit, for obtain alternate device store described iOS operating system in data first update date information; Obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information; If described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
Preferably, described data conversion module comprises: converting unit and output unit, wherein,
Converting unit, for being converted to machine language data by the data described to be backed up read in the mode of data stream;
The machine language data of conversion, for the wireless communication interface by being connected with the C language interface of described SQLite, are backuped to the alternate device pre-set by output unit.
Preferably, described data conversion module comprises further:
Ciphering unit, for being encrypted according to the cryptographic algorithm pre-set described machine language data.
Preferably, described device comprises further:
Data removing module, for after determining data backup to be backed up, deletes the data to be backed up in described database.
Provide a kind of Data Recapture Unit based on iOS operating system according to a further aspect of the invention, this device comprises: data reception module and Data write. module, wherein,
Data reception module, for receiving machine language data by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
Data write. module, for being written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority by the described machine language data received.
Preferably, described device comprises further:
Deciphering module, for the machine language decrypt data to reception, and exports the machine language data of deciphering to Data write. module.
Preferably, described machine language data are binary data, and described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
Preferably, described device comprises further:
Data demand module, for when sending data recovery request, carries the time period information of data to be restored, to make alternate device resolution data recovery request, acquisition time segment information, reads in backup database the data be included in described time period information.
According to the data backup based on iOS operating system of the present invention, restoration methods and device, what can be provided by application call iOS operating system is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database, the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are backuped to the alternate device pre-set.Solve thus can from iOS operating system Backup Data and, external data is returned to the technical matters of iOS operating system, achieve the transmitted data amount effectively reducing data backup and resume, data backup and resume method applicability is wide, meets the beneficial effect of user to the diversified demand of data backup and resume.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the data back up method flow process of the embodiment of the present invention based on iOS operating system;
Fig. 2 shows the data reconstruction method flow process of the embodiment of the present invention based on iOS operating system;
Fig. 3 shows the data backup device structure of the embodiment of the present invention based on iOS operating system; And,
Fig. 4 shows the Data Recapture Unit structure of the embodiment of the present invention based on iOS operating system.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In prior art, because current Apple does not provide for iOS operating system the interface that data backup and resume is relevant, therefore, what the data in iOS device can not realize with external unit is mutual, make the security of data lower, have impact on the experience of customer service.
Further, existing non-iOS operating system (equipment) adopts the short-and-medium telecommunications databases of privately owned universal serial bus protocol copy function system to carry out the method backing up and recover, owing to adopting privately owned usb protocol, and transmission medium is USB interface, make the method after iOS operating system update, if note data library structure changes, such as, the messaging format stored or type change, when there is not same change in the note data library structure backed up, the note data storehouse that note in the note data storehouse by backup returns to recurring structure change can not be realized, note in the note data storehouse changed by recurring structure can not be realized and backup to the note data storehouse of non-recurring structure change, and for short message backup and the recovery of cross operating system, incompatible due between operating system, by the method in direct copying note data storehouse, can not realize short message backup and recovery.Such as, based on the note of windows operating system backup, the note data storehouse based on Android operation system or Saipan operating system can not be returned to.Make existing non-iOS operating system by utilizing privately owned usb protocol, the short message backup in the note data storehouse in direct copying operating system and restoration methods, change at note data library structure, or, for short message backup and the recovery of cross operating system, short message backup and recovery can not be realized.
In iOS operating system framework, comprising: CoreOS layer, CoreServices layer, Media layer and CocoaTouch layer, wherein,
Core (Core) OS layer is the Unix core of POSIX standard of increasing income, meet, for providing the basic function of iOS operating system, wherein, basic function can be provided by the API of C language, comprising: hardware driving, memory management, program management, thread management (POSIX), file system and standard input output etc.Wherein, the hardware driving function of core os layer is for providing the interface between hardware and system framework.Due to the consideration based on safety, in iOS operating system, limited system framework class energy access hardware is only had to drive.
CoreServices layer is on CoreOS layer, based on CoreOS layer basis, provide the function of more horn of plenty, be all application programs and basic system services is provided, it is the basis that basic system services builds, comprise: Foundation.Framework function and CoreFoundation.Framework function, wherein, framework (Foundation) is the API belonging to Objective-C, CoreFundation is the API belonging to C language, for providing the basic functions such as process word string, arrangement, combination, calendar, time.
Media layer is used for providing the multimedia functions such as picture, music, film.
CocoaTouch layer is positioned at the superiors, and be the API of Objective-C, wherein most crucial part is UIKit.Framework.As one of function, CocoaTouch layer can provide the various assemblies on Application Program Interface to present.
Wherein, the API of the C language of CoreOS layer and CoreServices layer utilizes C/C++ custom interface function to realize, control SQLite database connection object and preset object, C/C++ custom interface function comprises: sqlite3_open (), sqlite3_prepare (), sqlite3_step (), sqlite3_column (), sqlite3_finalize (), sqlite3_close ().Wherein, SQLite database is a light-duty correlation database, the mainstream operation systems such as Windows/Linux/Unix can be supported, this system utilizes client end/server end (C/S, Client/Server) two-tier system realizes associating of user and database, the api function (C/C++ custom interface function) of the C language that client call is unified, connected by the Internet and remote server, server bottom and SQLITE database association, client proposes the method for data access, first taken over by server, and by server, access method is submitted to SQLITE database processing one by one, then the result of process is sent to client by server, can access because server is multiuser interface, network enabled connects again, connect and access so take over all clients by server, so just achieve the network access functions that SQLITE database has multi-user.
In the embodiment of the present invention, consider the C language interface of the SQLite utilizing iOS operating system to provide, read data, make it to carry out data backup based on the C language interface of SQLite, thus the specific embodiments proposed based on the data backup and resume of iOS operating system, data in iOS operating system can be shared with external unit, promote the security that recording data stores.
Further, binary data is widely used in computer communication field, can support binary data and can carry out binary data conversion due to each operating system.Like this, in the embodiment of the present invention, by being binary data by file transform, make it to be saved in database in the mode of binary data, thus can between each communication agent, based on any operating system, such as, change at note data library structure, or, for cross operating system, effective backup of data can be realized.Like this, when the data volume stored in an operating system is larger, take the file system space that operating system is too much, and have influence on operating system performance, but user expects to retain the data volume in this operating system, the backup functionality of the embodiment of the present invention can be used, with follow-up need to check data time, can at any time from backup server recover data.
Fig. 1 shows the data back up method flow process of the embodiment of the present invention based on iOS operating system.See Fig. 1, this flow process comprises:
Step 101, what provided by application call iOS operating system is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database;
In this step, different iOS operating system has different database structures, and in different database structures, data memory format can be different.
As embodiment, database can be note data storehouse.Wherein, the store path of note data storehouse in iOS operating system (equipment) is :/var/mobile/Library/SMS/sms.db.The note of different note data library structure, messaging format can be different.Certainly, in practical application, database can be address book database, and the store path of address book database is: var/mobile/library/AddressBook.As embodiment, address book data is kept in this address book database with the form of AddressBook.sqlitedb.
Preferably, database adopts SQLite database format, and wherein, the suffix meeting the database of SQLite database format can be db, also can be sqlitedb.
In the embodiment of the present invention, note data storehouse comprises: note (message) list item, session (chat) list item, handle (handle) list item, (session-note) chat_message_join list item and (session-handle) chat_handle_join list item, wherein
Message list item, for depositing note mark; As embodiment, note ident value can obtain by calculating MD5 value in conjunction with associated person information and transmission time information.Such as, when the operating system of this mobile terminal is android operating system, one is had to be distributed to the note of 10086 28 days 11: 07 Dec in 2012, what the time due to Android system adopted is relative to the millisecond number timing started on January 1st, 1970, thus, transmission time information date=1356675643123, associated person information Address=10086, note ident value is obtained by the MD5 value of calculating character string 135667564312310086.
Chat list item, for depositing note session identification;
Handle list item, for depositing handle mark;
Chat_handle_join list item, for depositing handle identification information corresponding to each note session identification, wherein, handle information can be addressee information corresponding to note, i.e. note associated person information, handle information corresponding to each note session represents with handle identification information.
In the embodiment of the present invention, chat_handle_join list item comprises: note session identification (chat_id) field and handle mark (handle_id) field.Wherein, chat_id field and handle_id field form mapping relations, and a chat_id field can map multiple handle_id field, also can be multiple chat_id field mappings handle_id fields.As the multiple handle_id of chat_id field mappings, show that the note session that this chat_id is corresponding is mass-sending session, i.e. a corresponding multiple note associated person information of mass-sending session.In iOS operating system, the corresponding note session of multiple note associated person informations that mass-sending session is corresponding.By this chat_handle_join list item, can determine that note is single-shot note or bulk SMS.
Chat_message_join list item, for depositing note corresponding to each note session identification.Wherein, the corresponding note of each note session.
As embodiment, the data stored in iOS operating system can all be preserved in a database.Like this, can will be used for storing the DB Backup of data in iOS operating system in any alternate device.
As another embodiment, backup was carried out to the database in this iOS operating system at alternate device, and the data in iOS operating system are only when this alternate device backs up, the data identical with this iOS operating system may be stored due in the server that backed up, if directly the database being used for storing data is backed up, to cause identical data between iOS device and alternate device, repeat transmission, make the transmitted data amount of data backup and resume large, data backup and resume required time is longer, and efficiency is lower.Thus, in order to effectively reduce the transmission quantity of data, in reading database, data to be backed up can comprise:
A11, arranges iOS operating system and adopts incremental data storehouse to store data newly-generated after last data backup;
In this step, for note, after newly-generated data comprise last data backup, the new note (associated person information of short message content and transmission note) received and the note newly sent.Wherein, for bulk SMS, comprise the associated person information of short message content and mass-sending correspondence.For the data of non-note etc., newly-generated data comprise new data and the edit file to legacy data.Wherein, the editor of data comprises: amendment, deletion, replacement etc.Like this, in follow-up data backup, respective handling strategy can be performed, such as, if the data in incremental data storehouse are new data according to the operation of data, then in subsequent backup, can directly by this new data writing backup data storehouse, if the data in incremental data storehouse are the deletion information to legacy data, then in subsequent backup, from backup database, delete the data that this deletion information is corresponding.
A12, the data in reading database in incremental data storehouse.
In the embodiment of the present invention, can data in incremental data storehouse be processed timing.Thus, the method may further include:
Data in incremental data storehouse, after determining that data backup completes, are written in described historical data base by iOS operating system, and empty described incremental data storehouse.
In this step, data in incremental data storehouse are being backuped to after in backup database, is emptying data in described incremental data storehouse, to store new incremental data.
As embodiment, on after once newly-generated data store after data backup, read in incremental data storehouse before data, the method comprises further:
Obtain the update date information of data in the described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base, perform the flow process in described reading incremental data storehouse.
In this step, in the described iOS operating system that alternate device stores, the update date information of data is the date and time information that iOS operating system determination data backup completes.Data in incremental data storehouse be written to after in historical data base, the update date information of historical data base is the date and time information that in incremental data storehouse, the last item data are written to historical data base.If the update date information of data is identical with the update date information of described historical data base in iOS operating system, or both mistimings are less than the mistiming threshold value pre-set, then show that both match.
Certainly, in practical application, multiple incremental data storehouse also can be set, for sequentially storing newly-generated data after the last data backup of iOS operating system, and in the end after incremental data library storage data, first is stored data in the incremental data storehouse of newly-generated data to be written in described iOS operating system and to be used for storing in the database of data, empty described first incremental data storehouse storing newly-generated data.Like this, as another embodiment, on after once newly-generated data store after data backup, read incremental data storehouse as before described database to be backed up, the method comprises further:
B11, obtain alternate device store described iOS operating system in data first update date information;
B12, obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information;
B13, if described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
In this step, according to alternate device store this iOS operating system in data first update date information, determine the data needing backup: if first update date information with the 3rd update date information match, show that the backup of this alternate device to have in this iOS operating system the last data backed up; If first update date information and the second update date information in arbitrary update date information match, show that the backup of this alternate device has the data backed up several times in this iOS operating system, but be not all the data in iOS operating system are backed up at every turn; If first update date information before the 3rd update date information, show that this alternate device did not carry out backup to the data in this iOS operating system.
In the embodiment of the present invention, the C language interface that the SQLite of authority is read in setting data storehouse comprises:
Obtain the root authority of iOS operating system;
Search database in the C language interface process of SQLite and read the memory variable of authority;
Read at described database in the memory variable of authority, increase the memory variable that data database reads authority.
Step 102, the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are backuped to the alternate device pre-set.
In this step, according to database structures different in iOS operating system, the agreement data in different pieces of information library structure being carried out changing is also different.Like this, through corresponding protocol conversion, the data in different pieces of information library structure can be converted to corresponding binary data in the mode of data stream, namely continuous Backup Data be changed, the Backup Data of conversion be transmitted simultaneously.
As embodiment, for note data storehouse, by the note stored in note data storehouse (comprising bulk SMS), i.e. chat_message_join list item, according to the data stream agreement pre-set, be converted to a string binary data (BinaryDataStream), and by the wireless communication interface of the binary data be converted to by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are stored (backup) to short message server.Wherein, the coded system of binary data comprises: binary code (BCD, Binary-CodedDecimal), binary-coded decimal, ASCII(American Standard Code for information interchange) (ASCII, AmericanStandardCodeforInformationInterchange) and Unicode (Unicode) is expanded.
Further, for bulk SMS, in the embodiment of the present invention, except message backup content, namely outside chat_message_join list item, also associated person information corresponding for note session is backed up, namely chat_handle_join list item is backed up.
As embodiment, by the data described to be backed up read, be converted to binary data and comprise:
Obtain the data file that data to be backed up are corresponding;
Call the InputStream attribute of HttpPostedFile class, access described data file;
Call the read method of Stream class, by the array of the described data file of access data write Byte type in binary form.
As embodiment, the backup database in different alternate device, has different database structures, adopts corresponding data layout to store data.Thus, in the embodiment of the present invention, can be comprised to the alternate device pre-set by the C language interface backup of described SQLite:
Obtain database structure information in described alternate device, be the data of the database structure meeting acquisition by the binary data stream of reception, and write database in described alternate device.
Further, in order to ensure the security of data in transmitting procedure, after the data described to be backed up read are converted to binary data stream, the method can further include:
Described binary data is encrypted according to the cryptographic algorithm pre-set.
In this step, cryptographic algorithm comprises: the data confidentiality agreement (AES of enhancing, AdvancedEncryptionStandard), data encryption algorithm (DEA, DataEncryptionAlgorithm), data encryption standards (DES, and three layer of data encryption standards (3DES, TripleDES) etc. DataEncryptionStandard).
As embodiment, comparatively large for the data volume stored in operating system, take the situation of the too much file system space of operating system, the method can further include:
Step 103, determines that data backup to be backed up is complete, deletes the data to be backed up in described database.
In this step, after the data in iOS operating system being backed up, the data in delete database, to save the file system space of operating system.
Fig. 2 shows the data reconstruction method flow process of the embodiment of the present invention based on iOS operating system.See Fig. 2, this flow process comprises:
Step 201, machine language data is received by application call wireless communication interface, described machine language data be alternate device after receiving data recovery request, read the data in backup database, and the data of reading be converted to machine language data in the mode of data stream;
In this step, when iOS device needs to carry out date restoring, data recovery request is sent to alternate device, alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to binary data in the mode of data stream, transfer to iOS device, the binary data of the C language interface alternate device transmission of SQLite of iOS device by calling iOS operating system and providing.
As embodiment, air-drop (AirDrop) can be adopted, the mode of note and mail transmits binary data.
As embodiment, the method comprises further:
The binary data received is decrypted.
In this step, if carried out encryption to binary data, be then decrypted binary data to be restored, decipherment algorithm has comprised: the data confidentiality agreement of enhancing, data encryption algorithm, data encryption standards and three layer of data encryption standards etc.
In the embodiment of the present invention, for note, described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations etc. that note session information is corresponding.Like this, when carrying out note and recovering, short message reading from short message server (alternate device), and the note of reading is converted to binary data according to the translation-protocol pre-set.Further, for bulk SMS, in the embodiment of the present invention, according to the relation of note session and note associated person information, note session and note, the note associated person information that namely note session is corresponding and note data corresponding to note session, follow-up carry out note recover time, bulk SMS is included into in a note session, thus when user reads the note of recovery, can effectively prevent from bulk SMS to return in multiple note session, can obtain and recover front the same note data.
As embodiment, user, when sending data recovery request, can also carry the time period information of data to be restored.Like this, the data read in backup database can comprise:
Resolution data recovery request, acquisition time segment information;
Read in backup database the data be included in described time period information.
The described machine language data received are written to the database in described iOS operating system by step 202 by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority.
In this step, based on iOS operating system, the data type recovered as required, arranges the database recovery path that corresponding data type is corresponding respectively.Wherein, restoration path refers to the memory location of dissimilar data in iOS device disk, preserves the database file of the type data under this memory location.Such as, the restoration path that can arrange the data of short message type is: var/mobile/library/SMS, and under the data of short message type are kept at this restoration path with the form of sms.db database file.Again such as, the restoration path arranging the data of address list type is: var/mobile/library/AddressBook.
Institute it should be noted that in the present embodiment, although describe only the data of short message type and address list type, the method for the present embodiment is equally applicable to the data of the literal types such as the word of message registration type, p.m.entry type or network browsing.
From above-mentioned, the data back up method based on iOS operating system of the embodiment of the present invention, restoration methods, after replacing intelligent mobile terminal equipment, such as, intelligent mobile terminal equipment is changed into iPhone5s from iPhone4, or the intelligent mobile terminal equipment of iOS operating system is changed into the intelligent mobile terminal equipment of Android operation system, when needing the note data (comprising group-sending note data) in former intelligent mobile terminal equipment to move to new intelligent mobile terminal equipment, backup and the restore funcitons of the embodiment of the present invention can be used.And, after upgrading iOS operating system version, such as, from iOS5 operating system update to iOS6 operating system, the backup functionality of the embodiment of the present invention can be used, to be moved in the intelligent mobile terminal equipment after renewal rewards theory system by the note data (comprising group-sending note data) before renewal rewards theory system.In addition, after intelligent mobile terminal equipment is lost, buy new intelligent mobile terminal equipment, also can use the restore funcitons of the embodiment of the present invention, recover note data (comprising group-sending note data).Like this, data are read by the C language interface calling the SQLite that iOS operating system provides, and the data of reading are converted to binary data stream, thus propose can from iOS operating system Backup Data and, external data is returned to the concrete technical scheme in iOS operating system.Simultaneously, after iOS operating system update, if note data library structure changes, such as, the messaging format stored or type change, when same change does not occur the note data library structure backed up, the note data storehouse that note in the note data storehouse by backup returns to recurring structure change can either be realized, also can realize note in the note data storehouse changed by recurring structure and backup to the note data storehouse of non-recurring structure change; Further, for short message backup and the recovery of cross operating system, due to note data is converted to binary data stream, thus short message backup and recovery is realized.Such as, can by the note based on iOS operating system, back up or restore to the note data storehouse based on Android operation system, Saipan operating system, thus effectively can prevent loss of data, promotes the security of data.And adopt incremental backup and the recovery of note, make the transmitted data amount of short message backup and recovery little, short message backup is with recovery required time is few, efficiency is high; In addition, the method for the data backup and resume of the embodiment of the present invention, can be applied to the operating system of different editions, wide adaptability, can meet the diversified demand that user backs up note (data) and recovers, improve the business experience of user.
Fig. 3 shows the data backup device structure of the embodiment of the present invention based on iOS operating system.See Fig. 3, this device is iOS device, comprising: data read module and data conversion module, wherein,
Data read module, is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database for what provided by application call iOS operating system;
In the embodiment of the present invention, database can be note data storehouse.Wherein, the store path of note data storehouse in iOS device is :/var/mobile/Library/SMS/sms.db.Accordingly, data to be backed up comprise: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
As embodiment, data read module comprises: incremental data library storage unit and reading unit (not shown), wherein,
Incremental data library storage unit, for storing iOS operating system data newly-generated after upper once data backup;
Reading unit, for reading the data that incremental data library storage unit stores.
Preferably, data read module can further include:
Data in incremental data storehouse, for after iOS operating system determination data backup completes, are write and store by historical data base storage unit, and empty described incremental data library storage unit.
As another embodiment, data read module can further include:
First matching unit, for obtaining the update date information of data in described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base storage unit, notice reading unit.
In practical application, incremental data library storage unit can be set to multiple, for sequentially storing newly-generated data after the last data backup of iOS operating system, and after in the end an incremental data library storage unit stores data, first is stored data in the incremental data library storage unit of newly-generated data to be written in described historical data base storage unit, empty the incremental data library storage unit of the newly-generated data of described first storage; Described data read module can further include:
Second matching unit, for obtain alternate device store described iOS operating system in data first update date information; Obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information; If described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
Data conversion module, for the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data of conversion are backuped to the alternate device pre-set.
In the embodiment of the present invention, data conversion module comprises: converting unit and output unit (not shown), wherein,
Converting unit, for being converted to machine language data by the data described to be backed up read in the mode of data stream;
The machine language data of conversion, for the wireless communication interface by being connected with the C language interface of described SQLite, are backuped to the alternate device pre-set by output unit.
In order to ensure the security of data in transmitting procedure, as embodiment, data conversion module can further include:
Ciphering unit, for being encrypted according to the cryptographic algorithm pre-set described binary data stream.
In the embodiment of the present invention, cryptographic algorithm comprises: the data confidentiality agreement of enhancing, data encryption algorithm, data encryption standards and three layer of data encryption standards (3DES, TripleDES) etc.
As embodiment, this device can further include:
Data removing module, for after determining data backup to be backed up, deletes the data to be backed up in described database.
Fig. 4 shows the Data Recapture Unit structure of the embodiment of the present invention based on iOS operating system.See Fig. 4, this device is iOS device, comprising: data reception module and Data write. module, wherein,
Data reception module, for receiving machine language data by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
Data write. module, for being written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority by the described machine language data received.
In the embodiment of the present invention, this device may further include:
Deciphering module, for the machine language decrypt data to reception, and exports the machine language data of deciphering to Data write. module.
In the embodiment of the present invention, for note, described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations etc. that note session information is corresponding.
As embodiment, this device may further include:
Data demand module, for when sending data recovery request, carries the time period information of data to be restored, to make alternate device resolution data recovery request, acquisition time segment information, reads in backup database the data be included in described time period information.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in the data backup device based on iOS operating system according to the embodiment of the present invention and the Data Recapture Unit based on iOS operating system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from Internet site server and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses A1. mono-kind based on the data back up method of iOS operating system, comprising:
What provided by application call iOS operating system is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database;
The data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are backuped to the alternate device pre-set.
A2. the method according to A1, in described reading database, data to be backed up comprise:
Arranging iOS operating system adopts incremental data storehouse to store data newly-generated after last data backup;
Data in reading database in incremental data storehouse.
A3. the method according to A2, described method comprises further:
Data in incremental data storehouse, after determining that data backup completes, are written in historical data base by iOS operating system, and empty described incremental data storehouse.
A4. the method according to A2, described on after once newly-generated data store after data backup, read in incremental data storehouse before data, described method comprises further:
Obtain the update date information of data in the described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base, perform the flow process in described reading incremental data storehouse.
A5. the method according to A2, described incremental data storehouse is multiple, for sequentially storing newly-generated data after the last data backup of iOS operating system, and in the end after incremental data library storage data, first is stored data in the incremental data storehouse of newly-generated data to be written in described iOS operating system and to be used for storing in the database of data, empty the incremental data storehouse of the newly-generated data of described first storage, described on after once newly-generated data store after data backup, in reading incremental data storehouse before data, described method comprises further:
Obtain alternate device store described iOS operating system in data first update date information;
Obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information;
If described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
A6. the method according to A1, after the data described to be backed up read are converted to machine language data, described method comprises further:
Described computer data is encrypted according to the cryptographic algorithm pre-set.
A7. the method according to A6, described cryptographic algorithm comprises: the data confidentiality agreement of enhancing, data encryption algorithm, data encryption standards and three layer of data encryption standards.
A8. the method according to A1, described method comprises further:
Determine that data backup to be backed up is complete, delete the data to be backed up in described database.
A9. the method according to A1, described database is note data storehouse, and described note data storehouse comprises: note list item, session entry, handle list item, session-note list item and session-handle list item, wherein,
Note list item, for depositing note mark;
Session entry, for depositing note session identification;
Handle list item, for depositing handle mark;
Session-handle list item, for depositing handle identification information corresponding to each note session identification, wherein, handle information is note associated person information corresponding to note;
Session-note list item, for depositing note corresponding to each note session identification.
A10. the method according to A1, the described data described to be backed up by reading are converted to machine language data and comprise:
Obtain the data file that data to be backed up are corresponding;
Call the InputStream attribute of HttpPostedFile class, access described data file;
Call the read method of Stream class, by the array of the described data file of access data write Byte type in binary form.
A11. the method according to A1, the described machine language data by conversion backup to the alternate device pre-set and comprise:
Obtain database structure information in described alternate device, the machine language data of conversion are converted to the data of the database structure meeting acquisition, and write database in described alternate device.
A12. the method according to A1, described machine language data comprise: binary data, octal data and hexadecimal data.
A13. the method according to A1, the C language interface that the SQLite of authority is read in setting data storehouse comprises:
Obtain the root authority of iOS operating system;
Search database in the C language interface process of SQLite and read the memory variable of authority;
Read at described database in the memory variable of authority, increase the memory variable that data database reads authority.
A14. based on a data reconstruction method for iOS operating system, the method comprises:
Machine language data is received by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
The described machine language data received are written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority.
A15. the method according to A14, described method comprises further:
To the machine language decrypt data received.
A16. the method according to A14, described machine language data are binary data, and described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
A17. the method according to A14, carries the time period information of data to be restored in described data recovery request, the data in described reading backup database comprise:
Resolution data recovery request, acquisition time segment information;
Read in backup database the data be included in described time period information.
A18. the method according to A14, the C language interface that the SQLite of authority is read in setting data storehouse comprises:
Obtain the root authority of iOS operating system;
Search database in the C language interface process of SQLite and read the memory variable of authority;
Read at described database in the memory variable of authority, increase the memory variable that data database reads authority.
A19. based on a data backup device for iOS operating system, this device comprises: data read module and data conversion module, wherein,
Data read module, is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database for what provided by application call iOS operating system;
Data conversion module, for the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data of conversion are backuped to the alternate device pre-set.
A20. the device according to A19, described database is note data storehouse, and described data to be backed up comprise: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
A21. the device according to A19, described data read module comprises: incremental data library storage unit and reading unit, wherein,
Incremental data library storage unit, for storing iOS operating system data newly-generated after upper once data backup;
Reading unit, for reading the data that incremental data library storage unit stores.
A22. the device according to A21, described data read module comprises further:
Data in incremental data storehouse, for after iOS operating system determination data backup completes, are write and store by historical data base storage unit, and empty described incremental data library storage unit.
A23. the device according to A21, described data read module comprises further:
First matching unit, for obtaining the update date information of data in described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base storage unit, notice reading unit.
A24. the device according to A22, described incremental data library storage unit is set to multiple, for sequentially storing newly-generated data after the last data backup of iOS operating system, and after in the end an incremental data library storage unit stores data, first is stored data in the incremental data library storage unit of newly-generated data to be written in described historical data base storage unit, empty the incremental data library storage unit of the newly-generated data of described first storage; Described data read module comprises further:
Second matching unit, for obtain alternate device store described iOS operating system in data first update date information; Obtain described multiple incremental data storehouse second update date information and described historical data base the 3rd update date information; If described first update date information and described 3rd update date information match, read all incremental data storehouses; If described first update date information and described second update date information in arbitrary update date information match, read all incremental data storehouses behind incremental data storehouse corresponding to the update date information of coupling; If described first update date information before described 3rd update date information, read described multiple incremental data storehouse and described historical data base.
A25. the device according to A19, described data conversion module comprises: converting unit and output unit, wherein,
Converting unit, for being converted to machine language data by the data described to be backed up read in the mode of data stream;
The machine language data of conversion, for the wireless communication interface by being connected with the C language interface of described SQLite, are backuped to the alternate device pre-set by output unit.
A26. the device according to A25, described data conversion module comprises further:
Ciphering unit, for being encrypted according to the cryptographic algorithm pre-set described machine language data.
A27. the device according to A19, described device comprises further:
Data removing module, for after determining data backup to be backed up, deletes the data to be backed up in described database.
A28. based on a Data Recapture Unit for iOS operating system, this device comprises: data reception module and Data write. module, wherein,
Data reception module, for receiving machine language data by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
Data write. module, for being written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority by the described machine language data received.
A29. the device according to A28, described device comprises further:
Deciphering module, for the machine language decrypt data to reception, and exports the machine language data of deciphering to Data write. module.
A30. the device according to A28, described machine language data are binary data, and described binary data comprises: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
A31. the device according to A28, described device comprises further:
Data demand module, for when sending data recovery request, carries the time period information of data to be restored, to make alternate device resolution data recovery request, acquisition time segment information, reads in backup database the data be included in described time period information.

Claims (10)

1., based on a data back up method for iOS operating system, comprising:
What provided by application call iOS operating system is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database;
The data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data be sequentially converted to are backuped to the alternate device pre-set.
2. the method for claim 1, in described reading database, data to be backed up comprise:
Arranging iOS operating system adopts incremental data storehouse to store data newly-generated after last data backup;
Data in reading database in incremental data storehouse.
3. method as claimed in claim 2, described method comprises further:
Data in incremental data storehouse, after determining that data backup completes, are written in historical data base by iOS operating system, and empty described incremental data storehouse.
4. method as claimed in claim 2, described on after once newly-generated data store after data backup, read in incremental data storehouse before data, described method comprises further:
Obtain the update date information of data in the described iOS operating system that the alternate device that pre-sets stores, if described update date information and the update date information match of described historical data base, perform the flow process in described reading incremental data storehouse.
5., based on a data reconstruction method for iOS operating system, the method comprises:
Machine language data is received by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
The described machine language data received are written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority.
6. method as claimed in claim 5, described method comprises further:
To the machine language decrypt data received.
7. based on a data backup device for iOS operating system, this device comprises: data read module and data conversion module, wherein,
Data read module, is provided with the C language interface that database reads the SQLite of authority, data to be backed up in reading database for what provided by application call iOS operating system;
Data conversion module, for the data described to be backed up read are converted to machine language data in the mode of data stream, and the wireless communication interface by being connected with the C language interface of described SQLite, the machine language data of conversion are backuped to the alternate device pre-set.
8. device as claimed in claim 7, described database is note data storehouse, and described data to be backed up comprise: note session information corresponding to short message content data, short message content data, one or more note associated person informations that note session information is corresponding.
9. based on a Data Recapture Unit for iOS operating system, this device comprises: data reception module and Data write. module, wherein,
Data reception module, for receiving machine language data by application call wireless communication interface, described machine language data are that alternate device is after receiving data recovery request, read the data in backup database, and the data of reading are converted to machine language data in the mode of data stream;
Data write. module, for being written to the database in described iOS operating system by being provided with of being connected with the described wireless communication interface C language interface that database reads the SQLite of authority by the described machine language data received.
10. device as claimed in claim 9, described device comprises further:
Deciphering module, for the machine language decrypt data to reception, and exports the machine language data of deciphering to Data write. module.
CN201410333889.5A 2014-07-14 2014-07-14 Data backup and recovery method and device based on iOS operating system Expired - Fee Related CN105468472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410333889.5A CN105468472B (en) 2014-07-14 2014-07-14 Data backup and recovery method and device based on iOS operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410333889.5A CN105468472B (en) 2014-07-14 2014-07-14 Data backup and recovery method and device based on iOS operating system

Publications (2)

Publication Number Publication Date
CN105468472A true CN105468472A (en) 2016-04-06
CN105468472B CN105468472B (en) 2020-01-17

Family

ID=55606206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410333889.5A Expired - Fee Related CN105468472B (en) 2014-07-14 2014-07-14 Data backup and recovery method and device based on iOS operating system

Country Status (1)

Country Link
CN (1) CN105468472B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975606A (en) * 2016-05-13 2016-09-28 上海互盾信息科技有限公司 IOS device contact mal-deletion recovery method
CN106021021A (en) * 2016-05-13 2016-10-12 上海互盾信息科技有限公司 IPHONE short message false deletion recovery method
CN106407826A (en) * 2016-11-07 2017-02-15 珠海市魅族科技有限公司 Data preserving method and device
CN106649176A (en) * 2016-12-19 2017-05-10 深圳泰克威云储科技股份有限公司 Signal transmission method of intelligent storage device
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device
CN110399416A (en) * 2019-07-24 2019-11-01 成都甄识科技有限公司 A kind of Distributed Database Operation optimization access processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404792A (en) * 2008-10-24 2009-04-08 北京亿企通信息技术有限公司 Mobile phone message backup method and system
CN103200233A (en) * 2013-03-05 2013-07-10 广东欧珀移动通信有限公司 Message back-up method based on increment and system thereof
US20140075583A1 (en) * 2012-09-10 2014-03-13 Apple Inc. Management of media items

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404792A (en) * 2008-10-24 2009-04-08 北京亿企通信息技术有限公司 Mobile phone message backup method and system
US20140075583A1 (en) * 2012-09-10 2014-03-13 Apple Inc. Management of media items
CN103200233A (en) * 2013-03-05 2013-07-10 广东欧珀移动通信有限公司 Message back-up method based on increment and system thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
APP111小编: "使用iTunes WIFI备份功能", 《URL:HTTP://WWW.APP111.COM/DOC/100026302_1.HTML》 *
CHERISH: "HttpPostedFile 二进制文件上传", 《URL:HTTP://BLOG.163.COM/WYP_XH2009/BLOG/STATIC/19950810720136101285532/》 *
STEPHEN_LIU: "SQLite学习手册(内存数据库)", 《URL:HTTPS://WWW.CNBLOGS.COM/STEPHEN-LIU74/ARCHIVE/2012/02/29/2328348.HTML》 *
苹果园: "iPhone怎么备份电话本和短信", 《URL:HTTP://M.PC841.COM/SHOUJI/IPHONE/9450.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975606A (en) * 2016-05-13 2016-09-28 上海互盾信息科技有限公司 IOS device contact mal-deletion recovery method
CN106021021A (en) * 2016-05-13 2016-10-12 上海互盾信息科技有限公司 IPHONE short message false deletion recovery method
CN106407826A (en) * 2016-11-07 2017-02-15 珠海市魅族科技有限公司 Data preserving method and device
CN106649176A (en) * 2016-12-19 2017-05-10 深圳泰克威云储科技股份有限公司 Signal transmission method of intelligent storage device
CN107172165A (en) * 2017-05-25 2017-09-15 万兴科技股份有限公司 A kind of method of data synchronization and device
CN107172165B (en) * 2017-05-25 2020-09-11 万兴科技股份有限公司 Data synchronization method and device
CN110399416A (en) * 2019-07-24 2019-11-01 成都甄识科技有限公司 A kind of Distributed Database Operation optimization access processing method and system
CN110399416B (en) * 2019-07-24 2023-08-22 成都甄识科技有限公司 Distributed database operation optimization access processing method and system

Also Published As

Publication number Publication date
CN105468472B (en) 2020-01-17

Similar Documents

Publication Publication Date Title
US10142106B2 (en) System and method for securing sensitive data
CN105468472A (en) iOS operation system based data backup and recovery method and apparatus
US10102242B2 (en) Bulk initial download of mobile databases
JP4213628B2 (en) Information terminal equipment
US10235245B2 (en) Data synchronization of block-level backup
CN104866389A (en) Data recovery method as well as data backup method, device and system based on mobile operating system
US8285997B2 (en) Backup apparatus with higher security and lower network bandwidth consumption
US11308223B2 (en) Blockchain-based file handling
US10601580B2 (en) Secure order preserving string compression
CN109144785A (en) Method and apparatus for Backup Data
JP2022530947A (en) Secure data storage based on distributed obfuscation
CN103618824B (en) Method and the mobile terminal of information transmission is carried out in address list program
CN104539665A (en) Remote file control system based on routers
CN108369628B (en) Providing transportable storage devices and extracting data from transportable storage devices
CN113904832A (en) Data encryption method, device, equipment and storage medium
US11157645B2 (en) Data masking with isomorphic functions
US11360935B2 (en) Efficient data storage management system
CN110059081A (en) Data output method, device and the computer equipment shown based on data
CN104281503A (en) Data backup method and related system
US10296760B2 (en) System of shared secure data storage and management
CN108008984A (en) A kind of resource file downloading updating method and device
CN101217357A (en) A document encryption downloading system and method
US11593395B2 (en) Environmental lifecycle data management system
CN117687985A (en) Object cloud storage method and device based on tool kit, equipment and storage medium
CN101968839A (en) Method for binding computer aid equipment and PC end software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200117