CN101848274A - Methods and devices for backup and recovery of records in mobile terminal - Google Patents

Methods and devices for backup and recovery of records in mobile terminal Download PDF

Info

Publication number
CN101848274A
CN101848274A CN201010134132.5A CN201010134132A CN101848274A CN 101848274 A CN101848274 A CN 101848274A CN 201010134132 A CN201010134132 A CN 201010134132A CN 101848274 A CN101848274 A CN 101848274A
Authority
CN
China
Prior art keywords
record
record set
backup
collection
sign
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.)
Pending
Application number
CN201010134132.5A
Other languages
Chinese (zh)
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201010134132.5A priority Critical patent/CN101848274A/en
Publication of CN101848274A publication Critical patent/CN101848274A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and a device for backing records up in a mobile terminal. The method comprises the following steps of: according to a received record backup instruction, comparing the records in a to-be-backed-up record set of the mobile terminal with those in a backup record set one by one; judging whether the records are the same according to record comparison identifiers; and if the records identical with those in the to-be-backed-up record set exist in the backup record set, backing up the records in the record set with relatively higher priority according to preset record priorities, and performing the backup on the records, different from those in the backup record set, in the to-be-backed-up record set. The invention also provides the method and the device for recovering the records in the mobile terminal. Through the methods and the devices of the invention, repeated records can be merged and processed, the different records can be backed up or recovered, and the identical records in the record set with the relatively higher priority are backed up or recovered, so the utilization rate of a memory space and record backup efficiency are improved and the integrity of the recovered records is improved.

Description

