CN103873496B - A kind of method and device of address book backup - Google Patents

A kind of method and device of address book backup Download PDF

Info

Publication number
CN103873496B
CN103873496B CN201210530410.8A CN201210530410A CN103873496B CN 103873496 B CN103873496 B CN 103873496B CN 201210530410 A CN201210530410 A CN 201210530410A CN 103873496 B CN103873496 B CN 103873496B
Authority
CN
China
Prior art keywords
checksum value
associated person
person information
backup
information
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
CN201210530410.8A
Other languages
Chinese (zh)
Other versions
CN103873496A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210530410.8A priority Critical patent/CN103873496B/en
Publication of CN103873496A publication Critical patent/CN103873496A/en
Application granted granted Critical
Publication of CN103873496B publication Critical patent/CN103873496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of method and device of address book backup, it is related to the communications field, the repetition of associated person information can be avoided to back up, and then address book backup efficiency can be improved.Concrete scheme is:Associated person information in address list is updated by checksum algorithm, and obtains the checksum value of the non-NULL field of the associated person information after renewal;The first backup messages are sent to cloud server;Receive the backup confirmation message from cloud server;If including the first checksum value in backup confirmation message, the second backup messages are generated according to first checksum value, and send the second backup messages to cloud server.During address list of the present invention for backing up electronic equipment.

Description

