CN103873496A - Method and device for contact-list backup - Google Patents

Method and device for contact-list backup Download PDF

Info

Publication number
CN103873496A
CN103873496A CN201210530410.8A CN201210530410A CN103873496A CN 103873496 A CN103873496 A CN 103873496A CN 201210530410 A CN201210530410 A CN 201210530410A CN 103873496 A CN103873496 A CN 103873496A
Authority
CN
China
Prior art keywords
checksum value
associated person
person information
backup
checksum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210530410.8A
Other languages
Chinese (zh)
Other versions
CN103873496B (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

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and device for contact-list backup and relates to the field of communication. The method and device can prevent repeated backup of contact-person information so that contact-list backup efficiency is improved. A specific scheme is as follows: through check and an algorithm, contact-person information in the contact list is updated and a checksum value of a non-empty field of the contact-person information which is updated is obtained; a first backup message is sent to a cloud corner; a backup confirmation message from the cloud corner is received; if the backup confirmation message includes a first checksum value, a second backup message is generated according to the first checksum value and sent to the cloud corner. The method and device for the contact-list backup is used for a process in which the contact list in an electronic device is backed up.

Description

A kind of method of address book backup and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and device of address book backup.
Background technology
Address list is the requisite information of electronic equipment user such as e-mail system, mobile terminal or palmtop PC, along with the lengthening of these systems or electronic equipment service time, the associated person information of preserving in address list can be more and more numerous and more jumbled, and user also can be more and more stronger to its dependence.In order reducing because associated person information is lost inconvenience and economic loss that user is caused, can to back up the associated person information in electronic equipment, and carry out backup updating in real time.
Existing address book backup instrument, the variation (increase newly, revise and delete) of the associated person information in communication equipment can accurately be detected, adopt the manner of comparison of full word section to compare the associated person information in current contacts information and address book backup, and upgrade the associated person information in address book backup according to comparative result.
State in realization in the process of backup of address list, inventor finds that in prior art, at least there are the following problems: in the use procedure of electronic equipment, due to user's operation or the requirement of different application software, may in some associated person informations, increase at least one to the sightless null field of user.When the manner of comparison of employing full word section compares the associated person information in current contacts information and address book backup, can think that having increased the associated person information of null field is adding information of contact person, therefore, in the time carrying out address book backup, causing the backup that repeats of associated person information, the backup efficiency of address list is low.
Summary of the invention
Embodiments of the invention provide a kind of method and device of address book backup, can avoid the backup that repeats of associated person information, and then can improve address book backup efficiency.
The first aspect of the embodiment of the present invention, provides a kind of method of address book backup,, comprising:
Upgrade the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal;
Send the first backup messages to cloud server, the checksum value of the non-NULL field of the associated person information after mark and the described renewal that comprises described address list in described the first backup messages;
Receive the backup acknowledge message from described cloud server;
If comprise the first checksum value in described backup acknowledge message, generate the second backup messages according to described the first checksum value, and send described the second backup messages to described cloud server, wherein, described the first checksum value is that described cloud server gets according to the mark of described address list, described the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information after described renewal in the checksum value of non-NULL field of the associated person information that prestores of described cloud server, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
In conjunction with first aspect, in a kind of possible implementation, describedly upgrade the associated person information in address list by checksum algorithm, specifically comprise:
Calculate the checksum value of the non-NULL field of the described associated person information in described address list by described checksum algorithm;
Obtain the number of the second checksum value in the checksum value of non-NULL field of described associated person information;
If comprise at least two described the second checksum values in the checksum value of the non-NULL field of described associated person information, only retain an associated person information corresponding to described the second checksum value.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, after associated person information corresponding to described the second checksum value of described renewal, described method also comprises:
Judge in the associated person information in described address list whether comprise Back ground Information, described Back ground Information comprises described contact person's name and contact method;
If comprise described Back ground Information in the associated person information in described address list, calculate the checksum value of the non-NULL field of described Back ground Information;
Obtain the number of the 3rd checksum value in the checksum value of non-NULL field of described Back ground Information;
If comprise at least two the 3rd checksum values in the checksum value of the non-NULL field of described Back ground Information, merge associated person information corresponding to described the 3rd checksum value.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, describedly generate the second backup messages according to described the first checksum value, comprising:
Judge the type of the associated person information that described the first checksum value is corresponding, the type of the associated person information that described the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of described address list;
Generate described the second backup messages according to the type of associated person information corresponding to described the first checksum value.
In conjunction with first aspect and above-mentioned possible implementation, in the possible implementation of another kind, in the time that associated person information corresponding to described the first checksum value is the associated person information of described newly-increased associated person information or described amendment, in described the second backup messages, comprise associated person information corresponding to described the first checksum value; And/or,
In the time that associated person information corresponding to described the first checksum value is described deleted associated person information, in described the second backup messages, comprise identification of contacts corresponding to described the first checksum value.
The second aspect of the embodiment of the present invention, also provides a kind of method of address book backup, comprising:
Receive the first backup messages of self terminal, the checksum value of the non-NULL field of the associated person information after the mark that comprises address list in described the first backup messages and renewal;
Checksum value according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list with the non-NULL field of the associated person information prestoring, thereby obtain the first checksum value, described the first checksum value be in the checksum value of non-NULL field of the associated person information after described renewal with described in the not identical checksum value of the checksum value of non-NULL field of the associated person information that prestores;
Generate backup acknowledge message according to described the first checksum value, and send described backup and confirm message to described terminal, in described backup acknowledge message, comprise described the first checksum value and/or associated person information corresponding to described the first checksum value;
In the time comprising described the first checksum value in described backup acknowledge message, receive the second backup messages from described terminal, and the associated person information prestoring described in upgrading according to described the second backup messages, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
In conjunction with second aspect, in a kind of possible implementation, described according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list and the associated person information that prestores, thereby before obtaining the first checksum value, described method also comprises:
The checksum value of the non-NULL field of the associated person information prestoring described in calculating by checksum algorithm.
In conjunction with second aspect and above-mentioned possible implementation, in the possible implementation of another kind, described according to the associated person information prestoring described in described the second backup messages renewal, comprising:
In the time comprising identification of contacts corresponding to described the first checksum value in described the second backup messages, delete associated person information corresponding to described identification of contacts; And/or,
In the time comprising associated person information corresponding to described the first checksum value in described the second backup messages, calculate the checksum value of the basic field of the associated person information that described the first checksum value is corresponding by described checksum algorithm;
In the described associated person information prestoring, search the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value;
If find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, associated person information corresponding to the first checksum value described in the associated person information prestoring described in merging;
If do not find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, store associated person information corresponding to described the first checksum value.
The third aspect of the embodiment of the present invention, also provides a kind of terminal, comprising:
The first updating block, for upgrade the associated person information of address list by checksum algorithm, and obtains the checksum value of the non-NULL field of the associated person information after renewal;
The first transmitting element, for sending the first backup messages to cloud server, the checksum value of the non-NULL field of the associated person information after mark and the described renewal that comprises described address list in described the first backup messages;
Receiving element, for receiving the backup acknowledge message from described cloud server;
The second transmitting element, if comprise the first checksum value for described backup acknowledge message, generate the second backup messages according to described the first checksum value, and send described the second backup messages to described cloud server, wherein, described the first checksum value is that described cloud server gets according to the mark of described address list, described the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information after described renewal in the checksum value of non-NULL field of the associated person information that prestores of described cloud server, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
In conjunction with the third aspect, in a kind of possible implementation, described the first updating block, comprising:
The first computing module, for calculating the checksum value of non-NULL field of described associated person information of described address list by described checksum algorithm;
The first acquisition module, for obtaining the number of checksum value the second checksum value of non-NULL field of described associated person information;
Retain module, if comprise at least two described the second checksum values for the checksum value of the non-NULL field of described associated person information, only retain an associated person information corresponding to described the second checksum value.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the first updating block, also comprises:
The first judge module, for judging in the associated person information of described address list whether comprise Back ground Information, described Back ground Information comprises described contact person's name and contact method;
The second computing module, if comprise described Back ground Information in the associated person information for described address list, calculates the checksum value of the non-NULL field of described Back ground Information;
The second acquisition module, for obtaining the number of the 3rd checksum value of checksum value of non-NULL field of described Back ground Information;
First merges module, if comprise at least two the 3rd checksum values for the checksum value of the non-NULL field of described Back ground Information, merges associated person information corresponding to described the 3rd checksum value.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the second transmitting element, comprising:
The second judge module, for judging the type of the associated person information that described the first checksum value is corresponding, the type of the associated person information that described the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of described address list;
Generation module, for generating described the second backup messages according to the type of associated person information corresponding to described the first checksum value.
In conjunction with the third aspect and above-mentioned possible implementation, in the possible implementation of another kind, in the time that associated person information corresponding to described the first checksum value is the associated person information of described newly-increased associated person information or described amendment, in described the second backup messages, comprise associated person information corresponding to described the first checksum value; And/or,
In the time that associated person information corresponding to described the first checksum value is described deleted associated person information, in described the second backup messages, comprise identification of contacts corresponding to described the first checksum value.
The fourth aspect of the embodiment of the present invention, also provides a kind of cloud server, comprising:
The first receiving element, for receiving the first backup messages of self terminal, the checksum value of the non-NULL field of the associated person information after the mark that comprises address list in described the first backup messages and renewal;
Matching unit, for the checksum value with the non-NULL field of the associated person information prestoring according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list, thereby obtain the first checksum value, described the first checksum value be in the checksum value of non-NULL field of the associated person information after described renewal with described in the not identical checksum value of the checksum value of non-NULL field of the associated person information that prestores;
Transmitting element, for generating backup acknowledge message according to described the first checksum value, and send described backup and confirm message to described terminal, in described backup acknowledge message, comprise described the first checksum value and/or associated person information corresponding to described the first checksum value;
The second receiving element, for in the time that described backup acknowledge message comprises described the first checksum value, receive the second backup messages from described terminal, and the associated person information prestoring described in upgrading according to described the second backup messages, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
In conjunction with fourth aspect, in a kind of possible implementation, described cloud server, also comprises:
Computing unit, for at described matching unit according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list and the associated person information that prestores, thereby before obtaining the first checksum value, the checksum value of the non-NULL field of the associated person information prestoring described in calculating by checksum algorithm.
In conjunction with fourth aspect and above-mentioned possible implementation, in the possible implementation of another kind, described the second receiving element, comprising:
Removing module, when comprise identification of contacts corresponding to described the first checksum value when described the second backup messages, deletes associated person information corresponding to described identification of contacts; And/or,
Computing module, when comprise associated person information corresponding to described the first checksum value when described the second backup messages, calculates the checksum value of the basic field of the associated person information that described the first checksum value is corresponding by described checksum algorithm;
Search module, for search the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value at the described associated person information prestoring;
Merge module, if for finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, associated person information corresponding to the first checksum value described in the associated person information prestoring described in merging;
Memory module, if for not finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, store associated person information corresponding to described the first checksum value.
The method of the address book backup that the embodiment of the present invention provides and device, terminal is upgraded the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal, then send the first backup messages to cloud server, and reception is from the backup acknowledge message of cloud server, if comprise the first checksum value in backup acknowledge message, generate the second backup messages according to the first checksum value, finally send the second backup messages to described cloud server.In prior art, adopting the associated person information upgrading in address book backup by the mode of full word section compares, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of a kind of address book backup in the embodiment of the present invention 1;
Fig. 2 is the method flow diagram of a kind of address book backup in the embodiment of the present invention 2;
Fig. 3 is the method flow diagram of a kind of address book backup in the embodiment of the present invention 3;
Fig. 4 is the method flow diagram of the another kind of address book backup in the embodiment of the present invention 3;
Fig. 5 is the method flow diagram of the another kind of address book backup in the embodiment of the present invention 3;
Fig. 6 is the composition schematic diagram of a kind of terminal in the embodiment of the present invention 4;
Fig. 7 is the composition schematic diagram of the another kind of terminal in the embodiment of the present invention 4;
Fig. 8 is the composition schematic diagram of a kind of cloud server in the embodiment of the present invention 5;
Fig. 9 is the composition schematic diagram of the another kind of cloud server in the embodiment of the present invention 5;
Figure 10 is the composition schematic diagram of the another kind of 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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, 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 be applied in the renewal and recovery process of address book backup, as shown in Figure 1, comprising:
101, terminal is upgraded the associated person information in address list by checksum algorithm, and obtains the checksum value of the non-NULL field of the associated person information after renewal.
Wherein, verification and (Checksum) algorithm are a kind of algorithms that can carry out to data verification, can be applied in data processing and data communication field.Concrete, Checksum algorithm can one group of data item of verification and, these data item can be numerals or in inspection and process, regard other digital character string as calculating.
It should be noted that, the Checksum algorithm that the present embodiment adopts combines cyclic redundancy check (CRC) (Cyclic Redundancy Check, CRC) algorithm and Adler sliding block decode algorithm, can computer communication the Checksum value of non-NULL field of associated person information in record, thereby avoid backing up repetition owing to comprising the contact person that null field information causes in associated person information.
Further it should be noted that, terminal in the embodiment of the present invention can comprise: mobile phone, pad, personal computer (Personal Computer, PC) etc. has address book function or can login the electronic equipment of the bitcoms such as E-mail address, QQ, MSN.
Concrete, terminal is upgraded the associated person information in address list by checksum algorithm, can comprise: the checksum value of the non-NULL field of the associated person information in recording by checksum algorithm computer communication; Obtain the number of the second checksum value in the checksum value of non-NULL field of associated person information; If comprise at least two the second checksum values in the checksum value of the non-NULL field of associated person information, only retain an associated person information that the second checksum value is corresponding.
Further alternative, terminal is upgraded the associated person information in address list by checksum algorithm, can also comprise: judge in the associated person information in address list whether comprise Back ground Information, Back ground Information comprises contact person's name and contact method; If comprise Back ground Information in the associated person information in address list, calculate the checksum value of the non-NULL field of Back ground Information; Obtain the number of the 3rd checksum value in the checksum value of non-NULL field of Back ground Information; If comprise at least two the 3rd checksum values in the checksum value of the non-NULL field of Back ground Information, merge associated person information corresponding to the 3rd checksum value.
102, terminal sends the first backup messages to cloud server, in the first backup messages, comprise the mark of address list and upgrade after the checksum value of non-NULL field of associated person information.
Wherein, terminal sends the first backup messages to cloud server, can make in the checksum value of non-NULL field of the associated person information that cloud server prestores according to the marking matched cloud server of address list with upgrade after the checksum value of non-NULL field of associated person information, thereby make cloud server get the first checksum value, and then make cloud server generate backup acknowledge message according to the first checksum value.The first checksum value be in the checksum value of non-NULL field of the associated person information that prestores of cloud server with upgrade after the not identical checksum value of the checksum value of non-NULL field of associated person information.
103, terminal receives the backup acknowledge message from cloud server.
Wherein, owing to can comprising the first checksum value and/or associated person information corresponding to the first checksum value in backup acknowledge message, therefore the method for the present embodiment can also comprise step 104 and/or step 105.
If comprise the first checksum value in 104 backup acknowledge messages, terminal generates the second backup messages according to the first checksum value, and sends the second backup messages to cloud server.Wherein, in the second backup messages, comprise the associated person information that the first checksum value is corresponding, and/or identification of contacts corresponding to the first checksum value.
Wherein, generate the second backup messages according to the first checksum value, can comprise: judge the type of the associated person information that the first checksum value is corresponding, the type of the associated person information that the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of address list; Generate the second backup messages according to the type of associated person information corresponding to the first checksum value.
It should be noted that, in a kind of application scenarios of the present embodiment, in backup acknowledge message, can also comprise the associated person information that the first checksum value is corresponding.In the time that backup comprises associated person information corresponding to the first checksum value in acknowledge message, terminal can be according to the associated person information in contact person information updating address list corresponding to the first checksum value.
Wherein, associated person information corresponding to the first checksum value that backup comprises in acknowledge message be in the checksum value of non-NULL field of the associated person information that prestores according to the marking matched cloud server of address list of cloud server with upgrade after the checksum value of non-NULL field of associated person information after, in the first checksum value getting, be contained in the checksum value of the non-NULL field of the associated person information that cloud server prestores, but be not contained in the associated person information corresponding to checksum value of the checksum value of the non-NULL field of the associated person information after renewal.
The method of the address book backup that the embodiment of the present invention provides, terminal is upgraded the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal, then send the first backup messages to cloud server, and reception is from the backup acknowledge message of cloud server, if comprise the first checksum value in backup acknowledge message, generate the second backup messages according to the first checksum value, finally send the second backup messages to cloud server.In prior art, the associated person information upgrading in address book backup by the mode of full word section is compared, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Embodiment 2
The embodiment of the present invention provides a kind of method of address book backup, can be applied in the renewal and recovery process of address book backup, as shown in Figure 2, comprising:
201, cloud server receives the first backup messages of self terminal, in the first backup messages, comprise the mark of address list and upgrade after the checksum value of non-NULL field of associated person information.
202, cloud server is according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched renewal of address list and the associated person information that prestores, thereby obtain the first checksum value, the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information prestoring in the checksum value of non-NULL field of the associated person information after upgrading.
Concrete, in cloud server, may store the address list that comprises multiple terminals and back up to this cloud server, therefore, cloud server can be according to the address list of selecting corresponding terminal in the backup address list of selecting cloud server storage that is identified at of address list, the checksum value of the non-NULL field of the associated person information after checksum value and the renewal of the non-NULL field of the associated person information that then coupling prestores, and in the checksum value of non-NULL field of associated person information after selecting to upgrade the checksum value not identical with the checksum value of the non-NULL field of the associated person information prestoring as the first checksum value.
Further, server is according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched renewal of address list and the associated person information that prestores beyond the clouds, thereby before obtaining the first checksum value, the method of this address book backup, can also comprise: cloud server calculates the checksum value of the non-NULL field of the associated person information prestoring by checksum algorithm.
203, cloud server generates backup acknowledge message according to the first checksum value, and sends backup and confirm message to terminal, in backup acknowledge message, comprises the first checksum value and/or associated person information corresponding to the first checksum value.
It should be noted that, in a kind of application scenarios of the present embodiment, cloud server generates backup acknowledge message according to the first checksum value, and transmission backup confirms message to terminal, can comprise: when the first checksum value is the checksum value that is contained in the non-NULL field of the associated person information that cloud server prestores, but while not being contained in the checksum value of non-NULL field of the associated person information after renewal, cloud server is carried at associated person information corresponding this first checksum value in backup acknowledge message, sends backup and confirms message to terminal.
Further, in the another kind of application scenarios of the present embodiment, cloud server generates backup acknowledge message according to the first checksum value, and transmission backup confirms message to terminal, can comprise: when the first checksum value is the checksum value that is contained in the non-NULL field of the associated person information after renewal, but while not being contained in the checksum value of non-NULL field of the associated person information that cloud server prestores, cloud server is carried at this first checksum value in backup acknowledge message, sends backup and confirms message to terminal.、
Further, in the another kind of application scenarios of the present embodiment, in backup acknowledge message, both comprise the first checksum value, comprised again the associated person information that the first checksum value is corresponding.In this application scenarios, cloud server generates the concrete grammar of backup acknowledge message according to the first checksum value, can be with reference to the description in other embodiment of the present invention, and the present embodiment repeats no more here.
It should be noted that, because user can try out its address list in different terminals, therefore, may there is the triggering according to user, associated person information newly-increased on first terminal is backed up to cloud server by first terminal, and in the second terminal, do not store this newly-increased associated person information.So the first checksum value can be contained in the checksum value of the non-NULL field of the associated person information that cloud server prestores, but be not contained in the checksum value of the non-NULL field of the associated person information after renewal.
204, in the time comprising the first checksum value in backup acknowledge message, cloud server receives the second backup messages of self terminal, and upgrade the associated person information prestoring according to the second backup messages, in the second backup messages, comprise the associated person information that the first checksum value is corresponding, and/or identification of contacts corresponding to the first checksum value.
Concrete, in the time that associated person information corresponding to the first checksum value is the associated person information of newly-increased associated person information or amendment, in the second backup messages, comprise the associated person information that the first checksum value is corresponding; And/or, in the time that associated person information corresponding to the first checksum value is deleted associated person information, in the second backup messages, comprise the identification of contacts that the first checksum value is corresponding.
It should be noted that, cloud server can be the electronic equipment with storage, computing function of network side.
The method of the address book backup that the embodiment of the present invention provides, cloud server receives the first backup messages of self terminal, checksum value according to the checksum value of the non-NULL field of the associated person information after the marking matched renewal of the address list in the first backup messages with the non-NULL field of the associated person information prestoring, thereby obtain the first checksum value, generate backup acknowledge message according to the first checksum value, and transmission backup confirms message to terminal, in the time comprising the first checksum value in backup acknowledge message, receive the second backup messages of self terminal, and upgrade the associated person information prestoring according to the second backup messages.In prior art, the associated person information upgrading in address book backup by the mode of full word section is compared, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Embodiment 3
The embodiment of the present invention provides a kind of method of address book backup, can be applied in the renewal and recovery process of address book backup, as shown in Figure 3, comprising:
301, terminal is upgraded the associated person information in address list by checksum algorithm.
Concrete, terminal can be upgraded the associated person information in address list by checksum algorithm in response to user's triggering.
As shown in Figure 4, step 301 specifically can comprise that step 301a is to step 301c:
301a, terminal are by the checksum value of the non-NULL field of the associated person information in the record of checksum algorithm computer communication.
Wherein, due to user's operation or the requirement of different application software, may in some associated person informations, increase at least one to the sightless null field of user, therefore in the address list of terminal, may comprise multiple identical associated person informations.In the embodiment of the present invention, terminal, by the checksum value of the non-NULL field of the associated person information in the record of checksum algorithm computer communication, can be avoided because associated person information exists null field, and the associated person information causing repeats backup.For example, if increase a null field in the associated person information A in address list, terminal can be thought in address list has increased an associated person information A+, (associated person information A+ is that associated person information A increases the associated person information after null field).If terminal adopts the mode of full word section to carry out address book backup, can cause associated person information to repeat backup.But because terminal is by the checksum value of the non-NULL field of the associated person information in the record of checksum algorithm computer communication, the associated person information A calculating and the checksum value of associated person information A+ are identical.If terminal is before carrying out address book backup, the checksum value of the non-NULL field of the associated person information in recording by checksum algorithm computer communication, can only retain and back up in the associated person information that checksum value is identical, and then can avoid associated person information to repeat backup.
301b, terminal are obtained the number of the second checksum value in the checksum value of non-NULL field of associated person information.
Exemplary, owing to may comprising null field in the associated person information in address list, as the associated person information A+ in step 301a.Wherein, associated person information A is identical with the checksum value of the null field of associated person information A+, and terminal can calculate two identical checksum values.
If comprise at least two the second checksum values in the checksum value of the non-NULL field of 301c associated person information, terminal only retains an associated person information that the second checksum value is corresponding.
Exemplary, as the associated person information A in step 301a and associated person information A+, the associated person information that comprises null field is consistent with the actual information not comprising in the associated person information of null field, therefore, if comprise at least two the second checksum values in the checksum value of the non-NULL field of associated person information, terminal only retains an associated person information that the second checksum value is corresponding, and deletes the associated person information of corresponding other of the second checksum value.
Further, due to user use in the process of address list may the same contact person of repeated storage different information.In order to reduce repeated storage and the backup of associated person information, terminal can merge the associated person information that Back ground Information is identical.Therefore, step 301 can also comprise that step 301d is to step 301g:
In associated person information in 301d, terminal judges address list, whether comprise Back ground Information, Back ground Information comprises contact person's name and telephone number.
Wherein, the associated person information in address list can comprise: name of contact person, telephone number, home address, home address address, No. QQ etc.
It should be noted that, in step 301d, terminal judges that the associated person information in address list is through the associated person information in the address list after execution step 301a-301c.
If comprise Back ground Information in the associated person information in 301e address list, terminal is calculated the checksum value of the non-NULL field of Back ground Information.
Wherein, in the part associated person information in address list, may not comprise Back ground Information, for example, in the address list of some mailboxes, may only comprise contact person's email address, not other information of storing contact.Associated person information the present embodiment in this type of address list is not done to correlation computations and merging.
301f, terminal are obtained the number of the 3rd checksum value in the checksum value of non-NULL field of Back ground Information.
If comprise at least two the 3rd checksum values in the checksum value of the non-NULL field of 301g Back ground Information, terminal merges associated person information corresponding to the 3rd checksum value.
Exemplary, user use in the process of address list may the same contact person of repeated storage different information, for example, in address list, may store three parts of information of contact person A: name+telephone number+home address address of contact person A, contact person A name+telephone number+No. QQ, name+telephone number+home address address+email address of contact person A.The checksum value of the non-NULL field of the Back ground Information of contact person A is checksum value A.Terminal calculates in the checksum value of non-NULL field of Back ground Information and comprises three checksum value A.
Wherein, it can be specifically associated person information corresponding to terminal statistics the 3rd checksum value that terminal merges associated person information corresponding to the 3rd checksum value, generate a new associated person information according to statistics, with associated person information corresponding to this new associated person information replacement the 3rd checksum value, this new associated person information comprises the Back ground Information of the associated person information that some the 3rd check values are corresponding, and the non-Back ground Information of associated person information corresponding to the 3rd all check values.As above shown in example, terminal can be added up the information of contact person A, statistical result showed: the information of contact person A comprises name, telephone number, home address address, No. QQ and the email address of contact person A; Terminal generates the fresh information of a contact person A according to this result, be specially: address+No. QQ+email address of name+telephone number+home address of contact person A; Other information of terminal deletion contact person A, the fresh information of storing contact A.
302, terminal is obtained the checksum value of the non-NULL field of the associated person information after renewal.
Wherein, terminal is obtained the checksum value of the non-NULL field of the associated person information after renewal and can is specifically: the checksum value of the non-NULL field of the associated person information (newly-increased, amendment) changing in the record of terminal computer communication and terminal read the checksum value of the non-NULL field of the associated person information not changing that in the step 301a prestoring, terminal calculates.
It should be noted that, terminal is after the checksum value of the non-NULL field of the associated person information by the record of checksum algorithm computer communication, can store this checksum value, until associated person information corresponding to this checksum value is modified or deletes, terminal just can be deleted this checksum value.
303, terminal sends the first backup messages to cloud server, in the first backup messages, comprise the mark of address list and upgrade after the checksum value of non-NULL field of associated person information.
304, cloud server calculates the checksum value of the non-NULL field of the associated person information prestoring by checksum algorithm.
305, cloud server is according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched renewal of address list and the associated person information that prestores, thereby obtains the first checksum value.
Wherein, the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information prestoring in the checksum value of non-NULL field of the associated person information after upgrading.
306, cloud server generates backup acknowledge message according to the first checksum value, in backup acknowledge message, comprises the first checksum value and/or associated person information corresponding to the first checksum value.
Wherein, in backup acknowledge message, comprise the first checksum value, or comprise the associated person information that the first checksum value is corresponding in backup acknowledge message, or comprise the first checksum value and associated person information corresponding to the first checksum value in backup acknowledge message.
It should be noted that, when in the checksum value (being called checksum value queue) that cloud server obtains according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched renewal of address list and the associated person information that cloud server prestores, both comprised the checksum value of the non-NULL field of the associated person information being contained in after renewal, but be not contained in the checksum value of the non-NULL field of the associated person information that cloud server prestores, comprise again the checksum value of the non-NULL field that is contained in the associated person information that cloud server prestores, but while not being contained in the checksum value of non-NULL field of the associated person information after renewal, cloud server can be by the checksum value of the non-NULL field that is contained in the associated person information after renewal in this checksum value queue, but the checksum value that is not contained in the checksum value of the non-NULL field of the associated person information that cloud server prestores is carried in backup acknowledge message, by the checksum value of the non-NULL field that is contained in the associated person information that cloud server prestores in checksum value queue, but associated person information corresponding to checksum value that is not contained in the checksum value of the non-NULL field of the associated person information after renewal is carried in backup acknowledge message.
307, cloud server sends backup and confirms message to terminal.
If comprise the first checksum value in 308 backup acknowledge messages, terminal judges the type of the associated person information that the first checksum value is corresponding.
The type of the associated person information that wherein, the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of address list.
Further alternative, in a kind of application scenarios at the present embodiment, in backup acknowledge message, can also comprise the associated person information that the first checksum value is corresponding, in the time that backup comprises associated person information corresponding to the first checksum value in acknowledge message, terminal can be according to the associated person information in contact person information updating address list corresponding to the first checksum value.Wherein, terminal can comprise according to the concrete grammar of the associated person information in contact person information updating address list corresponding to the first checksum value: terminal is calculated the checksum value of the basic field of the associated person information that the first checksum value is corresponding by checksum algorithm; In associated person information after renewal, search the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value; If terminal finds the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value, merge associated person information corresponding to the first checksum value in the associated person information in address list; If terminal does not find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value, store the associated person information that the first checksum value is corresponding.Wherein, if terminal does not find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value, illustrate that associated person information that this first checksum value is corresponding may back up to for other-end the associated person information of cloud server.
309, terminal generates the second backup messages according to the type of associated person information corresponding to the first checksum value.
Wherein, in the time that associated person information corresponding to the first checksum value is the associated person information of newly-increased associated person information or amendment, in the second backup messages, comprise the associated person information that the first checksum value is corresponding; And/or,
In the time that associated person information corresponding to the first checksum value is deleted associated person information, in the second backup messages, comprise the identification of contacts that the first checksum value is corresponding.
310, terminal sends the second backup messages to cloud server, wherein, comprises the associated person information that the first checksum value is corresponding in the second backup messages, and/or identification of contacts corresponding to the first checksum value.
311, cloud server receives the second backup messages of self terminal.
312, cloud server upgrades the associated person information prestoring according to the second backup messages.
Wherein, as shown in Figure 5, step 312 specifically can comprise that step 312a is to step 312e:
312a, in the time comprising identification of contacts corresponding to the first checksum value in the second backup messages, cloud server is deleted associated person information corresponding to identification of contacts.
It should be noted that, in the time comprising identification of contacts corresponding to the first checksum value in the second backup messages, can determine that associated person information that this first checksum value is corresponding is by terminal deletion, therefore, cloud server can be deleted associated person information corresponding to identification of contacts.
312b, in the time comprising associated person information corresponding to the first checksum value in the second backup messages, cloud server calculates the checksum value of the basic field of the associated person information that the first checksum value is corresponding by checksum algorithm.
312c, cloud server are searched the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value in the associated person information prestoring.
If 312d cloud server finds the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value, cloud server merges associated person information corresponding to the first checksum value in the associated person information prestoring;
If 312e cloud server does not find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of Back ground Information is corresponding with the first checksum value, cloud server is stored the associated person information that the first checksum value is corresponding.
It should be noted that, the method that the concrete grammar of the associated person information that step 312b prestores to high in the clouds server update in step 312e and step 311a upgrade the associated person information in address list to terminal in step 311d is similar, and the present embodiment repeats no more here.
The method of the address book backup that the embodiment of the present invention provides, terminal is upgraded the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal, then send the first backup messages to cloud server, and reception is from the backup acknowledge message of cloud server, if comprise the first checksum value in backup acknowledge message, generate the second backup messages according to the first checksum value, finally send the second backup messages to cloud server.In prior art, the associated person information upgrading in address book backup by the mode of full word section is compared, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Embodiment 4
The embodiment of the present invention provides a kind of terminal, as shown in Figure 6, comprising: the first updating block 41, the first transmitting element 42, receiving element 43, the second transmitting element 44.
The first updating block 41, for upgrade the associated person information of address list by checksum algorithm, and obtains the checksum value of the non-NULL field of the associated person information after renewal.
The first transmitting element 42, for sending the first backup messages to cloud server, the checksum value of the non-NULL field of the associated person information after mark and the described renewal that comprises described address list in described the first backup messages.
Receiving element 43, for receiving the backup acknowledge message from described cloud server.
The second transmitting element 44, if comprise the first checksum value for described backup acknowledge message, generate the second backup messages according to described the first checksum value, and send described the second backup messages to described cloud server, wherein, described the first checksum value is that described cloud server gets according to the mark of described address list, described the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information after described renewal in the checksum value of non-NULL field of the associated person information that prestores of described cloud server, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
Further, as shown in Figure 7, described the first updating block 41, can comprise: the first computing module 411, the first acquisition module 412, reservation module 413.
The first computing module 411, for calculating the checksum value of non-NULL field of described associated person information of described address list by described checksum algorithm.
The first acquisition module 412, for obtaining the number of checksum value the second checksum value of non-NULL field of described associated person information.
Retain module 413, if comprise at least two described the second checksum values for the checksum value of the non-NULL field of described associated person information, only retain an associated person information corresponding to described the second checksum value.
Further, described the first updating block 41, can also comprise: the first judge module 414, the second computing module 415, the second acquisition module 416, the first merging module 417.
The first judge module 414, for judging in the associated person information of described address list whether comprise Back ground Information, described Back ground Information comprises described contact person's name and contact method.
The second computing module 415, if comprise described Back ground Information in the associated person information for described address list, calculates the checksum value of the non-NULL field of described Back ground Information.
The second acquisition module 416, for obtaining the number of the 3rd checksum value of checksum value of non-NULL field of described Back ground Information.
First merges module 417, if comprise at least two the 3rd checksum values for the checksum value of the non-NULL field of described Back ground Information, merges associated person information corresponding to described the 3rd checksum value.
Further, described the second transmitting element 44, comprising: the second judge module 441, generation module 442.
The second judge module 441, for judging the type of the associated person information that described the first checksum value is corresponding, the type of the associated person information that described the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of described address list.
Generation module 442, generates described the second backup messages for the type that judges the associated person information that described the first checksum value of obtaining is corresponding according to described the first judge module 441.
Further, in the time that associated person information corresponding to described the first checksum value is the associated person information of described newly-increased associated person information or described amendment, in described the second backup messages, comprise associated person information corresponding to described the first checksum value; And/or, in the time that associated person information corresponding to described the first checksum value is described deleted associated person information, in described the second backup messages, comprise identification of contacts corresponding to described the first checksum value.
It should be noted that, the corresponding content of the specific descriptions of part functional module in can reference method embodiment in the terminal that the embodiment of the present invention provides, the present embodiment is no longer described in detail here.
The terminal of the address book backup that the embodiment of the present invention provides, upgrade the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal, then send the first backup messages to cloud server, and reception is from the backup acknowledge message of cloud server, if comprise the first checksum value in backup acknowledge message, generate the second backup messages according to the first checksum value, finally send the second backup messages to described cloud server.In prior art, the associated person information upgrading in address book backup by the mode of full word section is compared, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Embodiment 5
The embodiment of the present invention provides a kind of cloud server, as shown in Figure 8, comprising: the first receiving element 51, matching unit 52, transmitting element 53, the second receiving element 54.
The first receiving element 51, for receiving the first backup messages of self terminal, the checksum value of the non-NULL field of the associated person information after the mark that comprises address list in described the first backup messages and renewal.
Matching unit 52, for the checksum value with the non-NULL field of the associated person information prestoring according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list, thereby obtain the first checksum value, described the first checksum value be in the checksum value of non-NULL field of the associated person information after described renewal with described in the not identical checksum value of the checksum value of non-NULL field of the associated person information that prestores.
Transmitting element 53, for generating backup acknowledge message according to described the first checksum value, and send described backup and confirm message to described terminal, in described backup acknowledge message, comprise described the first checksum value and/or associated person information corresponding to described the first checksum value.
The second receiving element 54, for in the time that described backup acknowledge message comprises described the first checksum value, receive the second backup messages from described terminal, and the associated person information prestoring described in upgrading according to described the second backup messages, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
Further, as shown in Figure 9, described cloud server, can also comprise: computing unit 55.
Computing unit 55, for at described matching unit 52 according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list and the associated person information that prestores, thereby before obtaining the first checksum value, the checksum value of the non-NULL field of the associated person information prestoring described in calculating by checksum algorithm.
Further, as shown in figure 10, described the second receiving element 54, comprising: removing module 541, computing module 542, search module 543, merge module 544, memory module 545.
Removing module 541, when comprise identification of contacts corresponding to described the first checksum value when described the second backup messages, deletes associated person information corresponding to described identification of contacts; And/or,
Computing module 542, when comprise associated person information corresponding to described the first checksum value when described the second backup messages, calculates the checksum value of the basic field of the associated person information that described the first checksum value is corresponding by described checksum algorithm.
Search module 543, for search the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value at the described associated person information prestoring.
Merge module 544, if for finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, associated person information corresponding to the first checksum value described in the associated person information prestoring described in merging.
Memory module 545, if for not finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, store associated person information corresponding to described the first checksum value.
It should be noted that, the corresponding content of the specific descriptions of part functional module in can reference method embodiment in the cloud server that the embodiment of the present invention provides, the present embodiment is no longer described in detail here.
The cloud server of the address book backup that the embodiment of the present invention provides, receive the first backup messages of self terminal, checksum value according to the checksum value of the non-NULL field of the associated person information after the marking matched renewal of the address list in the first backup messages with the non-NULL field of the associated person information prestoring, thereby obtain the first checksum value, generate backup acknowledge message according to the first checksum value, and transmission backup confirms message to terminal, in the time comprising the first checksum value in backup acknowledge message, receive the second backup messages of self terminal, and upgrade the associated person information prestoring according to the second backup messages.In prior art, the associated person information upgrading in address book backup by the mode of full word section is compared, can calculate by checksum algorithm the checksum value of the non-NULL field of associated person information, and upgrade address list according to the checksum value of the non-NULL field of associated person information, then carry out backup updating or recovery, thereby can reduce the backup that repeats of associated person information, improve address book backup efficiency.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. a method for address book backup, is characterized in that, comprising:
Upgrade the associated person information in address list by checksum algorithm, and obtain the checksum value of the non-NULL field of the associated person information after renewal;
Send the first backup messages to cloud server, the checksum value of the non-NULL field of the associated person information after mark and the described renewal that comprises described address list in described the first backup messages;
Receive the backup acknowledge message from described cloud server;
If comprise the first checksum value in described backup acknowledge message, generate the second backup messages according to described the first checksum value, and send described the second backup messages to described cloud server, wherein, described the first checksum value is that described cloud server gets according to the mark of described address list, described the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information after described renewal in the checksum value of non-NULL field of the associated person information that prestores of described cloud server, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
2. the method for address book backup according to claim 1, is characterized in that, describedly upgrades the associated person information in address list by checksum algorithm, specifically comprises:
Calculate the checksum value of the non-NULL field of the described associated person information in described address list by described checksum algorithm;
Obtain the number of the second checksum value in the checksum value of non-NULL field of described associated person information;
If comprise at least two described the second checksum values in the checksum value of the non-NULL field of described associated person information, only retain an associated person information corresponding to described the second checksum value.
3. the method for address book backup according to claim 2, is characterized in that, after associated person information corresponding to described the second checksum value of described renewal, described method also comprises:
Judge in the associated person information in described address list whether comprise Back ground Information, described Back ground Information comprises described contact person's name and contact method;
If comprise described Back ground Information in the associated person information in described address list, calculate the checksum value of the non-NULL field of described Back ground Information;
Obtain the number of the 3rd checksum value in the checksum value of non-NULL field of described Back ground Information;
If comprise at least two the 3rd checksum values in the checksum value of the non-NULL field of described Back ground Information, merge associated person information corresponding to described the 3rd checksum value.
4. the method for address book backup according to claim 1, is characterized in that, describedly generates the second backup messages according to described the first checksum value, comprising:
Judge the type of the associated person information that described the first checksum value is corresponding, the type of the associated person information that described the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of described address list;
Generate described the second backup messages according to the type of associated person information corresponding to described the first checksum value.
5. the method for address list according to claim 4, is characterized in that,
In the time that associated person information corresponding to described the first checksum value is the associated person information of described newly-increased associated person information or described amendment, in described the second backup messages, comprise associated person information corresponding to described the first checksum value; And/or,
In the time that associated person information corresponding to described the first checksum value is described deleted associated person information, in described the second backup messages, comprise identification of contacts corresponding to described the first checksum value.
6. a method for address book backup, is characterized in that, comprising:
Receive the first backup messages of self terminal, the checksum value of the non-NULL field of the associated person information after the mark that comprises address list in described the first backup messages and renewal;
Checksum value according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list with the non-NULL field of the associated person information prestoring, thereby obtain the first checksum value, described the first checksum value be in the checksum value of non-NULL field of the associated person information after described renewal with described in the not identical checksum value of the checksum value of non-NULL field of the associated person information that prestores;
Generate backup acknowledge message according to described the first checksum value, and send described backup and confirm message to described terminal, in described backup acknowledge message, comprise described the first checksum value and/or associated person information corresponding to described the first checksum value;
In the time comprising described the first checksum value in described backup acknowledge message, receive the second backup messages from described terminal, and the associated person information prestoring described in upgrading according to described the second backup messages, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
7. the method for address book backup according to claim 6, it is characterized in that, at the checksum value with the non-NULL field of the associated person information prestoring according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list, thereby before obtaining the first checksum value, described method also comprises:
The checksum value of the non-NULL field of the associated person information prestoring described in calculating by checksum algorithm.
8. the method for address book backup according to claim 6, is characterized in that, described according to the associated person information prestoring described in described the second backup messages renewal, comprising:
In the time comprising identification of contacts corresponding to described the first checksum value in described the second backup messages, delete associated person information corresponding to described identification of contacts; And/or,
In the time comprising associated person information corresponding to described the first checksum value in described the second backup messages, calculate the checksum value of the basic field of the associated person information that described the first checksum value is corresponding by described checksum algorithm;
In the described associated person information prestoring, search the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value;
If find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, associated person information corresponding to the first checksum value described in the associated person information prestoring described in merging;
If do not find the identical associated person information of checksum value of the Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, store associated person information corresponding to described the first checksum value.
9. a terminal, is characterized in that, comprising:
The first updating block, for upgrade the associated person information of address list by checksum algorithm, and obtains the checksum value of the non-NULL field of the associated person information after renewal;
The first transmitting element, for sending the first backup messages to cloud server, the checksum value of the non-NULL field of the associated person information after mark and the described renewal that comprises described address list in described the first backup messages;
Receiving element, for receiving the backup acknowledge message from described cloud server;
The second transmitting element, if comprise the first checksum value for described backup acknowledge message, generate the second backup messages according to described the first checksum value, and send described the second backup messages to described cloud server, wherein, described the first checksum value is that described cloud server gets according to the mark of described address list, described the first checksum value is checksum value not identical with the checksum value of the non-NULL field of the associated person information after described renewal in the checksum value of non-NULL field of the associated person information that prestores of described cloud server, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
10. terminal according to claim 9, is characterized in that, described the first updating block, comprising:
The first computing module, for calculating the checksum value of non-NULL field of described associated person information of described address list by described checksum algorithm;
The first acquisition module, for obtaining the number of checksum value the second checksum value of non-NULL field of described associated person information;
Retain module, if comprise at least two described the second checksum values for the checksum value of the non-NULL field of described associated person information, only retain an associated person information corresponding to described the second checksum value.
11. terminals according to claim 10, is characterized in that, described the first updating block, also comprises:
The first judge module, for judging in the associated person information of described address list whether comprise Back ground Information, described Back ground Information comprises described contact person's name and contact method;
The second computing module, if comprise described Back ground Information in the associated person information for described address list, calculates the checksum value of the non-NULL field of described Back ground Information;
The second acquisition module, for obtaining the number of the 3rd checksum value of checksum value of non-NULL field of described Back ground Information;
First merges module, if comprise at least two the 3rd checksum values for the checksum value of the non-NULL field of described Back ground Information, merges associated person information corresponding to described the 3rd checksum value.
12. terminals according to claim 9, is characterized in that, described the second transmitting element, comprising:
The second judge module, for judging the type of the associated person information that described the first checksum value is corresponding, the type of the associated person information that described the first checksum value is corresponding comprises: newly-increased associated person information, the associated person information of amendment, deleted associated person information and be not contained in the associated person information of described address list;
Generation module, for generating described the second backup messages according to the type of associated person information corresponding to described the first checksum value.
13. terminals according to claim 12, is characterized in that,
In the time that associated person information corresponding to described the first checksum value is the associated person information of described newly-increased associated person information or described amendment, in described the second backup messages, comprise associated person information corresponding to described the first checksum value; And/or,
In the time that associated person information corresponding to described the first checksum value is described deleted associated person information, in described the second backup messages, comprise identification of contacts corresponding to described the first checksum value.
14. 1 kinds of cloud servers, is characterized in that, comprising:
The first receiving element, for receiving the first backup messages of self terminal, the checksum value of the non-NULL field of the associated person information after the mark that comprises address list in described the first backup messages and renewal;
Matching unit, for the checksum value with the non-NULL field of the associated person information prestoring according to the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list, thereby obtain the first checksum value, described the first checksum value be in the checksum value of non-NULL field of the associated person information after described renewal with described in the not identical checksum value of the checksum value of non-NULL field of the associated person information that prestores;
Transmitting element, for generating backup acknowledge message according to described the first checksum value, and send described backup and confirm message to described terminal, in described backup acknowledge message, comprise described the first checksum value and/or associated person information corresponding to described the first checksum value;
The second receiving element, for in the time that described backup acknowledge message comprises described the first checksum value, receive the second backup messages from described terminal, and the associated person information prestoring described in upgrading according to described the second backup messages, in described the second backup messages, comprise associated person information corresponding to described the first checksum value, and/or identification of contacts corresponding to described the first checksum value.
15. cloud servers according to claim 14, is characterized in that, also comprise:
Computing unit, for at described matching unit according to the checksum value of the non-NULL field of the checksum value of the non-NULL field of the associated person information after the marking matched described renewal of described address list and the associated person information that prestores, thereby before obtaining the first checksum value, the checksum value of the non-NULL field of the associated person information prestoring described in calculating by checksum algorithm.
16. cloud servers according to claim 14, is characterized in that, described the second receiving element, comprising:
Removing module, when comprise identification of contacts corresponding to described the first checksum value when described the second backup messages, deletes associated person information corresponding to described identification of contacts; And/or,
Computing module, when comprise associated person information corresponding to described the first checksum value when described the second backup messages, calculates the checksum value of the basic field of the associated person information that described the first checksum value is corresponding by described checksum algorithm;
Search module, for search the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value at the described associated person information prestoring;
Merge module, if for finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, associated person information corresponding to the first checksum value described in the associated person information prestoring described in merging;
Memory module, if for not finding the identical associated person information of checksum value of Back ground Information of the associated person information that the checksum value of described Back ground Information is corresponding with described the first checksum value, store associated person information corresponding to described the first checksum value.
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 true CN103873496A (en) 2014-06-18
CN103873496B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763708A (en) * 2014-12-19 2016-07-13 北京奇虎科技有限公司 Processing method of contact list information in mobile communication terminal and mobile communication terminal
CN105988890A (en) * 2015-01-29 2016-10-05 阿里巴巴集团控股有限公司 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

Cited By (3)

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

Also Published As

Publication number Publication date
CN103873496B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN109491968B (en) File processing method, device, equipment and computer readable storage medium
CN103037312B (en) Information push method and device
CN111489256B (en) Cross-chain processing method, device and system for multi-chain block chain system
CN102282541B (en) Mobile specialized software code update
CN104113466A (en) Harassing phone call identification method, client, server and system
US20110060800A1 (en) Method of guaranteeing the deliverability of emails and other messages
CN104349288A (en) Message transmission method and device
CN104917586A (en) Verification method, device and system of transmitted data
CN102231881B (en) Method, server and system for processing user data of mobile terminal
CN105468302A (en) Data processing method, apparatus and system
CN103327013A (en) Contact person information sharing method and equipment based on sharing permission level
CN104244206A (en) Method, device and terminal device for processing short message
CN105574948A (en) Checking-in method and equipment
CN114064668A (en) Method, electronic device and computer program product for storage management
CN103581846A (en) User business card updating method and system
CN109560953A (en) Method, the terminal and server of connection profile Content Management Platform
CN103259818A (en) Distributed data access system and distributed data access method
CN103873496A (en) Method and device for contact-list backup
CN105450513A (en) Method for filing mail attachments, and cloud storage server
CN104933059A (en) File reputation acquisition method, gateway equipment and file reputation server
KR20120018965A (en) System and method for providing file backup, restore and delete data perfectly service for mobile terminal and portable computing apparatus device
CN104394258A (en) Method and device for processing contact change of communication object
CN113824755A (en) Method, system and related device for processing block chain data
CN105827739A (en) Contact person information synchronization method, device, server and system
CN115827778A (en) Data acquisition method and device, electronic equipment and storage medium

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