The method and apparatus of records in mobile terminal backup, and the method and apparatus that recovers
Technical field
The present invention relates to record backup and recovery technology, particularly a kind of method and apparatus of records in mobile terminal backup, and the method and apparatus that recovers.
Background technology
Improve constantly along with portable terminal is intelligentized, the system of portable terminal and the configuration of application software become increasingly complex, storage user data is more and more in the portable terminal, above-mentioned data are most important to mobile terminal user, and the user is day by day strong to the demand of the data backup of portable terminal and recovery.The mobile terminal user data comprise phone data, image data, video data, voice data, note data or the like, the data of above-mentioned various forms all are to store in the mode of record on portable terminal, every record all includes the identification information of content, modification time and this record of this record, and above-mentioned information generates in the recording process at portable terminal and is included in this record.Existing portable terminal all only is that the record of this portable terminal is kept in, because the memory space of portable terminal is very limited, when a large amount of records are temporarily stored in portable terminal, may influence the speed of service of portable terminal, and the fault of misoperation of users or portable terminal, may cause the temporary record of portable terminal to be lost, bring certain loss to the user.In the existing mobile terminal records backup method, the record that portable terminal need back up the user is stored in the medium that is used to back up, and the medium that is used to back up can be the storage card that is installed in portable terminal or is installed in other storage mediums of portable terminal; Because may there be the record of repetition in the record that each user need back up, this may cause taking a large amount of memory spaces, causes the waste of memory space, influences the efficient of mobile terminal records backup; Because the duplicate record that may exist in the above-mentioned backup procedure takies a large amount of memory spaces, the record that also may cause the user to back up can't be stored.
When user misoperation or mobile terminal fault cause loss of data, can be stored in for the backup record collection on the medium of backup and replace the temporary record of portable terminal; Adopt existing portable terminal restoration methods, the important record of in the record of keeping on the portable terminal some may be deleted, and some duplicate record that backup record is concentrated is stored on the portable terminal, this may exist important record to lose storage with repeating data, the record that portable terminal recovers is imperfect, and there is the problem that repeats in the record that recovers.
In sum, there is the low and lower problem of memory space utilization rate of record backup efficient in existing mobile terminal records backup method, and existing mobile terminal records restoration methods exists the record that recovers record imperfect, that recover to have the problem that repeats.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method of records in mobile terminal backup, this method can improve utilization rate and the record backup efficient of memory space.
The method that the object of the present invention is to provide a kind of records in mobile terminal to recover, this method can improve the integrality of recovery record, makes the record of recovery not have repetition.
The object of the present invention is to provide the device of record backup in a kind of portable terminal, this device can improve operating factor of memory space and record backup efficient.
The object of the present invention is to provide the device that record recovers in a kind of portable terminal, this device can improve the integrality of recovery record, makes the record of recovery not have repetition.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of records in mobile terminal backup, this method comprises:
A, receiving record backup instruction arrange according to the user, and selecting the higher record set of priority from backup record collection and record set to be backed up is first record set, and another is second record set; Described record set comprises many records, and each record comprises the sign of this record;
B, judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different from the sign of first record set as the first duplicated record collection;
C, replace the backup record collection with the first duplicated record collection.
Preferably, described each record also comprises the modification time of this record, further comprises before the step B: arrange and adopt very first time principle;
Described very first time principle has higher priority for the modification time of record apart from the nearer record of backup time;
After there is the identical record of sign in the described judgement of step B, the record that first record set is different with the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the first duplicated record collection.
Preferably, further comprise before the steps A: be provided with that the priority of duplicated record collection is higher than record set to be backed up, the priority that record set to be backed up perhaps is set is higher than duplicated record collection.
In the said method, the numeral that is designated this recording feature of expression that rise time and random number by the sequence number of portable terminal, record generate of described record.
The method that a kind of records in mobile terminal recovers, this method comprises:
A, receiving record recover instruction, arrange according to the user, and selecting the higher record set of priority from backup record collection and the temporary record set of portable terminal is the 3rd record set, and another is the 4th record set; Described record set comprises many records, and each record comprises the sign of this record;
B, judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the 3rd record centralised identity as the recovery record collection;
C, replace the temporary record set of portable terminal with the recovery record collection.
Preferably, described each record also comprises the modification time of this record, further comprises before the step B: arrange and adopt second time principle;
Described second time principle has higher priority for the modification time of record apart from recovering nearer record of the moment;
After there is the identical record of sign in the described judgement of step B, the record that the 3rd record set is different with the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection.
Preferably, further comprise before the steps A: be provided with that the priority of duplicated record collection is higher than the temporary record set of portable terminal, the priority that the temporary record set of portable terminal perhaps is set is higher than duplicated record collection.
In the said method, the numeral that is designated this recording feature of expression that rise time and random number by the sequence number of portable terminal, record generate of described record.
The device of record backup in a kind of portable terminal, this device comprises:
Control module, receive the record backup instruction after, the first priority instruction of output backup instruction and setting is to selected cell;
Selected cell according to the backup instruction that receives, reads duplicated record collection from backup units, obtains record set to be backed up from portable terminal; According to first priority instruction that is provided with, selecting the higher record set of priority from duplicated record collection and record set to be backed up is first record set, and another is second record set; Judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different with the sign of first record set as the first duplicated record collection; Export the first duplicated record collection to backup units;
Backup units, deletion backup record collection is stored the first duplicated record collection;
Described record set comprises many records, and each record comprises the sign of this record.
Preferably, described control module is further according to the very first time principle that arranges, and output very first time control instruction is to selected cell; Described each record also comprises the modification time of this record;
Described very first time principle has higher priority for the modification time of record apart from the nearer record of backup time; The instruction that described very first time control command has higher priority for the nearer record of sign equivalent modifications time gap backup time;
After described selected cell judges that there are the identical record of sign in first record set and second record set, according to the very first time control instruction that receives, with first record set and the different record of the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the recovery record collection.
In the said apparatus, the first priority instruction of described setting is the instruction that the priority of backup record collection is higher than record set to be backed up; Perhaps be higher than the instruction of backup record collection for the priority of record set to be backed up.
The device that record recovers in a kind of portable terminal, this device comprises:
Control module, after receiving record recovered instruction, output recovered the second priority instruction of instruction and setting to selected cell;
Selected cell according to the recovery instruction that receives, reads the backup record collection from backup units, from the temporary record set of acquisition for mobile terminal portable terminal; According to the second priority instruction, selecting the higher record set of priority from backup record collection and the temporary record set of portable terminal is the 3rd record set, and another is the 4th record set; Judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection; Output recovery record collection is replaced the temporary record set of portable terminal to portable terminal;
Described record set comprises many records, and each record comprises the sign of this record.
Preferably, described control module further according to second time principle that arranges, is exported the second time control instruction to selected cell; Described each record also comprises the modification time of this record;
Described second time principle has higher priority for the modification time of record apart from recovering nearer record of the moment; The described second time control instruction is recovered the instruction that nearer record of the moment has higher priority for sign equivalent modifications time gap;
After described selected cell judges that there are the identical record of sign in the 3rd record set and the 4th record set, according to the second time control instruction that receives, with the 3rd record set and the different record of the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection.
In the said apparatus, the second priority instruction of described setting is the instruction that the priority of backup record collection is higher than the temporary record set of portable terminal; Perhaps be higher than the instruction of backup record collection for the priority of the temporary record set of portable terminal.
As seen from the above technical solutions, the method and apparatus of record backup in the portable terminal provided by the invention, according to the record backup instruction that receives, the record that record in the portable terminal record set to be backed up and duplicated record are concentrated compares one by one, determine whether to be identical record by the sign that relatively writes down, if duplicated record is concentrated and is had the record identical with record set to be backed up, then according to default record priority, record in the higher record set of priority is backed up, records different with duplicated record collection in the record set to be backed up is backed up.The method and apparatus that records in mobile terminal provided by the invention recovers, recover instruction according to the record that receives, the record that record in the temporary record set of portable terminal and backup record is concentrated compares one by one, determine whether to be identical record by the sign that relatively records, if concentrating, backup record has the record identical with the temporary record set of portable terminal, then according to default record priority, record in the higher record set of priority is recovered, concentrate the record different from the temporary record set of portable terminal to recover backup record.Adopt method disclosed by the invention and device, can handle existing the record that repeats to carry out merger, the record that back up or restore is different, then select the higher record set of priority to carry out back up or restore for identical record, operating factor of memory space and record backup efficient have been improved, improve the integrality of recovery record, make the record that recovers not have repetition.
Description of drawings
Fig. 1 is the method for records in mobile terminal backup of the present invention.
The method that Fig. 2 recovers for records in mobile terminal of the present invention.
Fig. 3 is the device of records in mobile terminal backup of the present invention.
The device that Fig. 4 recovers for records in mobile terminal of the present invention.
Embodiment
For make purpose of the present invention, technical scheme, and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The invention provides a kind of method of records in mobile terminal backup, this method comprises: A, receiving record backup instruction, the higher record set of selection priority is first record set from backup record collection and record set to be backed up according to arranging, and another is second record set; Described record set comprises many records, and each record comprises the sign of this record; B, judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different from the sign of first record set as the first duplicated record collection; C, replace the backup record collection with the first duplicated record collection.
The invention provides the method that a kind of records in mobile terminal recovers, this method comprises: A, receiving record recover instruction, the higher record set of selection priority is the 3rd record set from backup record collection and the temporary record set of portable terminal according to arranging, and another is the 4th record set; Described record set comprises many records, and each record comprises the sign of this record; B, judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection; C, replace the temporary record set of portable terminal with the recovery record collection.
The invention provides the device of a kind of records in mobile terminal backup, this device comprises: control module, receive the record backup instruction after, output backup instruction and the first priority instruction are to selected cell; Selected cell reads the backup record collection from backup units, from acquisition for mobile terminal record set to be backed up according to the backup instruction that receives; According to the first priority instruction that arranges, selecting the higher record set of priority from backup record collection and record set to be backed up is first record set, and another is second record set; Judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different from the first record centralised identity as the first duplicated record collection; Export the first duplicated record collection to backup units; Backup units, deletion backup record collection is stored the first duplicated record collection; Described record set comprises many records, and each record comprises the sign of this record.
The invention provides the device that a kind of records in mobile terminal recovers, this device comprises: control module, and after receiving record recovered instruction, output recovered the second priority instruction of instruction and setting to selected cell; Selected cell according to the recovery instruction that receives, reads the backup record collection from backup units, from the temporary record set of acquisition for mobile terminal portable terminal; According to the second priority instruction, selecting the higher record set of priority from backup record collection and the temporary record set of portable terminal is the 3rd record set, and another is the 4th record set; Judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection; Output recovery record collection is replaced the temporary record set of portable terminal to portable terminal; Described record set comprises many records, and each record comprises the sign of this record.
Record set on the portable terminal of the present invention comprises many records, be specifically as follows contents such as phone directory in the portable terminal, schedule, short message, multimedia document, the unique identification that every record concentrating for user record all has its feature of expression, such as: the unique identification that each multimedia recording of every note record, multimedia document etc. all has its feature of expression in every schedule record, the short message in every telephony recording in the phone directory, the schedule.Portable terminal is when generating every record, portable terminal generates the sign of this recording feature of expression by the sequence number of this portable terminal, the time that generates record and random number, and this sign is included in this record, above-mentioned sign is generally one 128 numeral; Every record is all inequality in the portable terminal, can distinguish different records by the sign of every record.The method that portable terminal generates record is the content of prior art, does not repeat them here.After portable terminal generates a record, the rise time of this record is changeless, but may repeatedly revise this record, and each modification time can be contained in this record with sign, foregoing belongs to the content of prior art, does not repeat them here.
Fig. 1 is the method flow diagram of mobile terminal records backup of the present invention.Now in conjunction with Fig. 1, the method that mobile terminal records of the present invention is backed up describes, and is specific as follows:
Step 101: receiving record backup instruction;
Portable terminal can receive the record backup instruction of User input, afterwards executive logging backup; Perhaps the default record backup time of portable terminal internal condition produces the record backup instruction, after portable terminal receives the inner record backup instruction that produces, and the executive logging backup.
Step 102: the higher record set of selection priority is first record set from backup record collection and record set to be backed up according to arranging, and another is second record set;
The set of not storing many records in the backup medium into temporary in the portable terminal is record set to be backed up, and the set of many records of storing in the backup medium of portable terminal is the backup record collection.Every record that record set to be backed up or backup record are concentrated all includes the sign that represents its feature.In embodiments of the present invention, backup medium can adopt existing storage medium for being used for the storage medium of backup mobile terminal records.
The first priority instruction was set before this step, and the first priority instruction is the instruction that the priority of backup record collection is higher than the priority of record set to be backed up, perhaps is higher than the instruction of the priority of backup record collection for the priority of record set to be backed up.Portable terminal is selected the higher record set of priority according to the first priority instruction that arranges from backup record collection and record set to be backed up be first record set, and the record set that then priority is lower is second record set.The higher record set of priority can be the higher record set of importance, just the set of many more important records that need store of user.The first priority instruction of above-mentioned setting can be user's setting.
Step 103: judge whether there is the identical record of sign in first record set and second record set, if, execution in step 105, otherwise execution in step 104;
First record set and second record set are compared one by one, judge whether there is the identical record of sign in first record set and second record set, if, execution in step 105; Otherwise, represent that the record that first record set and second record set comprise is inequality, execution in step 104.
Judge and whether have the identical record of sign in first record set and second record set, whether the sign of the record in the sign of just judging the record in first record set and second record set is identical, has identical record if having identical sign then represent in first record set and second record set.
Step 104: as the first duplicated record collection, execution in step 108 afterwards with first record set and second record set;
All that comprise in first record set and second record set are recorded as the first duplicated record collection, and execution in step 108 afterwards.
Step 105: judge whether to adopt very first time principle, if, execution in step 106, otherwise execution in step 107;
Can in portable terminal, arrange in advance and adopt very first time principle; Very first time principle has higher priority for the modification time of record apart from the nearer record of backup time.Portable terminal judges whether to adopt very first time principle, if, execution in step 106, otherwise execution in step 107.
Step 106: with first record set and the different record of the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the first duplicated record collection, execution in step 108 afterwards;
Owing to adopted very first time principle, therefore, the records that first record set is different with the second record centralised identity are as the first duplicated record collection; Sensible with the different record of modification time with the acceptance of the bid of second record set for first record set, the modification time of first record set and the sensible record together of second record set acceptance of the bid is compared the record of selecting modification time to concentrate as first duplicated record apart from the nearer record of backup time.
Step 107: with first record set, and second record set in the record different from the sign of first record set as the first duplicated record collection, execution in step 108 afterwards;
Because not adopt very first time principle, first record set be the higher record set of priority, therefore, with first record set, and second record set in the record different from the first record centralised identity as the first duplicated record collection.Second record set comprises the record with the sign equivalent modifications asynchronism(-nization) of first record set, but owing to do not adopt time principle, and take first record set as priority higher record set, then not to backing up with the record of the sign equivalent modifications asynchronism(-nization) of first record set in second record set.
Step 108: replace the backup record collection with the first duplicated record collection, execution in step 109 afterwards;
Portable terminal backs up to backup medium with the first duplicated record collection, just with the backup record collection in the first duplicated record collection replacement backup medium.
Step 109: finish.
Because user misoperation or mobile terminal system go wrong, may cause and keep in losing of record set in the portable terminal, at this moment need the record of portable terminal is recovered, the backup record collection that the record backup method that adopts Fig. 1 can be obtained returns in the portable terminal.The method flow diagram that Fig. 2 recovers for mobile terminal records of the present invention.Now in conjunction with Fig. 2, the method that mobile terminal records of the present invention is recovered describes, and is specific as follows:
Step 201: receiving record recovers instruction;
The record that portable terminal receives User input recovers instruction, afterwards executive logging recovery process.
Step 202: the higher record set of selection priority is the 3rd record set from backup record collection and the temporary record set of portable terminal according to arranging, and another is the 4th record set;
The duplicated record collection is the set that is stored in many records in the backup medium; The temporary record set of portable terminal is the set of many records that back up temporary on the portable terminal.
The instruction of second priority was set before this step, the instruction of second priority is that the priority of duplicated record collection is higher than the instruction that portable terminal is kept in the priority of record set, and perhaps the priority for the temporary record set of portable terminal is higher than the instruction of the priority of duplicated record collection.Portable terminal is selected the higher record set of priority according to the second priority instruction that arranges from backup record collection and the temporary record set of portable terminal be the 3rd record set, and the record set that then priority is lower is the 4th record set.The second priority instruction of above-mentioned setting can be user's setting.
Step 203: judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if, execution in step 205, otherwise execution in step 204;
The 3rd record set and the 4th record set are compared one by one, judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if, execution in step 205, otherwise, represent that the record that the 3rd record set and the 4th record set comprise is inequality, execution in step 204.
Judge and whether have the identical record of sign in the 3rd record set and the 4th record set, whether the sign of the record in the sign of just judging the record in the 3rd record set and the 4th record set is identical, has identical record if having identical sign then represent in the 3rd record set and the 4th record set.
Step 204: as the recovery record collection, execution in step 208 afterwards with the 3rd record set and the 4th record set;
All that comprise in the 3rd record set and the 4th record set are recorded as the recovery record collection, and execution in step 208 afterwards.
Step 205: judge whether to adopt second time principle, if then execution in step 206, otherwise execution in step 207;
Can be arranged in portable terminal in advance in the record recovery process and adopt second time principle, second time principle is that nearer record has higher priority to the modification time that records apart from recovering constantly.Portable terminal judges whether to adopt second time principle, if, execution in step 206, otherwise execution in step 207.
Step 206: with the 3rd record set and the different record of the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection, execution in step 208 afterwards;
Owing to adopted second time principle, therefore, the records that the 3rd record set is different with the 4th record centralised identity are as the recovery record collection; Sensible with the different record of modification time with the acceptance of the bid of the 4th record set for the 3rd record set, the modification time of the 3rd record set and the sensible record together of the 4th record set acceptance of the bid is compared the record of selecting modification time to concentrate as recovery record apart from the constantly nearer record of recovery.
Step 207: with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection, execution in step 208 afterwards;
Owing to do not adopt second time principle, the 3rd record set is the higher record set of priority, therefore, all records in the 3rd record set as the recovery record collection, will be write down the record that the different record of centralised identity is concentrated as recovery record with the 3rd in the 4th record set.The 4th record set comprises the record with the sign equivalent modifications asynchronism(-nization) of the 3rd record set, but owing to do not adopt time principle, and be the higher record set of priority with the 3rd record set, then not to recovering with the record of the sign equivalent modifications asynchronism(-nization) of the 3rd record set in the 4th record set.
Step 208: replace temporary record set with the recovery record collection, execution in step 209 afterwards;
Portable terminal utilizes the recovery record collection to replace the temporary record set of portable terminal.
Step 209: finish.
Fig. 3 is the device of mobile terminal records backup of the present invention.Dotted line among Fig. 3 represents control instruction, and solid line represents record.Now in conjunction with Fig. 3, the device that mobile terminal records of the present invention is backed up describes, and is specific as follows:
The device that mobile terminal records backup of the present invention recovers comprises: control unit 301, selected cell 302 and backup units 303.
After control module 301 received the record backup instruction, the first priority instruction of output backup instruction and setting was to selected cell 302.First priority instruction that is provided with is higher than the instruction of the priority of record set to be backed up for the priority of duplicated record collection, perhaps is higher than the instruction of the priority of duplicated record collection for the priority of record set to be backed up.The backup record collection is the set that is stored in many records in the backup units 303; The set of many records that record set to be backed up is stored for needs temporary in portable terminal.
If set in advance very first time principle, then control unit 301 also exports very first time control command to selected cell 302; Very first time principle has higher priority for the modification time of record apart from the nearer record of backup time; The instruction that very first time control command has higher priority for the nearer record of sign equivalent modifications time interval backup time.
Selected cell 302 is according to the backup instruction that receives, and reads the duplicated record collection and obtains record set to be backed up from portable terminal from backup units 303; According to first priority instruction that is provided with, selecting the higher record set of priority from duplicated record collection and record set to be backed up is first record set, and then the record set that priority is lower is second record set.Selected cell 302 compares the sign of all records in the sign of all records in first record set and second record set one by one, judge and whether have the identical record of sign in first record set and second record set, if there is no identify identical record, all records of first record set and all of second record set are recorded as the first duplicated record collection; If have the identical record of sign in first record set and second record set and receive the very first time control instruction of control module 301 outputs, the record that first record set is different with the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the first duplicated record collection; Do not receive the very first time control instruction of control module 301 outputs if there is the identical record of sign, with first record set, and second record set in the record different from the sign of first record set as the first duplicated record collection; Export the first duplicated record collection to backup units 303.
Backup units 303 deletion backup record collection, the first duplicated record collection of bank select bit 302 outputs.Backup units 303 can be the storage medium that is installed in portable terminal.
Fig. 4 is the device of mobile terminal records backup of the present invention.Dotted line among Fig. 4 represents control instruction, and solid line represents record.Now in conjunction with Fig. 4, the device that mobile terminal records of the present invention is backed up describes, and is specific as follows:
After control module 401 received record recovery instruction, output recovered the second priority instruction of instruction and setting to selected cell 402.The second priority instruction that arranges is the instruction that the priority of backup record collection is higher than the temporary record set of portable terminal; Perhaps be higher than the instruction of backup record collection for the priority of the temporary record set of portable terminal.The backup record collection is the set that is stored in many records in the backup units 403; The temporary record set of portable terminal is the set of many records that back up of temporary transient storage in portable terminal.
If set in advance second time principle, then control module 401 also exports the second time control instruction to selected cell 402; Second time principle has higher priority for the modification time of record apart from recovering nearer record of the moment; The second time control instruction is recovered the instruction that nearer record of the moment has higher priority for sign equivalent modifications time interval.
Selected cell 402 reads the backup record collection and keeps in record set from acquisition for mobile terminal from backup units 403 according to the recovery instruction that receives; According to the second priority instruction, selecting the higher record set of priority from the temporary record set of backup record collection and portable terminal is the 3rd record set, and the record set that then priority is lower is the 4th record set.Selected cell 402 compares the sign of all records in the sign of all records in the 3rd record set and the 4th record set one by one, judge whether the 3rd record set and the 4th record set exist the identical record of sign, if there is no identify identical record, all records of the 3rd record set and all of the 4th record set are recorded as the recovery record collection; If have the identical record of sign and receive the second time control instruction of control module 401 outputs, then the record that the 3rd record set is different with the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection; Do not receive the second time control instruction of control module 401 outputs if there is the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection; Output recovery record collection is to portable terminal, so that the temporary record set of portable terminal deletion, the recovery of stomge record set.
The method that portable terminal is deleted its inner temporary record and recovery of stomge record set belongs to the content of prior art, does not repeat them here.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. the method for records in mobile terminal backup is characterized in that this method comprises:
A, receiving record backup instruction arrange according to the user, and selecting the higher record set of priority from backup record collection and record set to be backed up is first record set, and another is second record set; Described record set comprises many records, and each record comprises the sign of this record;
B, judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different from the sign of first record set as the first duplicated record collection;
C, replace the backup record collection with the first duplicated record collection.
2. method according to claim 1 is characterized in that, described each record also comprises the modification time of this record, further comprises before the step B: arrange and adopt very first time principle;
Described very first time principle has higher priority for the modification time of record apart from the nearer record of backup time;
After there is the identical record of sign in the described judgement of step B, the record that first record set is different with the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the first duplicated record collection.
3. method according to claim 1 is characterized in that, further comprises before the steps A: be provided with that the priority of duplicated record collection is higher than record set to be backed up, the priority that record set to be backed up perhaps is set is higher than duplicated record collection.
4. method according to claim 1 is characterized in that,
Being designated by the sequence number of portable terminal, the rise time of record and the numeral of this recording feature of expression that random number generates of described record.
5. the method recovered of a records in mobile terminal is characterized in that this method comprises:
A, receiving record recover instruction, arrange according to the user, and selecting the higher record set of priority from backup record collection and the temporary record set of portable terminal is the 3rd record set, and another is the 4th record set; Described record set comprises many records, and each record comprises the sign of this record;
B, judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the 3rd record centralised identity as the recovery record collection;
C, replace the temporary record set of portable terminal with the recovery record collection.
6. method according to claim 5 is characterized in that, described each record also comprises the modification time of this record, further comprises before the step B: arrange and adopt second time principle;
Described second time principle has higher priority for the modification time of record apart from recovering nearer record of the moment;
After there is the identical record of sign in the described judgement of step B, the record that the 3rd record set is different with the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection.
7. method according to claim 5 is characterized in that, further comprises before the steps A: be provided with that the priority of duplicated record collection is higher than the temporary record set of portable terminal, the priority that the temporary record set of portable terminal perhaps is set is higher than duplicated record collection.
8. method according to claim 5 is characterized in that,
Being designated by the sequence number of portable terminal, the rise time of record and the numeral of this recording feature of expression that random number generates of described record.
9. the device of records in mobile terminal backup is characterized in that this device comprises:
Control module, receive the record backup instruction after, the first priority instruction of output backup instruction and setting is to selected cell;
Selected cell according to the backup instruction that receives, reads duplicated record collection from backup units, obtains record set to be backed up from portable terminal; According to first priority instruction that is provided with, selecting the higher record set of priority from duplicated record collection and record set to be backed up is first record set, and another is second record set; Judge whether there is the identical record of sign in first record set and second record set, if judge the record that does not exist sign identical, then with first record set and second record set as the first duplicated record collection; If judge there to be the identical record of sign, then with first record set, and second record set in the record different with the sign of first record set as the first duplicated record collection; Export the first duplicated record collection to backup units;
Backup units, deletion backup record collection is stored the first duplicated record collection;
Described record set comprises many records, and each record comprises the sign of this record.
10. device according to claim 9 is characterized in that, described control module is further according to the very first time principle that arranges, and output very first time control instruction is to selected cell; Described each record also comprises the modification time of this record;
Described very first time principle has higher priority for the modification time of record apart from the nearer record of backup time; The instruction that described very first time control command has higher priority for the nearer record of sign equivalent modifications time gap backup time;
After described selected cell judges that there are the identical record of sign in first record set and second record set, according to the very first time control instruction that receives, with first record set and the different record of the second record centralised identity, and first record set and the acceptance of the bid of second record set sensible with modification time apart from the nearer record of backup time as the recovery record collection.
11. device according to claim 9 is characterized in that, the instruction of first priority of described setting is higher than the instruction of record set to be backed up for the priority of duplicated record collection; Perhaps be higher than the instruction of duplicated record collection for the priority of record set to be backed up.
12. the device that records in mobile terminal recovers is characterized in that this device comprises:
Control module, after receiving record recovered instruction, output recovered the second priority instruction of instruction and setting to selected cell;
Selected cell according to the recovery instruction that receives, reads the backup record collection from backup units, from the temporary record set of acquisition for mobile terminal portable terminal; According to the second priority instruction, selecting the higher record set of priority from backup record collection and the temporary record set of portable terminal is the 3rd record set, and another is the 4th record set; Judge whether there is the identical record of sign in the 3rd record set and the 4th record set, if judge the record that does not exist sign identical, then with the 3rd record set and the 4th record set as the recovery record collection; If judge there to be the identical record of sign, then with the 3rd record set, and the 4th record set in the record different from the sign of the 3rd record set as the recovery record collection; Output recovery record collection is replaced the temporary record set of portable terminal to portable terminal;
Described record set comprises many records, and each record comprises the sign of this record.
13. device according to claim 12 is characterized in that, described control module further according to second time principle that arranges, is exported the second time control instruction to selected cell; Described each record also comprises the modification time of this record;
Described second time principle has higher priority for the modification time of record apart from recovering nearer record of the moment; The described second time control instruction is recovered the instruction that nearer record of the moment has higher priority for sign equivalent modifications time gap;
After described selected cell judges that there are the identical record of sign in the 3rd record set and the 4th record set, according to the second time control instruction that receives, with the 3rd record set and the different record of the 4th record centralised identity, and the 3rd record set and the acceptance of the bid of the 4th record set sensible with modification time apart from recovering constantly nearer record as the recovery record collection.
14. device according to claim 12 is characterized in that, the second priority instruction of described setting is the instruction that the priority of backup record collection is higher than the temporary record set of portable terminal; Perhaps be higher than the instruction of backup record collection for the priority of the temporary record set of portable terminal.
CN201010134132.5A 2010-03-12 2010-03-12 Methods and devices for backup and recovery of records in mobile terminal Pending CN101848274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010134132.5A CN101848274A (en) 2010-03-12 2010-03-12 Methods and devices for backup and recovery of records in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010134132.5A CN101848274A (en) 2010-03-12 2010-03-12 Methods and devices for backup and recovery of records in mobile terminal