A kind of method and device of address book backup
Technical field
The present invention relates to the communications field, more particularly to a kind of method and device of address book backup.
Background technology
Address list is the essential information of the electronic device users such as e-mail system, mobile terminal or palm PC, With the lengthening of these systems or electronic equipment usage time, the associated person information preserved in address list can be more and more numerous and more jumbled, uses Family also can be more and more stronger to its dependence.In order to reduce because associated person information loses inconvenience and economic damage to caused by user Lose, the associated person information in electronic equipment can be backed up, and carry out backup updating in real time.
Existing address book backup instrument, can accurately detect associated person information in communication equipment change (it is newly-increased, Modification and deletion), the associated person information in current contacts information and address book backup is compared using the manner of comparison of full word section, And the associated person information in address book backup is updated according to comparative result.
During the backup for stating address list in realization, inventor has found that at least there are the following problems in the prior art: , may be in some contacts due to the operation of user or the requirement of different application software during the use of electronic equipment Increase in people's information at least one to the sightless null field of user.Current contacts letter is compared using the manner of comparison of full word section During associated person information in breath and address book backup, will be considered that the associated person information for adding null field is that newly-increased contact person believes Breath, therefore, when carrying out address book backup, is causing the repetition of associated person information to back up, the backup efficiency of address list is low.
The content of the invention
Embodiments of the invention provide a kind of method and device of address book backup, can avoid the repetition of associated person information Backup, and then address book backup efficiency can be improved.
The first aspect of the embodiment of the present invention, there is provided a kind of method of address book backup, including:
Associated person information in address list is updated by checksum algorithm, and obtains the non-NULL of the associated person information after renewal The checksum value of field;
The first backup messages are sent to cloud server, in first backup messages mark comprising the address list and The checksum value of the non-NULL field of associated person information after the renewal;
Receive the backup confirmation message from the cloud server;
It is standby according to first checksum value generation second if including the first checksum value in the backup confirmation message Part message, and second backup messages are sent to the cloud server, wherein, first checksum value is the high in the clouds Server is got according to the mark of the address list, and first checksum value is the contact that the cloud server prestores In the checksum value of the non-NULL field of people's information with the checksum value of the non-NULL field of the associated person information after the renewal not phase With checksum value, include associated person information corresponding to first checksum value in second backup messages, and/or described Identification of contacts corresponding to first checksum value.
It is described to be updated by checksum algorithm in address list with reference in a first aspect, in a kind of possible implementation Associated person information, specifically include:
Calculated by the checksum algorithm non-NULL field of the associated person information in the address list verification and Value;
Obtain the number of the second checksum value in the checksum value of the non-NULL field of the associated person information;
If including at least two second checksum values in the checksum value of the non-NULL field of the associated person information, Only retain associated person information corresponding to second checksum value.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, in the renewal After associated person information corresponding to second checksum value, methods described also includes:
Judge Back ground Information whether is included in the associated person information in the address list, the Back ground Information includes described It is the name and contact method of people;
If including the Back ground Information in the associated person information in the address list, the non-NULL of the Back ground Information is calculated The checksum value of field;
Obtain the number of the 3rd checksum value in the checksum value of the non-NULL field of the Back ground Information;
If including at least two the 3rd checksum values in the checksum value of the non-NULL field of the Back ground Information, merge institute State associated person information corresponding to the 3rd checksum value.
It is described according to institute in alternatively possible implementation with reference to first aspect and above-mentioned possible implementation State the first checksum value and generate the second backup messages, including:
Judge the type of associated person information corresponding to first checksum value, contacted corresponding to first checksum value The type of people's information includes:Newly-increased associated person information, the associated person information of modification, deleted associated person information and do not include In the associated person information of the address list;
Second backup messages are generated according to the type of associated person information corresponding to first checksum value.
With reference to first aspect and above-mentioned possible implementation, in alternatively possible implementation, when described first When associated person information corresponding to checksum value is the associated person information of the newly-increased associated person information or the modification, described the Associated person information corresponding to first checksum value is included in two backup messages;And/or
When associated person information is the deleted associated person information corresponding to first checksum value, described second Identification of contacts corresponding to first checksum value is included in backup messages.
The second aspect of the embodiment of the present invention, a kind of method of address book backup is also provided, including:
The first backup messages for carrying out self terminal are received, after mark and renewal that address list is included in first backup messages Associated person information non-NULL field checksum value;
Matched according to the mark of the address list non-NULL field of the associated person information after the renewal checksum value and The checksum value of the non-NULL field of the associated person information to prestore, so as to obtain the first checksum value, first checksum value is In the checksum value of the non-NULL field of associated person information after the renewal with the non-NULL field of the associated person information to prestore The checksum value that differs of checksum value;
Backup confirmation message is generated according to first checksum value, and sends the backup and confirms message to the end Hold, contact person's letter corresponding to first checksum value and/or first checksum value is included in the backup confirmation message Breath;
When including first checksum value in the backup confirmation message, the second backup from the terminal is received Message, and the associated person information that prestores according to second backup messages renewal, institute is included in second backup messages State associated person information corresponding to the first checksum value, and/or identification of contacts corresponding to first checksum value.
With reference to second aspect, in a kind of possible implementation, institute is matched according to the mark of the address list described State the checksum value of the non-NULL field of the associated person information after renewal and the verification of the non-NULL field of associated person information that prestores and Value, so as to which before obtaining the first checksum value, methods described also includes:
By checksum algorithm calculate described in the checksum value of the non-NULL field of associated person information that prestores.
It is described according to institute in alternatively possible implementation with reference to second aspect and above-mentioned possible implementation The associated person information to be prestored described in the renewal of the second backup messages is stated, including:
When including identification of contacts corresponding to first checksum value in second backup messages, delete described It is associated person information corresponding to people's mark;And/or
When including associated person information corresponding to first checksum value in second backup messages, pass through the school Test the checksum value that the basic field of associated person information corresponding to first checksum value is calculated with algorithm;
The checksum value of the Back ground Information and first checksum value are searched in the associated person information to prestore The checksum value identical associated person information of the Back ground Information of corresponding associated person information;
If the basis of the checksum value for finding Back ground Information associated person information corresponding with first checksum value The checksum value identical associated person information of information, then the first checksum value pair described in the associated person information to be prestored described in merging The associated person information answered;
If the base of the checksum value for not finding the Back ground Information associated person information corresponding with first checksum value The checksum value identical associated person information of plinth information, then store associated person information corresponding to first checksum value.
The third aspect of the embodiment of the present invention, a kind of terminal is also provided, including:
First updating block, for updating the associated person information in address list by checksum algorithm, and after obtaining renewal Associated person information non-NULL field checksum value;
First transmitting element, for the first backup messages of transmission to cloud server, included in first backup messages The checksum value of the non-NULL field of associated person information after the mark of the address list and the renewal;
Receiving unit, for receiving the backup confirmation message from the cloud server;
Second transmitting element, if for including the first checksum value in the backup confirmation message, according to described first Checksum value generates the second backup messages, and sends second backup messages to the cloud server, wherein, described first Checksum value is what the cloud server was got according to the mark of the address list, and first checksum value is the cloud Non-NULL in the checksum value of the non-NULL field for the associated person information that end server prestores with the associated person information after the renewal The checksum value that the checksum value of field differs, comprising joining corresponding to first checksum value in second backup messages It is people's information, and/or identification of contacts corresponding to first checksum value.
With reference to the third aspect, in a kind of possible implementation, first updating block, including:
First computing module, for calculating the associated person information in the address list by the checksum algorithm The checksum value of non-NULL field;
First acquisition module, for the second checksum value in the checksum value for the non-NULL field for obtaining the associated person information Number;
Reservation module, if for including at least two described the in the checksum value of the non-NULL field of the associated person information Two checksum values, then only retain associated person information corresponding to second checksum value.
With reference to the third aspect and above-mentioned possible implementation, in alternatively possible implementation, described first more New unit, in addition to:
First judge module, it is described for judging Back ground Information whether is included in the associated person information in the address list Back ground Information includes the name and contact method of the contact person;
Second computing module, if for including the Back ground Information in the associated person information in the address list, calculate The checksum value of the non-NULL field of the Back ground Information;
Second acquisition module, for the 3rd checksum value in the checksum value for the non-NULL field for obtaining the Back ground Information Number;
First merging module, if for including at least two the 3rd in the checksum value of the non-NULL field of the Back ground Information Checksum value, then merge associated person information corresponding to the 3rd checksum value.
With reference to the third aspect and above-mentioned possible implementation, in alternatively possible implementation, second hair Unit is sent, including:
Second judge module, for judging the type of associated person information corresponding to first checksum value, described first The type of associated person information corresponding to checksum value includes:Newly-increased associated person information, the associated person information, deleted of modification Associated person information and the associated person information for being not included in the address list;
Generation module, it is standby for the type generation described second of associated person information according to corresponding to first checksum value Part message.
With reference to the third aspect and above-mentioned possible implementation, in alternatively possible implementation, when described first When associated person information corresponding to checksum value is the associated person information of the newly-increased associated person information or the modification, described the Associated person information corresponding to first checksum value is included in two backup messages;And/or
When associated person information is the deleted associated person information corresponding to first checksum value, described second Identification of contacts corresponding to first checksum value is included in backup messages.
The fourth aspect of the embodiment of the present invention, a kind of cloud server is also provided, including:
First receiving unit, the first backup messages of self terminal are carried out for receiving, are included in first backup messages logical Interrogate the checksum value of the non-NULL field of the associated person information after the mark recorded and renewal;
Matching unit, for matching the non-NULL field of the associated person information after the renewal according to the mark of the address list Checksum value and the non-NULL field of associated person information to prestore checksum value, so as to obtain the first checksum value, described the One checksum value is to believe in the checksum value of the non-NULL field of the associated person information after the renewal with the contact person to prestore The checksum value that the checksum value of the non-NULL field of breath differs;
Transmitting element, for generating backup confirmation message according to first checksum value, and send the backup and confirm Message includes first checksum value and/or first checksum value pair to the terminal in the backup confirmation message The associated person information answered;
Second receiving unit, for when including first checksum value in the backup confirmation message, reception to come from Second backup messages of the terminal, and the associated person information that prestores according to second backup messages renewal, described the Associated person information corresponding to first checksum value is included in two backup messages, and/or corresponding to first checksum value Identification of contacts.
With reference to fourth aspect, in a kind of possible implementation, the cloud server, in addition to:
Computing unit, for the contact person after the matching unit matches the renewal according to the mark of the address list The checksum value of the non-NULL field of the checksum value of the non-NULL field of information and the associated person information to prestore, so as to obtain the first school Before testing and being worth, by checksum algorithm calculate described in the checksum value of the non-NULL field of associated person information that prestores.
With reference to fourth aspect and above-mentioned possible implementation, in alternatively possible implementation, described second connects Unit is received, including:
Removing module, for when including identification of contacts corresponding to first checksum value in second backup messages When, delete associated person information corresponding to the identification of contacts;And/or
Computing module, for when including associated person information corresponding to first checksum value in second backup messages When, by the checksum algorithm calculate the verification of the basic field of associated person information corresponding to first checksum value and Value;
Searching modul, for searched in the associated person information to prestore the checksum value of the Back ground Information with it is described The checksum value identical associated person information of the Back ground Information of associated person information corresponding to first checksum value;
Merging module, if the checksum value of the Back ground Information is corresponding with first checksum value to be contacted for finding The checksum value identical associated person information of the Back ground Information of people's information, then merge described in the described in the associated person information that prestores Associated person information corresponding to one checksum value;
Memory module, if corresponding with first checksum value for the checksum value for not finding the Back ground Information It is the checksum value identical associated person information of the Back ground Information of people's information, then stores and contacted corresponding to first checksum value People's information.
The method and device of address book backup provided in an embodiment of the present invention, terminal update address list by checksum algorithm In associated person information, and obtain renewal after associated person information non-NULL field checksum value, then send first backup Message receives the backup confirmation message from cloud server to cloud server, if including first in backup confirmation message Checksum value, then the second backup messages are generated according to the first checksum value, finally send the second backup messages to the high in the clouds and take Business device.The associated person information in address book backup is updated by way of full word section compare with the prior art, adopting, can pass through Checksum algorithm calculates the checksum value of the non-NULL field of associated person information, and the verification of the non-NULL field according to associated person information Address list is updated with value, then carries out backup updating or recovery, so as to reduce the repetition of associated person information backup, is improved logical News record backup efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of address book backup in the embodiment of the present invention 1;
Fig. 2 is a kind of method flow diagram of address book backup in the embodiment of the present invention 2;
Fig. 3 is a kind of method flow diagram of address book backup in the embodiment of the present invention 3;
Fig. 4 is the method flow diagram of another address book backup in the embodiment of the present invention 3;
Fig. 5 is the method flow diagram of another address book backup in the embodiment of the present invention 3;
Fig. 6 is a kind of composition schematic diagram of terminal in the embodiment of the present invention 4;
Fig. 7 is the composition schematic diagram of another terminal in the embodiment of the present invention 4;
Fig. 8 is a kind of composition schematic diagram of cloud server in the embodiment of the present invention 5;
Fig. 9 is the composition schematic diagram of another cloud server in the embodiment of the present invention 5;
Figure 10 is the composition schematic diagram of another cloud server in the embodiment of the present invention 5.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of method of address book backup, can apply to the renewal and recovery of address book backup During, as shown in figure 1, including:
101st, terminal updates the associated person information in address list by checksum algorithm, and obtains contact person's letter after renewal The checksum value of the non-NULL field of breath.
Wherein, verification and (Checksum) algorithm are a kind of algorithms that can be verified to data, can apply to count According in processing and data communication field.Specifically, Checksum algorithms can verify the sum of one group of data item, these data item can To be numeral or examine the other character strings for regarding numeral as with during calculating.
It should be noted that Checksum algorithms combine CRC (Cyclic used by the present embodiment Redundancy Check, CRC) algorithm and Adler sliding window decoding algorithms, associated person information in address list can be calculated The Checksum values of non-NULL field, so as to avoid backing up weight due to including contact person caused by null field information in associated person information It is multiple.
Need further exist for illustrating, the terminal in the embodiment of the present invention can include:Mobile phone, pad, personal computer (Personal Computer, PC) etc. has address book function or can log in the bitcom such as E-mail address, QQ, MSN Electronic equipment.
Specifically, terminal updates the associated person information in address list by checksum algorithm, can include:By verification and Algorithm calculates the checksum value of the non-NULL field of the associated person information in address list;Obtain the school of the non-NULL field of associated person information The number of second checksum value in testing and being worth;If at least two second are included in the checksum value of the non-NULL field of associated person information Checksum value, then only retain associated person information corresponding to second checksum value.
Further alternative, terminal updates the associated person information in address list by checksum algorithm, can also include:Sentence Back ground Information whether is included in associated person information in disconnected address list, Back ground Information includes the name and contact method of contact person; If including Back ground Information in the associated person information in address list, the checksum value of the non-NULL field of Back ground Information is calculated;Obtain The number of the 3rd checksum value in the checksum value of the non-NULL field of Back ground Information;If the verification of the non-NULL field of Back ground Information With at least two the 3rd checksum values are included in value, then merge the 3rd checksum value corresponding to associated person information.
102nd, terminal sends the first backup messages to cloud server, in the first backup messages the mark comprising address list and The checksum value of the non-NULL field of associated person information after renewal.
Wherein, terminal sends the first backup messages to cloud server, can make mark of the cloud server according to address list Know in the checksum value for the non-NULL field of associated person information that matching cloud server prestores with the associated person information after renewal The checksum value of non-NULL field, so that cloud server gets the first checksum value, and then make cloud server according to One checksum value generates backup confirmation message.First checksum value is the non-NULL field for the associated person information that cloud server prestores Checksum value in the checksum value that is differed with the checksum value of the non-NULL field of the associated person information after renewal.
103rd, terminal receives the backup confirmation message from cloud server.
Wherein, due to connection corresponding to the first checksum value and/or the first checksum value can be included in backup confirmation message It is people's information, therefore the method for the present embodiment can also include step 104 and/or step 105.
If the 104, including the first checksum value in backup confirmation message, terminal is then standby according to the generation second of the first checksum value Part message, and the second backup messages are sent to cloud server.Wherein, it is corresponding comprising the first checksum value in the second backup messages Associated person information, and/or identification of contacts corresponding to the first checksum value.
Wherein, the second backup messages are generated according to the first checksum value, can included:Judge corresponding to the first checksum value The type of associated person information, the type of associated person information includes corresponding to the first checksum value:Newly-increased associated person information, modification Associated person information, deleted associated person information and the associated person information for being not included in address list;According to the first checksum value The type of corresponding associated person information generates the second backup messages.
It should be noted that in a kind of application scenarios of the present embodiment, first can also be included in backup confirmation message Associated person information corresponding to checksum value.When including associated person information corresponding to the first checksum value in backup confirmation message, Terminal then can be in the contact person information updating address list according to corresponding to the first checksum value associated person information.
Wherein, associated person information corresponding to the first checksum value included in backup confirmation message be cloud server according to In the checksum value for the non-NULL field of associated person information that the mark matching cloud server of address list prestores with the connection after renewal Be people's information the checksum value of non-NULL field after, in the first checksum value got, be contained in what cloud server prestored The checksum value of the non-NULL field of associated person information, but be not included in renewal after associated person information non-NULL field verification and Associated person information corresponding to the checksum value of value.
The method of address book backup provided in an embodiment of the present invention, terminal update the connection in address list by checksum algorithm It is people's information, and obtains the checksum value of the non-NULL field of the associated person information after renewal, then sends the first backup messages extremely Cloud server, and receive the backup confirmation message from cloud server, if in backup confirmation message comprising first verification with Value, then the second backup messages are generated according to the first checksum value, finally send the second backup messages to cloud server.With it is existing In technology, the associated person information updated by way of full word section in address book backup is compared, and can pass through checksum algorithm meter The checksum value of the non-NULL field of associated person information is calculated, and communication is updated according to the checksum value of the non-NULL field of associated person information Record, backup updating or recovery are then carried out, so as to reduce the repetition of associated person information backup, improve address book backup effect Rate.
Embodiment 2
The embodiment of the present invention provides a kind of method of address book backup, can apply to the renewal and recovery of address book backup During, as shown in Fig. 2 including:
201st, cloud server receives the first backup messages for carrying out self terminal, and the mark of address list is included in the first backup messages The checksum value of the non-NULL field of associated person information after knowing and updating.
202nd, the verification of the non-NULL field of the associated person information after cloud server updates according to the mark matching of address list With the checksum value of the non-NULL field of associated person information for being worth and prestoring, so as to obtain the first checksum value, the first checksum value For in the checksum value of the non-NULL field of the associated person information after renewal with the verification of the non-NULL field of associated person information to prestore The checksum value differed with value.
Specifically, the address list for including multiple terminal backups to the cloud server is might have stored in cloud server, Therefore, cloud server can select corresponding according to the mark of address list in the backup address list that selection cloud server stores Terminal address list, then match the non-NULL field of the associated person information to prestore checksum value and renewal after contact person letter The checksum value of the non-NULL field of breath, and select in the checksum value of the non-NULL field of the associated person information after renewal and prestore The checksum value that the checksum value of the non-NULL field of associated person information differs is as the first checksum value.
Further, the non-NULL field of the associated person information after server updates according to the mark matching of address list beyond the clouds Checksum value and the non-NULL field of associated person information to prestore checksum value, should so as to before obtaining the first checksum value The method of address book backup, it can also include:Cloud server calculates the non-of the associated person information to prestore by checksum algorithm The checksum value of null field.
203rd, cloud server generates backup confirmation message according to the first checksum value, and sends backup and confirm message to end Hold, associated person information corresponding to the first checksum value and/or the first checksum value is included in backup confirmation message.
It should be noted that in a kind of application scenarios of the present embodiment, cloud server is given birth to according to the first checksum value Into backup confirmation message, and send backup and confirm message to terminal, can include:When the first checksum value takes to be contained in high in the clouds The checksum value of the non-NULL field for the associated person information that business device prestores, but it is not included in the non-empty words of the associated person information after renewal During the checksum value of section, cloud server carries associated person information corresponding to first checksum value in backup confirmation message In, send backup and confirm message to terminal.
Further, in another application scenarios of the present embodiment, cloud server generates according to the first checksum value Backup confirmation message, and send backup and confirm message to terminal, it can include:After the first checksum value is to be contained in renewal The checksum value of the non-NULL field of associated person information, but it is not included in the non-NULL field for the associated person information that cloud server prestores Checksum value when, cloud server by first checksum value carry in backup confirmation message, transmission backup confirmation message To terminal.、
Further, in another application scenarios of the present embodiment, both comprising the first verification in backup confirmation message And value, and include associated person information corresponding to the first checksum value.In this application scenarios, cloud server is according to the first school The specific method of generation backup confirmation message is tested and be worth, may be referred to the description in the other embodiment of the present invention, the present embodiment Here repeat no more.
It should be noted that because user can try out its address list in different terminals, accordingly, it is possible in the presence of basis The associated person information increased newly on first terminal is backed up to cloud server by the triggering of user, first terminal, and in second terminal The newly-increased associated person information is not stored.So the first checksum value can be contained in contact person's letter that cloud server prestores The checksum value of the non-NULL field of breath, but it is not included in the checksum value of the non-NULL field of the associated person information after renewal.
204th, when including the first checksum value in backup confirmation message, cloud server, which receives, carrys out the second standby of self terminal Part message, and the associated person information to prestore is updated according to the second backup messages, include the first checksum value in the second backup messages Corresponding associated person information, and/or identification of contacts corresponding to the first checksum value.
Specifically, when associated person information corresponding to the first checksum value is newly-increased associated person information or the contact person of modification During information, associated person information corresponding to the first checksum value is included in the second backup messages;And/or when the first checksum value pair When the associated person information answered is deleted associated person information, contact corresponding to the first checksum value is included in the second backup messages People identifies.
It should be noted that cloud server can be network side have storage, the electronic equipment of computing function.
The method of address book backup provided in an embodiment of the present invention, the first backup that cloud server reception carrys out self terminal disappear Breath, the checksum value of the non-NULL field of the associated person information after the mark matching renewal of the address list in the first backup messages With the checksum value of the non-NULL field of associated person information to prestore, so as to obtain the first checksum value, according to the first checksum value Backup confirmation message is generated, and sends backup and confirms message to terminal, when including the first checksum value in backup confirmation message, Receive the second backup messages for carrying out self terminal, and the associated person information to be prestored according to the renewal of the second backup messages.With prior art In, the associated person information updated by way of full word section in address book backup is compared, and can be calculated and joined by checksum algorithm It is the checksum value of the non-NULL field of people's information, and address list is updated according to the checksum value of the non-NULL field of associated person information, Then backup updating or recovery are carried out, so as to reduce the repetition of associated person information backup, improves address book backup efficiency.
Embodiment 3
The embodiment of the present invention provides a kind of method of address book backup, can apply to the renewal and recovery of address book backup During, as shown in figure 3, including:
301st, terminal updates the associated person information in address list by checksum algorithm.
Believe specifically, terminal can update the contact person in address list in response to the triggering of user by checksum algorithm Breath.
As shown in figure 4, step 301 can specifically include step 301a to step 301c:
301a, terminal calculate the checksum value of the non-NULL field of the associated person information in address list by checksum algorithm.
Wherein, due to the operation of user or the requirement of different application software, may increase in some associated person informations Add it is at least one to the sightless null field of user, therefore in the address list of terminal may include multiple identical contact persons believe Breath.In the embodiment of the present invention, terminal calculates the verification of the non-NULL field of the associated person information in address list by checksum algorithm And value, can avoid because associated person information has null field, caused by associated person information repeat back up.If for example, communicating Increase a null field in associated person information A in record, then terminal, which can consider, adds an associated person information A in address list +, (associated person information A+ is the associated person information after associated person information A increase null fields).If terminal uses the side of full word section Formula carries out address book backup, then associated person information can be caused to repeat to back up.But lead to because terminal is calculated by checksum algorithm The checksum value of the non-NULL field of associated person information in news record, the associated person information A being calculated and associated person information A+'s Checksum value is identical.If terminal calculates the contact in address list before address book backup is carried out, by checksum algorithm The checksum value of the non-NULL field of people's information, then it can only retain and back up one in checksum value identical associated person information It is individual, and then associated person information can be avoided to repeat to back up.
The number of second checksum value in the checksum value for the non-NULL field that 301b, terminal obtain associated person information.
Exemplary, due to null field may be included in the associated person information in address list, such as the contact in step 301a People's information A+.Wherein, associated person information A is identical with the checksum value of associated person information A+ null field, i.e., terminal can calculate Obtain two identical checksum values.
If at least two second checksum values, terminal are included in the checksum value of the non-NULL field of 301c, associated person information Then only retain associated person information corresponding to second checksum value.
Exemplary, such as the associated person information A and associated person information A+ in step 301a, contact person's letter comprising null field Breath is consistent with the actual information in the associated person information not comprising null field, therefore, if the non-NULL field of associated person information Checksum value in include at least two second checksum values, terminal then only retains contact person corresponding to second checksum value Information, and delete other associated person informations corresponding to the second checksum value.
Further, because user may repeat to store the different letters of same contact person during address list is used Breath.It can merge Back ground Information identical associated person information to reduce the repetition of associated person information storage and backup, terminal.Cause This, step 301 can also include step 301d to step 301g:
301d, terminal judge Back ground Information whether is included in the associated person information in address list, and Back ground Information includes contact The name and telephone number of people.
Wherein, the associated person information in address list can include:The name of contact person, telephone number, home address, family Address address, QQ number etc..
It should be noted that the associated person information judged in address list of terminal is by performing step in step 301d The associated person information in address list after 301a-301c.
If including Back ground Information in the associated person information in 301e, address list, terminal then calculates the non-empty words of Back ground Information The checksum value of section.
Wherein, Back ground Information may not be included in the part associated person information in address list, for example, the communication of some mailboxes The other information of the email address, not storing contact of contact person may be only included in record.To the contact in such address list People's information the present embodiment does not do correlation computations and merging.
The number of the 3rd checksum value in the checksum value for the non-NULL field that 301f, terminal obtain Back ground Information.
If including at least two the 3rd checksum values in the checksum value of the non-NULL field of 301g, Back ground Information, terminal is then Merge associated person information corresponding to the 3rd checksum value.
Exemplary, user may repeat to store the different information of same contact person during address list is used, For example, contact person A three parts of information may be stored with address list:Contact person A name+telephone number+home address address, Contact person A name+telephone number+QQ number, contact person A name+telephone number+home address address+email address.Contact The checksum value of the non-NULL field of people A Back ground Information is checksum value A.The non-NULL field of Back ground Information is calculated in terminal Three checksum value A are included in checksum value.
Wherein, terminal merge the 3rd checksum value corresponding to associated person information can be specifically terminal statistics the 3rd verification and Associated person information corresponding to value, a new associated person information is generated according to statistical result, the 3rd is replaced with the new associated person information Associated person information corresponding to checksum value, the new associated person information include associated person information corresponding to some the 3rd check value Back ground Information, and the non-basic information of associated person information corresponding to the 3rd all check values.As above shown in example, terminal can To count contact person A information, statistical result showed:Contact person A information includes contact person A name, telephone number, family Address address, QQ number and email address;Terminal generates contact person A fresh information according to the result, is specially:Contact person A Name+telephone number+home address address+QQ number+email address;Terminal deletion contact person A other information, storage contact People A fresh information.
302nd, terminal obtains the checksum value of the non-NULL field of the associated person information after renewal.
Wherein, the checksum value of the non-NULL field of the associated person information after terminal acquisition renewal can be specifically:Terminal meter The checksum value and terminal for calculating the non-NULL field of the associated person information (newly-increased, modification) to be changed in address list are read in advance The checksum value of the non-NULL field for the associated person information not changed that terminal is calculated in the step 301a deposited.
It should be noted that the non-NULL field of associated person information of the terminal in address list is calculated by checksum algorithm After checksum value, the checksum value can be stored, until associated person information corresponding to the checksum value is changed or deleted, eventually End can just delete the checksum value.
303rd, terminal sends the first backup messages to cloud server, in the first backup messages the mark comprising address list and The checksum value of the non-NULL field of associated person information after renewal.
304th, cloud server calculates the checksum value of the non-NULL field of the associated person information to prestore by checksum algorithm.
305th, the verification of the non-NULL field of the associated person information after cloud server updates according to the mark matching of address list With the checksum value of the non-NULL field of associated person information for being worth and prestoring, so as to obtain the first checksum value.
Wherein, the first checksum value is the connection in the checksum value of the non-NULL field of the associated person information after renewal with prestoring It is the checksum value that the checksum value of the non-NULL field of people's information differs.
306th, cloud server generates backup confirmation message according to the first checksum value, and first is included in backup confirmation message Associated person information corresponding to checksum value and/or the first checksum value.
Wherein, in backup confirmation message include the first checksum value, or backup confirmation message in comprising first verification with Contact corresponding to the first checksum value and the first checksum value is included in associated person information corresponding to value, or backup confirmation message People's information.
It should be noted that the non-NULL of associated person information after mark matching renewal of the cloud server according to address list The checksum value that the checksum value of the non-NULL field for the associated person information that the checksum value and cloud server of field prestore obtains In (being referred to as checksum value queue), the checksum value of the non-NULL field for the associated person information being both contained in after renewal, but not The checksum value of the non-NULL field for the associated person information that cloud server prestores is contained in, it is pre- to be contained in cloud server again The checksum value of the non-NULL field for the associated person information deposited, but it is not included in the school of the non-NULL field of the associated person information after renewal When testing and being worth, then cloud server can be by the non-empty words of the associated person information being contained in after updating in the checksum value queue Section checksum value, but be not included in the checksum value of the non-NULL field for the associated person information that cloud server prestores verification and Value is carried in backup confirmation message;By the non-of the associated person information for being contained in cloud server and prestoring in checksum value queue The checksum value of null field, but it is not included in the checksum value pair of the checksum value of the non-NULL field of the associated person information after renewal The associated person information answered is carried in backup confirmation message.
307th, cloud server sends backup and confirms message to terminal.
If the 308, including the first checksum value in backup confirmation message, terminal then judges to contact corresponding to the first checksum value The type of people's information.
Wherein, the type of associated person information includes corresponding to the first checksum value:Newly-increased associated person information, the connection of modification It is people's information, deleted associated person information and the associated person information for being not included in address list.
It is further alternative, in a kind of application scenarios in the present embodiment, the can also be included in backup confirmation message Associated person information corresponding to one checksum value, when including associated person information corresponding to the first checksum value in backup confirmation message When, associated person information that terminal can be in the contact person information updating address list according to corresponding to the first checksum value.Wherein, terminal The specific method of associated person information in contact person information updating address list corresponding to the first checksum value can include:Eventually End calculates the checksum value of the basic field of associated person information corresponding to the first checksum value by checksum algorithm;In the updated Associated person information in search Back ground Information checksum value associated person information corresponding with the first checksum value Back ground Information Checksum value identical associated person information;If the checksum value that terminal finds Back ground Information is corresponding with the first checksum value It is the checksum value identical associated person information of the Back ground Information of people's information, then merges first in the associated person information in address list Associated person information corresponding to checksum value;If the checksum value that terminal does not find Back ground Information is corresponding with the first checksum value It is the checksum value identical associated person information of the Back ground Information of people's information, then stores contact person corresponding to the first checksum value and believe Breath.Wherein, if terminal does not find the basis letter of the checksum value associated person information corresponding with the first checksum value of Back ground Information The checksum value identical associated person information of breath, then it may be other ends to illustrate associated person information corresponding to first checksum value End backs up to the associated person information of cloud server.
309th, the type of terminal associated person information according to corresponding to the first checksum value generates the second backup messages.
Wherein, when associated person information corresponding to the first checksum value is the contact person of newly-increased associated person information or modification letter During breath, associated person information corresponding to the first checksum value is included in the second backup messages;And/or
When associated person information corresponding to the first checksum value is deleted associated person information, wrapped in the second backup messages Containing identification of contacts corresponding to the first checksum value.
310th, terminal sends the second backup messages to cloud server, wherein, the first verification is included in the second backup messages With value corresponding to associated person information, and/or identification of contacts corresponding to the first checksum value.
311st, cloud server receives the second backup messages for carrying out self terminal.
312nd, the associated person information that cloud server prestores according to the renewal of the second backup messages.
Wherein, as shown in figure 5, step 312 can specifically include step 312a to step 312e:
312a, when including identification of contacts corresponding to the first checksum value in the second backup messages, cloud server is deleted Except associated person information corresponding to identification of contacts.
It should be noted that when including identification of contacts corresponding to the first checksum value in the second backup messages, then may be used To determine associated person information corresponding to first checksum value by terminal deletion, therefore, cloud server can then be deleted Associated person information corresponding to identification of contacts.
312b, when including associated person information corresponding to the first checksum value in the second backup messages, cloud server leads to Cross the checksum value that checksum algorithm calculates the basic field of associated person information corresponding to the first checksum value.
312c, cloud server searched in the associated person information to prestore Back ground Information checksum value and first verification and The checksum value identical associated person information of the Back ground Information of associated person information corresponding to value.
If 312d, cloud server find the checksum value associated person information corresponding with the first checksum value of Back ground Information Back ground Information checksum value identical associated person information, cloud server then merges the first school in the associated person information to prestore Test and associated person information corresponding to being worth;
If 312e, cloud server do not find checksum value contact person's letter corresponding with the first checksum value of Back ground Information The checksum value identical associated person information of the Back ground Information of breath, cloud server are then stored and contacted corresponding to the first checksum value People's information.
It should be noted that the step 312b associated person informations that high in the clouds server update prestores into step 312e is specific The method of associated person information of the method with step 311a into step 311d in terminal renewal address list is similar, and the present embodiment is here Repeat no more.
The method of address book backup provided in an embodiment of the present invention, terminal update the connection in address list by checksum algorithm It is people's information, and obtains the checksum value of the non-NULL field of the associated person information after renewal, then sends the first backup messages extremely Cloud server, and receive the backup confirmation message from cloud server, if in backup confirmation message comprising first verification with Value, then the second backup messages are generated according to the first checksum value, finally send the second backup messages to cloud server.With it is existing In technology, the associated person information updated by way of full word section in address book backup is compared, and can pass through checksum algorithm meter The checksum value of the non-NULL field of associated person information is calculated, and communication is updated according to the checksum value of the non-NULL field of associated person information Record, backup updating or recovery are then carried out, so as to reduce the repetition of associated person information backup, improve address book backup effect Rate.
Embodiment 4
The embodiment of the present invention provides a kind of terminal, as shown in fig. 6, including:First updating block 41, the first transmitting element 42nd, receiving unit 43, the second transmitting element 44.
First updating block 41, for updating the associated person information in address list by checksum algorithm, and obtain renewal The checksum value of the non-NULL field of associated person information afterwards.
First transmitting element 42, for the first backup messages of transmission to cloud server, wrapped in first backup messages The checksum value of the non-NULL field of associated person information after mark and the renewal containing the address list.
Receiving unit 43, for receiving the backup confirmation message from the cloud server.
Second transmitting element 44, if for including the first checksum value in the backup confirmation message, according to described One checksum value generates the second backup messages, and sends second backup messages to the cloud server, wherein, described the One checksum value is what the cloud server was got according to the mark of the address list, and first checksum value is described It is non-with the associated person information after the renewal in the checksum value of the non-NULL field for the associated person information that cloud server prestores The checksum value that the checksum value of null field differs, comprising corresponding to first checksum value in second backup messages Associated person information, and/or identification of contacts corresponding to first checksum value.
Further, as shown in fig. 7, first updating block 41, can include:First computing module 411, first are obtained Modulus block 412, reservation module 413.
First computing module 411, the contact person for being calculated by the checksum algorithm in the address list believe The checksum value of the non-NULL field of breath.
First acquisition module 412, for the second verification in the checksum value for the non-NULL field for obtaining the associated person information With the number of value.
Reservation module 413, if for including at least two institutes in the checksum value of the non-NULL field of the associated person information The second checksum value is stated, then only retains associated person information corresponding to second checksum value.
Further, first updating block 41, can also include:First judge module 414, the second computing module 415th, the second acquisition module 416, the first merging module 417.
First judge module 414, for judging whether include Back ground Information, institute in the associated person information in the address list Stating Back ground Information includes the name and contact method of the contact person.
Second computing module 415, if for including the Back ground Information in the associated person information in the address list, count Calculate the checksum value of the non-NULL field of the Back ground Information.
Second acquisition module 416, for the 3rd verification in the checksum value for the non-NULL field for obtaining the Back ground Information With the number of value.
First merging module 417, if for including at least two in the checksum value of the non-NULL field of the Back ground Information 3rd checksum value, then merge associated person information corresponding to the 3rd checksum value.
Further, second transmitting element 44, including:Second judge module 441, generation module 442.
Second judge module 441, for judging the type of associated person information corresponding to first checksum value, described The type of associated person information includes corresponding to one checksum value:Newly-increased associated person information, modification associated person information, deleted Associated person information and be not included in the associated person information of the address list.
Generation module 442, first checksum value for judging to obtain according to first judge module 441 correspond to The type of associated person information generate second backup messages.
Further, when associated person information corresponding to first checksum value is the newly-increased associated person information or institute When stating the associated person information of modification, associated person information corresponding to first checksum value is included in second backup messages; And/or when associated person information is the deleted associated person information corresponding to first checksum value, described second is standby Identification of contacts corresponding to first checksum value is included in part message.
It should be noted that in terminal provided in an embodiment of the present invention part functional module the specific descriptions side of may be referred to Corresponding content in method embodiment, the present embodiment are no longer described in detail here.
The terminal of address book backup provided in an embodiment of the present invention, the contact person in address list is updated by checksum algorithm Information, and the checksum value of the non-NULL field of the associated person information after renewal is obtained, the first backup messages are then sent to high in the clouds Server, and the backup confirmation message from cloud server is received, if including the first checksum value in backup confirmation message, Second backup messages are generated according to the first checksum value, finally send the second backup messages to the cloud server.With it is existing In technology, the associated person information updated by way of full word section in address book backup is compared, and can pass through checksum algorithm meter The checksum value of the non-NULL field of associated person information is calculated, and communication is updated according to the checksum value of the non-NULL field of associated person information Record, backup updating or recovery are then carried out, so as to reduce the repetition of associated person information backup, improve address book backup effect Rate.
Embodiment 5
The embodiment of the present invention provides a kind of cloud server, as shown in figure 8, including:First receiving unit 51, matching unit 52nd, transmitting element 53, the second receiving unit 54.
First receiving unit 51, the first backup messages of self terminal are carried out for receiving, are included in first backup messages The checksum value of the non-NULL field of associated person information after the mark of address list and renewal.
Matching unit 52, for matching the non-empty words of the associated person information after the renewal according to the mark of the address list The checksum value of the non-NULL field of the checksum value of section and the associated person information to prestore, it is described so as to obtain the first checksum value First checksum value be the renewal after associated person information non-NULL field checksum value in the contact person to prestore The checksum value that the checksum value of the non-NULL field of information differs.
Transmitting element 53, for generating backup confirmation message according to first checksum value, and it is true to send the backup Message is recognized to the terminal, and first checksum value and/or first checksum value are included in the backup confirmation message Corresponding associated person information.
Second receiving unit 54, for when including first checksum value in the backup confirmation message, receiving and From the second backup messages of the terminal, and the associated person information to be prestored according to second backup messages renewal, it is described Associated person information corresponding to first checksum value is included in second backup messages, and/or first checksum value corresponds to Identification of contacts.
Further, as shown in figure 9, the cloud server, can also include:Computing unit 55.
Computing unit 55, for the connection after the matching unit 52 matches the renewal according to the mark of the address list It is the checksum value of the non-NULL field of people's information and the checksum value of the non-NULL field of associated person information to prestore, so as to obtain the Before one checksum value, by checksum algorithm calculate described in the checksum value of the non-NULL field of associated person information that prestores.
Further, as shown in Figure 10, second receiving unit 54, including:Removing module 541, computing module 542, Searching modul 543, merging module 544, memory module 545.
Removing module 541, for when including contact person corresponding to first checksum value in second backup messages During mark, associated person information corresponding to the identification of contacts is deleted;And/or
Computing module 542, for when including contact person corresponding to first checksum value in second backup messages During information, the verification of the basic field of associated person information corresponding to first checksum value is calculated by the checksum algorithm And value.
Searching modul 543, for searched in the associated person information to prestore the checksum value of the Back ground Information with The checksum value identical associated person information of the Back ground Information of associated person information corresponding to first checksum value.
Merging module 544, if corresponding with first checksum value for the checksum value for finding the Back ground Information The checksum value identical associated person information of the Back ground Information of associated person information, then merge described in institute in the associated person information that prestores State associated person information corresponding to the first checksum value.
Memory module 545, if corresponding with first checksum value for the checksum value for not finding the Back ground Information Associated person information Back ground Information checksum value identical associated person information, then store corresponding to first checksum value Associated person information.
It should be noted that the specific descriptions of part functional module can be with cloud server provided in an embodiment of the present invention Corresponding content in reference method embodiment, the present embodiment are no longer described in detail here.
The cloud server of address book backup provided in an embodiment of the present invention, the first backup messages for carrying out self terminal are received, The checksum value of the non-NULL field of associated person information after the mark matching renewal of address list in the first backup messages and The checksum value of the non-NULL field of the associated person information to prestore, so as to obtain the first checksum value, given birth to according to the first checksum value Into backup confirmation message, and send backup and confirm message to terminal, when including the first checksum value in backup confirmation message, connect Receive the second backup messages for carrying out self terminal, and the associated person information to be prestored according to the renewal of the second backup messages.With in the prior art, The associated person information updated by way of full word section in address book backup is compared, and can calculate contact person by checksum algorithm The checksum value of the non-NULL field of information, and address list is updated according to the checksum value of the non-NULL field of associated person information, then Backup updating or recovery are carried out, so as to reduce the repetition of associated person information backup, improves address book backup efficiency.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases Embodiment.Based on such understanding, portion that technical scheme substantially contributes to prior art in other words Dividing can be embodied in the form of software product, and the computer software product is stored in the storage medium that can be read, and such as be counted The floppy disk of calculation machine, hard disk or CD etc., including some instructions to cause a computer equipment (can be personal computer, Server, or network equipment etc.) perform method described in each embodiment of the present invention.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should using the scope of the claims as It is accurate.