Publications (1)

Publication Number Publication Date
CN101848274A true CN101848274A (en) 2010-09-29

Family

ID=42772728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010134132.5A Pending CN101848274A (en) 2010-03-12 2010-03-12 Methods and devices for backup and recovery of records in mobile terminal

Country Status (1)

Country Link
CN (1) CN101848274A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139259A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and server of achieving low-flux synchronous message logging
CN103179153A (en) * 2011-12-22 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and mobile terminal data backup method based on cloud server
CN103577282A (en) * 2012-07-27 2014-02-12 京瓷办公信息系统株式会社 Electronic device mirroring device setting
CN103942121A (en) * 2014-04-04 2014-07-23 上海斐讯数据通信技术有限公司 Data recovery system and mobile terminal
CN105451223A (en) * 2014-08-07 2016-03-30 阿里巴巴集团控股有限公司 Information monitoring method and device, and mobile terminal
CN109271241A (en) * 2018-08-20 2019-01-25 赛凡信息科技(厦门)有限公司 A kind of method of Blu-ray instrument operation task scheduling

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549130A (en) * 2003-05-06 2004-11-24 联想(北京)有限公司 Method of document synchronization
CN1829251A (en) * 2006-04-07 2006-09-06 深圳市杰特电信控股有限公司 Automatic backup method and device for mobile phone address list
CN1894912A (en) * 2003-10-31 2007-01-10 维瑞泰斯操作公司 Single instance backup of email message attachments
CN1904835A (en) * 2006-08-08 2007-01-31 北京飞天诚信科技有限公司 Method for updating computer software
CN101043525A (en) * 2007-04-26 2007-09-26 北京航空航天大学 Method for realizing file sharing in P2P network environment
CN101388790A (en) * 2007-09-14 2009-03-18 中兴通讯股份有限公司 Method for importing radio network performance data
CN101551801A (en) * 2008-03-31 2009-10-07 国际商业机器公司 Data synchronization method and data synchronization system
CN101593185A (en) * 2008-05-29 2009-12-02 国际商业机器公司 Utilize and carry out the method and system that data are recovered synchronously
CN101650677A (en) * 2009-07-27 2010-02-17 浪潮电子信息产业股份有限公司 File data backup method based on Delta increment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549130A (en) * 2003-05-06 2004-11-24 联想(北京)有限公司 Method of document synchronization
CN1894912A (en) * 2003-10-31 2007-01-10 维瑞泰斯操作公司 Single instance backup of email message attachments
CN1829251A (en) * 2006-04-07 2006-09-06 深圳市杰特电信控股有限公司 Automatic backup method and device for mobile phone address list
CN1904835A (en) * 2006-08-08 2007-01-31 北京飞天诚信科技有限公司 Method for updating computer software
CN101043525A (en) * 2007-04-26 2007-09-26 北京航空航天大学 Method for realizing file sharing in P2P network environment
CN101388790A (en) * 2007-09-14 2009-03-18 中兴通讯股份有限公司 Method for importing radio network performance data
CN101551801A (en) * 2008-03-31 2009-10-07 国际商业机器公司 Data synchronization method and data synchronization system
CN101593185A (en) * 2008-05-29 2009-12-02 国际商业机器公司 Utilize and carry out the method and system that data are recovered synchronously
CN101650677A (en) * 2009-07-27 2010-02-17 浪潮电子信息产业股份有限公司 File data backup method based on Delta increment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139259A (en) * 2011-11-30 2013-06-05 百度在线网络技术(北京)有限公司 Method and server of achieving low-flux synchronous message logging
CN103179153A (en) * 2011-12-22 2013-06-26 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and mobile terminal data backup method based on cloud server
CN103179153B (en) * 2011-12-22 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and mobile terminal data backup method based on cloud server
CN103577282A (en) * 2012-07-27 2014-02-12 京瓷办公信息系统株式会社 Electronic device mirroring device setting
CN103942121A (en) * 2014-04-04 2014-07-23 上海斐讯数据通信技术有限公司 Data recovery system and mobile terminal
CN105451223A (en) * 2014-08-07 2016-03-30 阿里巴巴集团控股有限公司 Information monitoring method and device, and mobile terminal
CN105451223B (en) * 2014-08-07 2019-03-15 阿里巴巴集团控股有限公司 Monitoring method, device and the mobile terminal of information
CN109271241A (en) * 2018-08-20 2019-01-25 赛凡信息科技(厦门)有限公司 A kind of method of Blu-ray instrument operation task scheduling
CN109271241B (en) * 2018-08-20 2021-10-29 赛凡信息科技(厦门)有限公司 Method for scheduling operation tasks of blue-ray equipment

Similar Documents

Publication Publication Date Title
CN101848274A (en) Methods and devices for backup and recovery of records in mobile terminal
CN104166606B (en) File backup method and main storage device
CN102521072B (en) Virtual tape library equipment and data recovery method
CN102831035B (en) The method of backup information and device
CN102945278B (en) A kind of method and apparatus of data-base recording redo log
CN110188000A (en) Application disaster recovery method and system based on virtualization and iSCSI or FC
CN102999564B (en) Write the method for data, device and equipment
CN101714107A (en) Database backup and recovery method and device in ERP system
CN103064760A (en) Backup method and backup device
CN107315659A (en) The redundancy backup method and device of a kind of metadata
CN104063187A (en) Hard disk file system suitable for security application and operation method thereof
CN103838645B (en) Remote difference synthesis backup method based on Hash
CN102226892B (en) Disk fault tolerance processing method and device thereof
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN106648970A (en) File backup method and distributed file system
CN112380067A (en) Metadata-based big data backup system and method under Hadoop environment
CN103744751B (en) Storage device configuration information continuous optimization backup system and application method thereof
CN106991314A (en) A kind of date storage method and device
CN102096613B (en) Method and device for generating snapshot
CN104636218B (en) Data reconstruction method and device
CN103455391B (en) A kind of apparatus and method of data protection of dynamic conditioning
CN103176867A (en) Fast file differential backup method
CN103207916A (en) Metadata processing method and device
CN101625654A (en) Method and system for restoring encrypted backup of embedded systems
CN101794246B (en) Backup storage system, backup system, data backup method and recovery method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1148405

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100929

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1148405

Country of ref document: HK