Claims (16)

  1. A kind of 1. method of address book backup, it is characterised in that including:
    Associated person information in address list is updated by checksum algorithm, and obtains the non-NULL field of the associated person information after renewal Checksum value;
    The first backup messages are sent to cloud server, the mark comprising the address list and described in first backup messages The checksum value of the non-NULL field of associated person information after renewal;
    Receive the backup confirmation message from the cloud server;
    If including the first checksum value in the backup confirmation message, disappeared according to the backup of first checksum value generation second Breath, and second backup messages are sent to the cloud server, wherein, first checksum value is the cloud service Device is got according to the mark of the address list, and first checksum value is contact person's letter that the cloud server prestores Differed in the checksum value of the non-NULL field of breath with the checksum value of the non-NULL field of the associated person information after the renewal Checksum value, associated person information corresponding to first checksum value, and/or described first are included in second backup messages Identification of contacts corresponding to checksum value.
  2. 2. the method for address book backup according to claim 1, it is characterised in that described updated by checksum algorithm is led to Associated person information in news record, is specifically included:
    The checksum value of the non-NULL field of the associated person information in the address list is calculated by the checksum algorithm;
    Obtain the number of the second checksum value in the checksum value of the non-NULL field of the associated person information;
    If including at least two second checksum values in the checksum value of the non-NULL field of the associated person information, only protect Stay associated person information corresponding to second checksum value.
  3. 3. the method for address book backup according to claim 2, it is characterised in that updating second checksum value pair After the associated person information answered, methods described also includes:
    Judge Back ground Information whether is included in the associated person information in the address list, the Back ground Information includes the contact person Name and contact method;
    If including the Back ground Information in the associated person information in the address list, the non-NULL field of the Back ground Information is calculated Checksum value;
    Obtain the number of the 3rd checksum value in the checksum value of the non-NULL field of the Back ground Information;
    If including at least two the 3rd checksum values in the checksum value of the non-NULL field of the Back ground Information, merge described Associated person information corresponding to three checksum values.
  4. 4. the method for address book backup according to claim 1, it is characterised in that described according to first checksum value The second backup messages are generated, including:
    Judge the type of associated person information corresponding to first checksum value, contact person corresponding to first checksum value believes The type of breath includes:Newly-increased associated person information, the associated person information of modification, deleted associated person information and it is not included in institute State the associated person information of address list;
    Second backup messages are generated according to the type of associated person information corresponding to first checksum value.
  5. 5. the method for address book backup according to claim 4, it is characterised in that
    When the contact that associated person information corresponding to first checksum value is the newly-increased associated person information or the modification During people's information, associated person information corresponding to first checksum value is included in second backup messages;And/or
    When associated person information is the deleted associated person information corresponding to first checksum value, second backup Identification of contacts corresponding to first checksum value is included in message.
  6. A kind of 6. method of address book backup, it is characterised in that including:
    The first backup messages for carrying out self terminal are received, the connection in first backup messages after the mark comprising address list and renewal It is the checksum value of the non-NULL field of people's information;
    The checksum value of the non-NULL field of the associated person information after the renewal is matched according to the mark of the address list and is prestored Associated person information non-NULL field checksum value, so as to obtain the first checksum value, first checksum value is described In the checksum value of the non-NULL field of associated person information after renewal with the school of the non-NULL field of the associated person information to prestore Test and be worth the checksum value differed;
    Backup confirmation message is generated according to first checksum value, and sends the backup and confirms message to the terminal, institute State in backup confirmation message comprising associated person information corresponding to first checksum value and/or first checksum value;
    When including first checksum value in the backup confirmation message, receive the from the terminal second backup and disappear Breath, and the associated person information that prestores according to second backup messages renewal, comprising described in second backup messages Associated person information corresponding to first checksum value, and/or identification of contacts corresponding to first checksum value.
  7. 7. the method for address book backup according to claim 6, it is characterised in that in the mark according to the address list The school of the non-NULL field of the checksum value of non-NULL field with the associated person information after the renewal and the associated person information to prestore Test and be worth, so as to which before obtaining the first checksum value, methods described also includes:
    By checksum algorithm calculate described in the checksum value of the non-NULL field of associated person information that prestores.
  8. 8. the method for address book backup according to claim 6, it is characterised in that described according to second backup messages The associated person information to be prestored described in renewal, including:
    When including identification of contacts corresponding to first checksum value in second backup messages, the contact person is deleted Associated person information corresponding to mark;And/or
    When including associated person information corresponding to first checksum value in second backup messages, pass through checksum algorithm Calculate the checksum value of the Back ground Information of associated person information corresponding to first checksum value;
    The checksum value that the Back ground Information is searched in the associated person information to prestore is corresponding with first checksum value Associated person information Back ground Information checksum value identical associated person information;
    If the Back ground Information of the checksum value for finding Back ground Information associated person information corresponding with first checksum value Checksum value identical associated person information, then merge described in corresponding to the first checksum value described in the associated person information that prestores Associated person information;
    If the basis letter of the checksum value for not finding the Back ground Information associated person information corresponding with first checksum value The checksum value identical associated person information of breath, then store associated person information corresponding to first checksum value.
  9. A kind of 9. terminal, it is characterised in that including:
    First updating block, for updating the associated person information in address list by checksum algorithm, and obtain the connection after renewal It is the checksum value of the non-NULL field of people's information;
    First transmitting element, for the first backup messages of transmission to cloud server, included in first backup messages described The checksum value of the non-NULL field of associated person information after the mark of address list and the renewal;
    Receiving unit, for receiving the backup confirmation message from the cloud server;
    Second transmitting element, if for including the first checksum value in the backup confirmation message, according to the described first verification The second backup messages are generated with value, and send second backup messages to the cloud server, wherein, first verification It is what the cloud server was got according to the mark of the address list with value, first checksum value takes for the high in the clouds Non-NULL field in the checksum value of the non-NULL field for the associated person information that business device prestores with the associated person information after the renewal The checksum value that differs of checksum value, include contact person corresponding to first checksum value in second backup messages Information, and/or identification of contacts corresponding to first checksum value.
  10. 10. terminal according to claim 9, it is characterised in that first updating block, including:
    First computing module, for calculating the non-NULL of the associated person information in the address list by the checksum algorithm The checksum value of field;
    First acquisition module, for the second checksum value in the checksum value for the non-NULL field for obtaining the associated person information Number;
    Reservation module, if for including at least two second schools in the checksum value of the non-NULL field of the associated person information Test and be worth, then only retain associated person information corresponding to second checksum value.
  11. 11. terminal according to claim 10, it is characterised in that first updating block, in addition to:
    First judge module, for judging whether include Back ground Information, the basis in the associated person information in the address list Information includes the name and contact method of the contact person;
    Second computing module, if for including the Back ground Information in the associated person information in the address list, calculate described in The checksum value of the non-NULL field of Back ground Information;
    Second acquisition module, for the 3rd checksum value in the checksum value for the non-NULL field for obtaining the Back ground Information Number;
    First merging module, if for including at least two the 3rd verifications in the checksum value of the non-NULL field of the Back ground Information And value, then merge associated person information corresponding to the 3rd checksum value.
  12. 12. terminal according to claim 9, it is characterised in that second transmitting element, including:
    Second judge module, for judging the type of associated person information corresponding to first checksum value, first verification With value corresponding to the type of associated person information include:Newly-increased associated person information, the associated person information of modification, deleted contact People's information and the associated person information for being not included in the address list;
    Generation module, disappear for second backup of the type generation of associated person information according to corresponding to first checksum value Breath.
  13. 13. terminal according to claim 12, it is characterised in that
    When the contact that associated person information corresponding to first checksum value is the newly-increased associated person information or the modification During people's information, associated person information corresponding to first checksum value is included in second backup messages;And/or
    When associated person information is the deleted associated person information corresponding to first checksum value, second backup Identification of contacts corresponding to first checksum value is included in message.
  14. A kind of 14. cloud server, it is characterised in that including:
    First receiving unit, the first backup messages of self terminal are carried out for receiving, address list is included in first backup messages Mark and renewal after associated person information non-NULL field checksum value;
    Matching unit, the school of the non-NULL field for matching the associated person information after the renewal according to the mark of the address list The checksum value of the non-NULL field of associated person information for testing and being worth and prestoring, so as to obtain the first checksum value, first school Test and value be the renewal after associated person information non-NULL field checksum value in the associated person information to prestore The checksum value that the checksum value of non-NULL field differs;
    Transmitting element, for generating backup confirmation message according to first checksum value, and send the backup confirmation message To the terminal, included in the backup confirmation message corresponding to first checksum value and/or first checksum value Associated person information;
    Second receiving unit, for when including first checksum value in the backup confirmation message, receiving from described Second backup messages of terminal, and the associated person information to be prestored according to second backup messages renewal, described second is standby Associated person information corresponding to first checksum value is included in part message, and/or is contacted corresponding to first checksum value People identifies.
  15. 15. cloud server according to claim 14, it is characterised in that also include:
    Computing unit, for the associated person information after the matching unit matches the renewal according to the mark of the address list The checksum value of non-NULL field and the checksum value of the non-NULL field of associated person information to prestore, so as to obtain the first verification and Before value, by checksum algorithm calculate described in the checksum value of the non-NULL field of associated person information that prestores.
  16. 16. cloud server according to claim 14, it is characterised in that second receiving unit, including:
    Removing module, for when including identification of contacts corresponding to first checksum value in second backup messages, Delete associated person information corresponding to the identification of contacts;And/or
    Computing module, for when including associated person information corresponding to first checksum value in second backup messages, The checksum value of the Back ground Information of associated person information corresponding to first checksum value is calculated by checksum algorithm;
    Searching modul, for searching the checksum value and described first of the Back ground Information in the associated person information to prestore The checksum value identical associated person information of the Back ground Information of associated person information corresponding to checksum value;
    Merging module, if checksum value contact person's letter corresponding with first checksum value for finding the Back ground Information The checksum value identical associated person information of the Back ground Information of breath, then the first school described in the associated person information to be prestored described in merging Test and associated person information corresponding to being worth;
    Memory module, if the checksum value contact person corresponding with first checksum value for not finding the Back ground Information The checksum value identical associated person information of the Back ground Information of information, then store contact person corresponding to first checksum value and believe Breath.
CN201210530410.8A 2012-12-10 2012-12-10 A kind of method and device of address book backup Active CN103873496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210530410.8A CN103873496B (en) 2012-12-10 2012-12-10 A kind of method and device of address book backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210530410.8A CN103873496B (en) 2012-12-10 2012-12-10 A kind of method and device of address book backup

Publications (2)

Publication Number Publication Date
CN103873496A CN103873496A (en) 2014-06-18
CN103873496B true CN103873496B (en) 2018-01-23

Family

ID=50911621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210530410.8A Active CN103873496B (en) 2012-12-10 2012-12-10 A kind of method and device of address book backup

Country Status (1)

Country Link
CN (1) CN103873496B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763708B (en) * 2014-12-19 2018-12-25 北京奇虎科技有限公司 The processing method and mobile communication terminal of address book information in mobile communication terminal
CN105988890B (en) * 2015-01-29 2020-01-17 阿里巴巴集团控股有限公司 Information backup method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713674A (en) * 2004-06-25 2005-12-28 华为技术有限公司 Telephone book system, updating and calling method for telephone book of mobile terminal telephone book
CN1818881A (en) * 2006-03-10 2006-08-16 四川大学 Fault controlling method in long-distance data backup
CN1937536A (en) * 2006-10-31 2007-03-28 华为技术有限公司 Network management topological data synchronous refreshing method and system
CN101087262A (en) * 2006-06-07 2007-12-12 阿里巴巴公司 An instant communication processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713674A (en) * 2004-06-25 2005-12-28 华为技术有限公司 Telephone book system, updating and calling method for telephone book of mobile terminal telephone book
CN1818881A (en) * 2006-03-10 2006-08-16 四川大学 Fault controlling method in long-distance data backup
CN101087262A (en) * 2006-06-07 2007-12-12 阿里巴巴公司 An instant communication processing method and system
CN1937536A (en) * 2006-10-31 2007-03-28 华为技术有限公司 Network management topological data synchronous refreshing method and system

Also Published As

Publication number Publication date
CN103873496A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN106789089B (en) The method, apparatus and system and server of management certificate
CN104683961B (en) Business card exchange method, device and terminal
CN104244254B (en) Method and device for detecting pseudo base station based on short message center number
CN100588282C (en) Verification vectors generating apparatus, generation method, subscriber authentication module, mobile communication system
CA2830283A1 (en) Interrogating an authentication device
CN104951680A (en) Biological characteristic information processing method, storage method and device
CN103118087B (en) A kind of mobile communication terminal and its data guard method, system
CN107103014A (en) The replay method of history pushed information, device and system
CN105681154A (en) Method and device for sending message in instant messaging software
CN104753675B (en) Information Authentication method, electric paying method, terminal, server and system
CN102984335B (en) Dial the identity identifying method of landline telephone, equipment and system
JP2013149280A (en) Method of determining id of electronic device
CN102082589A (en) Method, device and system for storing contact information
CN104935548B (en) Auth method, apparatus and system based on intelligent equipment of tatooing
CN109729000A (en) A kind of instant communicating method and device
CN103873496B (en) A kind of method and device of address book backup
CN114039726B (en) Key generation method, key acquisition method, related device and medium
CN102420852B (en) Server, mobile terminal and data synchronizing method
CN107315934A (en) Communication message processing method, mobile terminal and storage device
CN102801728B (en) The management method of automatic login of client side and system
CN106033518A (en) Information processing method and apparatus
Li et al. Smartphone strategic sampling in defending enterprise network security
CN102346822B (en) Traceable mobile storage device, system and tracking method
CN201717885U (en) Code providing equipment and code identification system
KR20140145891A (en) Method for indicating privacy level based on pattern

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