CN103870478A - Method and device for restoring synchronous data - Google Patents

Method and device for restoring synchronous data Download PDF

Info

Publication number
CN103870478A
CN103870478A CN201210535477.0A CN201210535477A CN103870478A CN 103870478 A CN103870478 A CN 103870478A CN 201210535477 A CN201210535477 A CN 201210535477A CN 103870478 A CN103870478 A CN 103870478A
Authority
CN
China
Prior art keywords
synchrodata
database
identification information
preserving
server
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
CN201210535477.0A
Other languages
Chinese (zh)
Other versions
CN103870478B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210535477.0A priority Critical patent/CN103870478B/en
Publication of CN103870478A publication Critical patent/CN103870478A/en
Application granted granted Critical
Publication of CN103870478B publication Critical patent/CN103870478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for restoring synchronous data and relates to the technical field of communication networks. The lost synchronous data can be restored through the method and the device. According to an embodiment, the method comprises obtaining the identification information of first synchronous data, wherein the first synchronous data are synchronous data to be restored in a terminal; querying first synchronous data which are corresponding to the identification information of the first synchronous data in a first database according to the identification information of the first synchronous data, wherein the first database is used for saving the identification information and the first synchronous data which are corresponding to the identification information; sending the queried first synchronous data to a second database, wherein the second database is used for saving the first synchronous data and the identification information which is corresponding to the first synchronous data. The method and the device for restoring the synchronous data are suitable for restoration of the lost synchronous data.

Description

A kind of method and device that recovers synchrodata
Technical field
The present invention relates to communication network technology field, relate in particular to a kind of method and device that recovers synchrodata.
Background technology
At present, in internet, be synchronously widely used in every field, and realized different functions, such as the bookmark of browser is synchronous, the historical records such as browsing page synchronous, network hard disc synchronous, and address list synchronous in the terminal such as mobile phone.In the process of synchrodata, can adopt the mode of manual data synchronization or automatically synchronizing data.For example, in the time that the bookmark to browser adopts manual synchronization, first the webpage in browser is saved as to bookmark, whether now browser can be pointed out needs this webpage to be synchronously saved in the database in server, synchronously be saved in the database in server if select, the related data of this webpage can be saved in the database in server in saving as bookmark.In the time that the bookmark to browser adopts automatic synchronization, by browser, webpage saves as bookmark, automatically the related data of this webpage is saved in the database in server.
Inventor finds that in prior art, at least there are the following problems: in the process of synchrodata, may cause synchrodata to be lost because user's misoperation or system break down, in the time that synchrodata is lost, can not recover the synchrodata of losing, cause the permanent loss of synchrodata.
Summary of the invention
Embodiments of the invention provide a kind of method and device that recovers synchrodata, can recover the synchrodata of losing.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of method of recovering synchrodata, comprising:
Obtain the identification information of the first synchrodata, described the first synchrodata is synchrodata to be recovered in terminal;
According to the identification information of described the first synchrodata, inquiry first synchrodata corresponding with the identification information of described the first synchrodata in the first database, described the first database is for preserving whole identification informations and the first synchrodata corresponding to whole described identification information;
Described first synchrodata of inquiry is sent to the second database, and described the second database is for preserving described the first synchrodata and identification information corresponding to described the first synchrodata.
In another embodiment of the present invention, before the described identification information that obtains the first synchrodata, also comprise:
In the time that described terminal and described the second database synchronization are preserved the second synchrodata, described the second synchrodata is sent to described the first database by the server at described the second database place, so that described the first database is preserved described the second synchrodata, described the second synchrodata comprises described the first synchrodata.
Described the first database and described the second database are in same server; Or, described the first database from described the second database in different servers.
Described identification information is the time of preserving synchrodata, or described identification information is the batch number while at every turn preserving at least one synchrodata to described the second database.
In another embodiment of the present invention, described the first synchrodata is kept to described the second database, comprising:
Receive the identification information when preamble data that described terminal sends;
According to the described identification information when preamble data, determine that next identification information of the described identification information when preamble data is the up-to-date identification information of described the first synchrodata;
The up-to-date identification information of described the first synchrodata and described the first synchrodata are kept in described the second database.
In another embodiment of the present invention, described the first synchrodata is kept to described the second database, comprising:
Described the first synchrodata is kept in described the second database, and determines that the current time of described the first synchrodata of preservation is the up-to-date identification information of described the first synchrodata.
After described described the first synchrodata by inquiry sends to the second database, also comprise:
The up-to-date identification information of described the first synchrodata and described the first synchrodata is sent to described the first database by the server at described the second database place, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata at described the first database.
In another embodiment of the present invention, described described the first synchrodata by inquiry also comprises after sending to the second database:
In the time that described the second database is preserved described the first synchrodata, show described the first synchrodata in described terminal synchronizes.
On the other hand, the embodiment of the present invention provides a kind of device that recovers synchrodata, comprising:
Acquisition module, for obtaining the identification information of the first synchrodata, described the first synchrodata is synchrodata to be recovered in terminal;
Enquiry module, be used for according to the identification information of described the first synchrodata, inquiry first synchrodata corresponding with the identification information of described the first synchrodata in the first database, described the first database is for preserving whole identification informations and the first synchrodata corresponding to whole described identification information;
The first sending module, for described first synchrodata of inquiry is sent to the second database, described the second database is for preserving described the first synchrodata and identification information corresponding to described the first synchrodata.
In another embodiment of the present invention,, described device, also comprises:
The second sending module, for in the time that described terminal and described the second database synchronization are preserved the second synchrodata, described the second synchrodata is sent to described the first database, so that described the first database is preserved described the second synchrodata, described the second synchrodata comprises described the first synchrodata.
Described device also comprises: described the first database; Or, described the first database and described the second database;
Wherein, described the first database, for preserving whole synchrodatas and whole identification information corresponding to synchrodata; Described the second database, for synchronous synchrodata and identification information corresponding to described synchrodata of preserving described terminal demonstration.
Described identification information is the time of preserving synchrodata, or described identification information is the batch number while at every turn preserving at least one synchrodata to described the second database.
In another embodiment of the present invention, described acquisition module, also for: obtain the identification information when preamble data;
Described device also comprises:
Processing module, for according to the described identification information when preamble data, determines that next identification information of the described identification information when preamble data is the up-to-date identification information of described the first synchrodata; And the up-to-date identification information of described the first synchrodata and described the first synchrodata are kept in described the second database.
Described processing module, also for: described the first synchrodata is kept to described the second database, and determines that preserving the current time of described the first synchrodata is the up-to-date identification information of described the first synchrodata.
In another embodiment of the present invention, described the second sending module, also for the up-to-date identification information of described the first synchrodata and described the first synchrodata is sent to described the first database, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata in described the first database; Or,
Described acquisition module, also for obtain described the second database place server send described the first synchrodata and the up-to-date identification information of described the first synchrodata, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata in described the first database.
In another embodiment of the present invention, described device, also comprises:
Display module, in the time that described the second database is preserved described the first synchrodata, shows described the first synchrodata in described terminal synchronizes.
The embodiment of the present invention provides a kind of method and device that recovers synchrodata, by obtaining the identification information of the first synchrodata, described the first synchrodata is synchrodata to be recovered in terminal, then according to the identification information of described the first synchrodata, inquiry first synchrodata corresponding with the identification information of described the first synchrodata in the first database, again described first synchrodata of inquiry is sent to the second database, described the second database is for preserving described the first synchrodata and identification information corresponding to described the first synchrodata.Compared with the synchrodata that can not recover in prior art to lose, the embodiment of the present invention can be by preserving all synchrodatas in the first database, in the time that some synchrodatas occur to lose, can be at the first data base querying to synchrodata that need to be to be recovered, then treat the synchrodata of recovery and recover, realize the object that the synchrodata to losing is recovered.
Accompanying drawing explanation
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 skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of a kind of method of recovering synchrodata that Fig. 1 provides for the embodiment of the present invention 1;
The another kind that Fig. 2 provides for the embodiment of the present invention 1 recovers the process flow diagram of the method for synchrodata;
The process flow diagram of the method for a kind of preservation the first synchrodata that Fig. 3 provides for the embodiment of the present invention 1;
The block diagram of a kind of device that recovers synchrodata that Fig. 4 provides for the embodiment of the present invention 2;
The another kind that Fig. 5 provides for the embodiment of the present invention 2 recovers the block diagram of the device of synchrodata.
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, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
As shown in Figure 1, the embodiment of the present invention provides a kind of method of recovering synchrodata, and the executive agent of the method can be server, and the method comprises the following steps:
Step 101, obtains the identification information of the first synchrodata, and the first synchrodata is synchrodata to be recovered in terminal;
After user deletes the identification information of the synchrodata in terminal, the synchrodata of the corresponding identification information of database in server also can synchronously be deleted, so after user misoperation, cause relevant synchrodata to lose, make user cannot obtain again this synchrodata.
In the present embodiment, the method is applied to the browser on mobile phone or computer, and the bookmark that can carry out in browser recovers synchrodata; Or the method is applied to the address list on mobile phone, can carries out address list and recover synchrodata.For example, the bookmark name in browser can be regarded as to the identification information of synchrodata, in the time that user preserves a bookmark name, in the database of server, also can synchronously preserve the synchrodata of this boomard comment; In the time that user deletes a bookmark name, in the database of server, also can synchronously delete the synchrodata of this boomard comment; Or, the name of contact person of address list in mobile phone can be regarded as to the identification information of synchrodata, in the time that user preserves a name of contact person, in the database of server, also can synchronously preserve the synchrodata (data such as phone number as corresponding in contact person) of this address list content; In the time that user deletes a name of contact person, in the database of server, also can synchronously delete the synchrodata of this address list content.
The identification information of the first synchrodata is used for searching this first synchrodata.In this step, from the identification information of the first synchrodata, can obtain following information: preserve the concrete time of the first synchrodata, quantity, the affiliated type of the first synchrodata etc. of the first synchrodata.For example: the identification information of the first synchrodata can be expressed as: ABCDEFGHI, wherein, the first six digits ABCDEF of the identification information of the first synchrodata can represent to preserve the concrete time of this first synchrodata, for example, within on 01 01st, 2012, preserved this first synchrodata, 120101 as the concrete time of preserving this first synchrodata; One of the centre G of the identification information of the first synchrodata can represent the affiliated type of the first synchrodata, and for example, news type can represent with 1, and types of entertainment can represent with 2, and life type can represent etc. with 3; Rear two HI of the identification information of the first synchrodata can be illustrated in the quantity of the synchrodata in the same concrete time, for example, in on 01 01st, 2012, three synchrodatas about news type are preserved, the identification information of this first synchrodata can be expressed as 120101101,120101102,120101103.Or can, using preserving the detail time of synchrodata as the identification information of this synchrodata, for example, preserve a synchrodata at 2012 01 month 08: 05: 30 on the 01st, the identification information of this synchrodata can be expressed as 120101080530.
The present embodiment is the expression mode of the identification information of limits synchronization data not, and the identification information of synchrodata can have the method for multiple expression, does not repeat one by one here.
Step 102, according to the identification information of the first synchrodata, inquiry first synchrodata corresponding with the identification information of the first synchrodata in the first database, the first database is for preserving whole identification informations and whole the first synchrodata corresponding to identification information;
Work as user misoperation, while causing the first synchrodata to be lost, under normal conditions, the first synchrodata of loss cannot be given for change.In the present embodiment, can address this problem.This first database can be regarded backup database as, for preserving whole synchrodatas and whole identification information corresponding to synchrodata.In the time that the first synchrodata is lost, can in the first database, search by the identification information of the first synchrodata, in the time finding identical identification information, can determine that the data that identical identification information is corresponding are synchrodata to be recovered, i.e. the first synchrodata.It should be noted that, the first database not with terminal synchronizes,, in the time of terminal save data, the first database is not preserved these data, but preserve by the data that send with the server at the second database place of terminal synchronizes, make to preserve total data in the first database.The second database can be regarded sync database as.
It should be noted that, the first database can be according to the size of self EMS memory, whole synchrodatas of preserving are limited, for example, the first database can be preserved the synchrodata of 50-60 bar, in the time of the identification information of the new synchrodata of continuous increase and corresponding synchrodata, because the first databases is limited, can be according to the holding time of synchrodata, the synchrodata of early preserving and exceed restriction is deleted automatically; Or by the server at the first database place and being connected of terminal, user can independently delete synchrodata by the demonstration of terminal, to delete the synchrodata that some significance levels are less.
Step 103, sends to the second database by the first synchrodata of inquiry, and the second database is for preserving the first synchrodata and identification information corresponding to the first synchrodata.
The second database is and the database of terminal synchronizes, in the time that terminal is preserved the identification information of a synchrodata, corresponding, preserves identification information and this synchrodata of this synchrodata in the second database; In the time of the identification information of a synchrodata of terminal deletion, corresponding, synchronous identification information and this synchrodata of deleting this synchrodata in the second database.
The embodiment of the present invention provides a kind of method of recovering synchrodata, by obtaining the identification information of the first synchrodata, the first synchrodata is synchrodata to be recovered in terminal, then according to the identification information of the first synchrodata, inquiry first synchrodata corresponding with the identification information of the first synchrodata in the first database, again the first synchrodata of inquiry is sent to the second database, the second database is for preserving the first synchrodata and identification information corresponding to the first synchrodata, by preserving the first database of all synchrodatas, can reach the object that the synchrodata to losing is recovered.
As shown in Figure 2, the embodiment of the present invention provides the process flow diagram of the another kind of method of recovering synchrodata, and the executive agent of the method can be server, and the method comprises the following steps:
Step 201, the first synchrodata that terminal is selected according to user is obtained the identification information of the first synchrodata, and the identification information of this first synchrodata is sent to first server, and first server is kept at this first synchrodata in backup database again;
The first synchrodata is synchrodata to be recovered in terminal.First server is the server at backup database place; Backup database is for storing whole synchrodatas and corresponding all identification informations of synchrodata, and backup database is the first database.
After user deletes the identification information of the synchrodata in terminal, the synchrodata of the corresponding identification information of database in server also can synchronously be deleted, so after user misoperation, cause relevant synchrodata to lose, make user cannot obtain again this synchrodata.In the present embodiment, the method is applied to the browser on mobile phone or computer, and the bookmark that can carry out in browser recovers synchrodata; Or the method is applied to the address list on mobile phone, can carries out address list and recover synchrodata.
In this step, from the identification information of the first synchrodata, can obtain following information: preserve the concrete time of the first synchrodata, quantity, the affiliated type of the first synchrodata etc. of the first synchrodata.For example: the identification information of the first synchrodata can be expressed as: ABCDEFGHI, wherein, the first six digits ABCDEF of the identification information of the first synchrodata can represent to preserve the concrete time of this first synchrodata, for example, within on 01 01st, 2012, preserved this first synchrodata, 120101 as the concrete time of preserving this first synchrodata; One of the centre G of the identification information of the first synchrodata can represent the affiliated type of the first synchrodata, and for example, news type can represent with 1, and types of entertainment can represent with 2, and life type can represent etc. with 3; Rear two HI of the identification information of the first synchrodata can be illustrated in the quantity of the synchrodata in the same concrete time, for example, in on 01 01st, 2012, three synchrodatas about news type are preserved, the identification information of this first synchrodata can be expressed as 120101101,120101101,120101103.Or can, using preserving the detail time of synchrodata as the identification information of this synchrodata, for example, preserve a synchrodata at 2012 01 month 08: 05: 30 on the 01st, the identification information of this synchrodata can be expressed as 120101080530.
For example, the bookmark name in browser can be regarded as to the identification information of synchrodata, in the time that user preserves a bookmark name, in the database of server, also can synchronously preserve the synchrodata of this boomard comment; In the time that user deletes a bookmark name, in the database of server, also can synchronously delete the synchrodata of this boomard comment; Or, the name of contact person of address list in mobile phone can be regarded as to the identification information of synchrodata, in the time that user preserves a name of contact person, in the database of server, also can synchronously preserve the synchrodata (data such as phone number as corresponding in contact person) of this address list content; In the time that user deletes a name of contact person, in the database of server, also can synchronously delete the synchrodata of this address list content.
The present embodiment is the expression mode of the identification information of limits synchronization data not, and the identification information of synchrodata can have the method for multiple expression, does not repeat one by one here.
Step 202, the identification information of the first synchrodata that first server receiving terminal sends, then according to the identification information of this first synchrodata, inquiry first synchrodata corresponding with the identification information of this first synchrodata in backup database;
Wherein, backup database is for preserving whole synchrodatas and whole identification information corresponding to synchrodata.In addition, first server can, according to the size of backup database internal memory, limit whole synchrodatas of preserving.For example, backup database can be preserved the synchrodata of 50-60 bar, in the time of the identification information of the new synchrodata of continuous increase and corresponding synchrodata, because backup database internal memory is limited, can be according to the holding time of synchrodata, the synchrodata of early preserving and exceed restriction is deleted automatically; Or by being connected of first server and terminal, user can independently delete synchrodata by the demonstration of terminal, to delete the synchrodata that some significance levels are less.
Work as user misoperation, while causing the first synchrodata to be lost, under normal conditions, the first synchrodata of loss cannot be given for change.In the present embodiment, can address this problem.In the time of terminal and the synchronous preservation of sync database the second synchrodata, this second synchrodata is sent to first server by second server, and first server is kept at the second synchrodata in backup database again.Wherein, second server is the server at sync database place; Sync database is and the database of terminal synchronizes; The second synchrodata is arbitrary synchrodata, can comprise the first synchrodata.
It should be noted that, first server is used for preserving backup database, and second server is used for preserving sync database.Backup database can be in identical server with sync database, and first server and second server are same server; Backup database also can be in different servers from sync database, and first server and second server are different servers.
In the time that backup database and sync database are in a server, when server inquires the first synchrodata in backup database, the first synchrodata are sent to sync database, and preserve this first synchrodata by sync database.
When backup database is kept in first server, when sync database is kept on second server, in the time that first server inquires the first synchrodata in backup database, the first synchrodata is sent to second server by first server, and second server is kept at sync database by the first synchrodata again.
In the present embodiment, in different servers, be described from sync database with backup database.
Step 203, this first synchrodata of inquiry is sent to second server by first server, and second server is kept at sync database by the first synchrodata again;
Concrete, as shown in Figure 3, it is as follows that the first synchrodata is kept at step in sync database by second server:
Step 301, second server receives the first synchrodata that first server sends;
When first server inquires in backup database by the identification information of the first synchrodata after the first corresponding synchrodata, the first synchrodata is sent to second server by first server, so that the sync database in second server is preserved the first synchrodata.
Step 302, the identification information when preamble data that second server receiving terminal sends;
When the identification information of preamble data is illustrated in the identification information of preserving up-to-date synchrodata in terminal.
Step 303, according to the identification information when preamble data, second server determines that next identification information of the identification information of working as preamble data is the up-to-date identification information of the first synchrodata;
In this step, the information that the identification information of synchrodata comprises has: preserve the concrete time of synchrodata, the quantity of synchrodata, the affiliated type of synchrodata.For example, the type of the first synchrodata is news type, and the identification information that is news type when preamble data is 121101103, and the up-to-date identification information that can determine the first synchrodata is 121101104.
Step 304, when the first synchrodata is kept at sync database by second server, the up-to-date identification information that the current time of determining preservation the first synchrodata is synchrodata;
In this step, the information that the identification information of synchrodata comprises is the detail time of preserving synchrodata.For example, the time that the first synchrodata is kept to sync database is 09: 25: 30 on the 01st November in 2012, the up-to-date identification information of the first synchrodata can be 121101092530, then by the up-to-date identification information of the first synchrodata: 121101092530 are also kept in sync database.
It should be noted that, when the identification information of synchrodata is while preserving the time of this synchrodata, in first server, the first synchrodata is sent to second server, second server is kept at the first synchrodata in sync database again, sync database, without the identification information receiving when preamble data, directly arranges the up-to-date identification information of the first synchrodata according to the detail time of current preservation the first synchrodata.
It should be noted that, step 303 is step arranged side by side with step 304, determines two kinds of modes of the identification information of the first synchrodata.Concrete, after complete step 302, can only perform step 303, also can only perform step 304.In accompanying drawing 3 with empty wire frame representation step 304, to represent to select step 303 and a step in step 304 to carry out, can certainly be with empty wire frame representation step 303.
Step 305, is kept at the up-to-date identification information of the first synchrodata and the first synchrodata in sync database.
It should be noted that, the method for operating of step 301-step 305 is that the first synchrodata is kept to the step in sync database, after the first synchrodata is kept to sync database, continues execution step 204.
Step 204, this first synchrodata simultaneous display that sync database is preserved is in terminal;
In the time that terminal is preserved the identification information of the second synchrodata, the second synchrodata is arbitrary synchrodata, corresponding, second synchrodata of preserving identification information and the corresponding identification information of this second synchrodata in sync database; In the time that terminal synchronizes is deleted the identification information of arbitrary the second synchrodata, corresponding, the synchronous identification information of this second synchrodata and the second synchrodata of corresponding identification information of deleting in the second database.The first synchrodata inquiring is sent to second server by first server, when second server is kept at sync database by the first synchrodata again, due to terminal and the connection of synchronizeing of second server, in terminal, can preserve the identification information of the first synchrodata, and show the first synchrodata.
Step 205, this first synchrodata of preserving and the up-to-date identification information of the first synchrodata are sent to first server by second server, and first server is kept at the up-to-date identification information of the first synchrodata and the first synchrodata in backup database again.
When the first synchrodata is stored in sync database again, and while thering is up-to-date identification information, illustrate that this first synchrodata is successfully recovered.
After the first synchrodata is successfully recovered, the up-to-date identification information of this first synchrodata and the first synchrodata need to be sent to first server, first server is kept at the up-to-date identification information of the first synchrodata and the first synchrodata in backup database again, so that backup database is preserved the up-to-date identification information of the first synchrodata and the first synchrodata, improve in time the information of whole the second synchrodatas in backup database.
The embodiment of the present invention provides a kind of method of recovering synchrodata, first server is by obtaining the identification information of the first synchrodata, the first synchrodata is synchrodata to be recovered in terminal, then according to the identification information of the first synchrodata, first server is inquired about first synchrodata corresponding with the identification information of the first synchrodata in backup database, again the first synchrodata of inquiry is sent to the second database, the second database is for preserving the first synchrodata and identification information corresponding to the first synchrodata.The embodiment of the present invention can be recovered the synchrodata of losing, the synchrodata that facilitates user to find to have lost.
Embodiment 2
As shown in Figure 4, the embodiment of the present invention provides a kind of device that recovers synchrodata, comprising: acquisition module 401, and enquiry module 402, the first sending modules 403, this device can be server.
Acquisition module 401, for obtaining the identification information of the first synchrodata, the first synchrodata is synchrodata to be recovered in terminal;
After user deletes the identification information of the synchrodata in terminal, the synchrodata of the corresponding identification information of database in server also can synchronously be deleted, so after user misoperation, cause relevant synchrodata to lose, make user cannot obtain again this synchrodata.In the present embodiment, the browser of this application of installation on mobile phone or computer, the bookmark that can carry out in browser recovers synchrodata; Or the method is applied to the address list on mobile phone, can carries out address list and recover synchrodata.
Identification information is the time of preserving synchrodata, or identification information is the batch number while at every turn preserving at least one synchrodata to the second database.For example, from the identification information of the first synchrodata, can obtain following information: preserve the concrete time of the first synchrodata, quantity, the affiliated type of the first synchrodata etc. of the first synchrodata.For example: the identification information of the first synchrodata can be expressed as: ABCDEFGHI, wherein, the first six digits ABCDEF of the identification information of the first synchrodata can represent to preserve the concrete time of this first synchrodata, for example, within on 01 01st, 2012, preserved this first synchrodata, 120101 as the concrete time of preserving this first synchrodata; One of the centre G of the identification information of the first synchrodata can represent the affiliated type of the first synchrodata, and for example, news type can represent with 1, and types of entertainment can represent with 2, and life type can represent etc. with 3; Rear two HI of the identification information of the first synchrodata can be illustrated in the quantity of the synchrodata in the same concrete time, for example, in on 01 01st, 2012, three synchrodatas about news type are preserved, the identification information of this first synchrodata can be expressed as 120101101,120101102,120101103.Or can, using preserving the detail time of synchrodata as the identification information of this synchrodata, for example, preserve a synchrodata at 2012 01 month 08: 05: 30 on the 01st, the identification information of this synchrodata can be expressed as 120101080530.
The present embodiment is the expression mode of the identification information of limits synchronization data not, and the identification information of synchrodata can have the method for multiple expression, does not repeat one by one here.
After acquisition module 401 obtains the identification information of the first synchrodata, enquiry module 402, be used for according to the identification information of the first synchrodata, inquiry first synchrodata corresponding with the identification information of the first synchrodata in the first database, the first database is for preserving whole identification informations and whole the first synchrodata corresponding to identification information;
Due to user misoperation, while causing the first synchrodata to be lost, under normal conditions, the first synchrodata of loss cannot be given for change.In the present embodiment, can address this problem.This first database can be regarded backup database as, for preserving whole synchrodatas and whole identification information corresponding to synchrodata.In the time that the first synchrodata is lost, can in the first database, search by the identification information of the first synchrodata, in the time finding identical identification information, can determine that the data that identical identification information is corresponding are synchrodata to be recovered, i.e. the first synchrodata.It should be noted that, the first database not with terminal synchronizes,, in the time of terminal save data, the first database is not preserved these data, but preserve by the data that send with the server at the second database place of terminal synchronizes, make to preserve total data in the first database.The second database can be regarded sync database as.
After the first synchrodata corresponding with the identification information of the first synchrodata in enquiry module 402 inquiries, the first sending module 403, for the first synchrodata of inquiry is sent to the second database, the second database is for preserving the first synchrodata and identification information corresponding to the first synchrodata.
The second database is and the database of terminal synchronizes, in the time that terminal is preserved the identification information of a synchrodata, corresponding, preserves identification information and this synchrodata of this synchrodata in the second database; In the time of the identification information of a synchrodata of terminal deletion, corresponding, synchronous identification information and this synchrodata of deleting this synchrodata in the second database.
Further alternative, as shown in Figure 5, this device also comprises: the second sending module 404;
Obtain the identification information of the first synchrodata at acquisition module 401 before, the second sending module 404, for in the time that terminal and the second database synchronization are preserved the second synchrodata, the second synchrodata is sent to the first database, so that the first database is preserved the second synchrodata, in the second synchrodata, can comprise the first synchrodata.
Further alternative, as shown in Figure 5, this device also comprises: the first database 405, or the first database 405 and the second database 406;
Wherein, the first database 405, for preserving whole synchrodatas and whole identification information corresponding to synchrodata; The second database 406, for synchronous synchrodata and identification information corresponding to synchrodata of preserving terminal demonstration.That is to say that the first database and the second database can be in same servers, or the first database can be in different servers from the second database, for example the first database is in first server, and the second database is at second server.
Further alternative, as shown in Figure 5, this device also comprises: processing module 407;
After acquisition module 401 obtains the identification information of the first synchrodata, acquisition module 401, also obtains the identification information when preamble data; When the identification information of preamble data is the identification information of preserving up-to-date synchrodata in terminal.
Obtain after the identification information of preamble data at acquisition module 401, processing module 407, is the up-to-date identification information of the first synchrodata for next identification information of determining the identification information of working as preamble data; And the up-to-date identification information of the first synchrodata and the first synchrodata are kept in the second database.
For example, the information that the identification information of the first synchrodata comprises has: preserve the concrete time of the first synchrodata, the quantity of the first synchrodata, the affiliated type of the first synchrodata.For example, the type of the first synchrodata is news type, and the identification information that is news type when preamble data is 121101103, and the up-to-date identification information that can determine the first synchrodata is 121101104.Processing module 407, also for the first synchrodata is kept to the second database, and determines and preserves the up-to-date identification information that the current time of the first synchrodata is synchrodata.
Further alternative, in the time preserving the first database and the second database in server, processing module 407 is kept at the first synchrodata in the second database, and determine that preserving the current time of the first synchrodata is the up-to-date identification information of the first synchrodata, simultaneously by the up-to-date identification information of synchrodata and the corresponding preservation of the first synchrodata.
For example, the information that the identification information of synchrodata comprises is the detail time of preserving synchrodata.For example, the time that the first synchrodata is kept to the second database is 09: 25: 30 on the 01st November in 2012, the up-to-date identification information of the first synchrodata can be 121101092530, then by the up-to-date identification information of the first synchrodata: 121101092530 are also kept in the second database.
Further alternative, when the first database and the second database are kept in same server, the up-to-date identification information of the first synchrodata and the first synchrodata is sent to the first database by the second sending module 404, to preserve the up-to-date identification information of the first synchrodata and the first synchrodata in the first database;
Further alternative, in the time preserving the first database in server, acquisition module 401 obtain the second database place server send the first synchrodata and the up-to-date identification information of the first synchrodata, to preserve the up-to-date identification information of the first synchrodata and the first synchrodata in the first database.
Further, this device also comprises: display module 408;
In the time that the second database is preserved the first synchrodata, display module 408 shows the first synchrodata in terminal synchronizes.
The embodiment of the present invention provides a kind of device that recovers synchrodata, acquisition module is by obtaining the identification information of the first synchrodata, then enquiry module is according to the identification information of the first synchrodata, inquiry first synchrodata corresponding with the identification information of the first synchrodata in the first database, the first sending module sends to the second database by the first synchrodata of inquiry again, and the second database is for preserving the first synchrodata and identification information corresponding to the first synchrodata.The embodiment of the present invention can be recovered the synchrodata of losing, and makes user can give the synchrodata of having lost for change.
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; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (16)

1. a method of recovering synchrodata, is characterized in that, comprising:
Obtain the identification information of the first synchrodata, described the first synchrodata is synchrodata to be recovered in terminal;
According to the identification information of described the first synchrodata, inquiry first synchrodata corresponding with the identification information of described the first synchrodata in the first database, described the first database is for preserving whole identification informations and the first synchrodata corresponding to whole described identification information;
Described first synchrodata of inquiry is sent to the second database, and described the second database is for preserving described the first synchrodata and identification information corresponding to described the first synchrodata.
2. method according to claim 1, is characterized in that, before the described identification information that obtains the first synchrodata, also comprises:
In the time that described terminal and described the second database synchronization are preserved the second synchrodata, described the second synchrodata is sent to described the first database by the server at described the second database place, so that described the first database is preserved described the second synchrodata, described the second synchrodata comprises described the first synchrodata.
3. method according to claim 2, is characterized in that, described the first database and described the second database are in same server; Or, described the first database from described the second database in different servers.
4. method according to claim 1, is characterized in that, described identification information is the time of preserving synchrodata, or described identification information is the batch number while at every turn preserving at least one synchrodata to described the second database.
5. method according to claim 4, is characterized in that, described the first synchrodata is kept to described the second database, comprising:
Obtain the identification information when preamble data;
According to the described identification information when preamble data, determine that next identification information of the described identification information when preamble data is the up-to-date identification information of described the first synchrodata;
The up-to-date identification information of described the first synchrodata and described the first synchrodata are kept in described the second database.
6. method according to claim 4, is characterized in that, described the first synchrodata is kept to described the second database, comprising:
Described the first synchrodata is kept in described the second database, and determines that the current time of described the first synchrodata of preservation is the up-to-date identification information of described the first synchrodata.
7. according to the method described in claim 5 or 6, it is characterized in that, after described described the first synchrodata by inquiry sends to the second database, also comprise:
The up-to-date identification information of described the first synchrodata and described the first synchrodata is sent to described the first database by the server at described the second database place, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata at described the first database.
8. method according to claim 1, is characterized in that, described described the first synchrodata by inquiry also comprises after sending to the second database:
In the time that described the second database is preserved described the first synchrodata, show described the first synchrodata in described terminal synchronizes.
9. a device that recovers synchrodata, is characterized in that, comprising:
Acquisition module, for obtaining the identification information of the first synchrodata, described the first synchrodata is synchrodata to be recovered in terminal;
Enquiry module, be used for according to the identification information of described the first synchrodata, inquiry first synchrodata corresponding with the identification information of described the first synchrodata in the first database, described the first database is for preserving whole identification informations and the first synchrodata corresponding to whole described identification information;
The first sending module, for described first synchrodata of inquiry is sent to the second database, described the second database is for preserving described the first synchrodata and identification information corresponding to described the first synchrodata.
10. device according to claim 9, is characterized in that, described device also comprises:
The second sending module, for in the time that described terminal and described the second database synchronization are preserved the second synchrodata, described the second synchrodata is sent to described the first database, so that described the first database is preserved described the second synchrodata, described the second synchrodata comprises described the first synchrodata.
11. devices according to claim 10, is characterized in that, described device also comprises:
Described the first database; Or, described the first database and described the second database;
Wherein, described the first database, for preserving whole synchrodatas and whole identification information corresponding to synchrodata; Described the second database, for synchronous synchrodata and identification information corresponding to described synchrodata of preserving described terminal demonstration.
12. devices according to claim 9, is characterized in that,
Described identification information is the time of preserving synchrodata, or described identification information is the batch number while at every turn preserving at least one synchrodata to described the second database.
13. devices according to claim 12, is characterized in that,
Described acquisition module, also for obtaining the identification information when preamble data;
Described device, also comprises:
Processing module, for according to the described identification information when preamble data, determines that next identification information of the described identification information when preamble data is the up-to-date identification information of described the first synchrodata; And the up-to-date identification information of described the first synchrodata and described the first synchrodata are kept in described the second database.
14. devices according to claim 13, is characterized in that,
Described processing module, also for described the first synchrodata is kept to described the second database, and determines that the current time of described the first synchrodata of preservation is the up-to-date identification information of described the first synchrodata.
15. devices according to claim 10, is characterized in that,
Described the second sending module, also for the up-to-date identification information of described the first synchrodata and described the first synchrodata is sent to described the first database, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata in described the first database; Or,
Described acquisition module, also for obtain described the second database place server send described the first synchrodata and the up-to-date identification information of described the first synchrodata, to preserve the up-to-date identification information of described the first synchrodata and described the first synchrodata in described the first database.
16. devices according to claim 9, is characterized in that, described device, also comprises:
Display module, in the time that described the second database is preserved described the first synchrodata, shows described the first synchrodata in described terminal synchronizes.
CN201210535477.0A 2012-12-12 2012-12-12 A kind of method and device for restoring synchrodata Active CN103870478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210535477.0A CN103870478B (en) 2012-12-12 2012-12-12 A kind of method and device for restoring synchrodata

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210535477.0A CN103870478B (en) 2012-12-12 2012-12-12 A kind of method and device for restoring synchrodata

Publications (2)

Publication Number Publication Date
CN103870478A true CN103870478A (en) 2014-06-18
CN103870478B CN103870478B (en) 2018-09-25

Family

ID=50909022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210535477.0A Active CN103870478B (en) 2012-12-12 2012-12-12 A kind of method and device for restoring synchrodata

Country Status (1)

Country Link
CN (1) CN103870478B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512171A (en) * 2015-11-23 2016-04-20 北京奇虎科技有限公司 Database synchronizing method and apparatus
CN106559440A (en) * 2015-09-25 2017-04-05 上海中兴软件有限责任公司 A kind of method and device of data processing
CN111611229A (en) * 2020-06-11 2020-09-01 上海乾臻信息科技有限公司 Data storage method and device for data storage

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003036521A1 (en) * 2001-10-24 2003-05-01 Bea Systems, Inc. Data synchronization
US20040267835A1 (en) * 2003-06-30 2004-12-30 Microsoft Corporation Database data recovery system and method
CN1581074A (en) * 2003-07-31 2005-02-16 国际商业机器公司 Method, system and program product for preserving and resuming mobile device user settings
CN1784676A (en) * 2004-02-25 2006-06-07 微软公司 Database data recovery system and method
US20070088970A1 (en) * 2003-04-10 2007-04-19 Lenovo (Singapore) Pte.Ltd Recovery from failures within data processing systems
CN101120319A (en) * 2004-12-30 2008-02-06 伊姆西公司 Systems and methods for restoring data
CN101147146A (en) * 2005-03-31 2008-03-19 瑞士银行股份有限公司 Computer network system for constructing, synchronizing and/or managing a second database from/with a first database, and methods therefore
CN101436207A (en) * 2008-12-16 2009-05-20 浪潮通信信息系统有限公司 Data restoring and synchronizing method based on log snapshot
CN101677314A (en) * 2008-09-18 2010-03-24 深圳华为通信技术有限公司 Method, device and system of identification of synchronous data operation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003036521A1 (en) * 2001-10-24 2003-05-01 Bea Systems, Inc. Data synchronization
US20070088970A1 (en) * 2003-04-10 2007-04-19 Lenovo (Singapore) Pte.Ltd Recovery from failures within data processing systems
US20040267835A1 (en) * 2003-06-30 2004-12-30 Microsoft Corporation Database data recovery system and method
CN1581074A (en) * 2003-07-31 2005-02-16 国际商业机器公司 Method, system and program product for preserving and resuming mobile device user settings
CN1784676A (en) * 2004-02-25 2006-06-07 微软公司 Database data recovery system and method
CN101120319A (en) * 2004-12-30 2008-02-06 伊姆西公司 Systems and methods for restoring data
CN101147146A (en) * 2005-03-31 2008-03-19 瑞士银行股份有限公司 Computer network system for constructing, synchronizing and/or managing a second database from/with a first database, and methods therefore
CN101677314A (en) * 2008-09-18 2010-03-24 深圳华为通信技术有限公司 Method, device and system of identification of synchronous data operation
CN101436207A (en) * 2008-12-16 2009-05-20 浪潮通信信息系统有限公司 Data restoring and synchronizing method based on log snapshot

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559440A (en) * 2015-09-25 2017-04-05 上海中兴软件有限责任公司 A kind of method and device of data processing
CN106559440B (en) * 2015-09-25 2020-04-28 中兴通讯股份有限公司 Data processing method and device
CN105512171A (en) * 2015-11-23 2016-04-20 北京奇虎科技有限公司 Database synchronizing method and apparatus
CN105512171B (en) * 2015-11-23 2019-05-21 北京奇虎科技有限公司 The method and device of database synchronization
CN111611229A (en) * 2020-06-11 2020-09-01 上海乾臻信息科技有限公司 Data storage method and device for data storage
CN111611229B (en) * 2020-06-11 2023-05-26 上海乾臻信息科技有限公司 Data storage method and device for data storage

Also Published As

Publication number Publication date
CN103870478B (en) 2018-09-25

Similar Documents

Publication Publication Date Title
EP2506531A1 (en) Method for finding, updating and synchronizing modified record item and data synchronizing device
CN104901983B (en) A kind of information synchronization method, apparatus and system
CN109299157B (en) Data export method and device for distributed big single table
CN102591747A (en) Data backup method and device
CN102609479B (en) A kind of memory database node clone method
CN102591943A (en) Page data processing method for mobile terminal
CN102722428A (en) Address book backup and recovery method and address book backup and recovery device
CN104283926A (en) Data synchronization method, device and server
CN105550068A (en) Misoperation withdrawing method and system
CN104346345A (en) Data storage method and device
CN104838379A (en) Database synchronization
CN103533169A (en) Method for positioning and linking field of electronic business card based on mobile terminal
CN102984357A (en) Contact person information managing method and managing device
CN103870478A (en) Method and device for restoring synchronous data
CN103927252A (en) Cross-component log recording method, device and system
CN102769660A (en) Cloud server, terminal and data backing up method thereof
CN108762979B (en) Terminal information backup method and backup device based on matching tree
CN107332966A (en) A kind of backup method of address list information
CN103037355B (en) The method for remote updating of mobile terminal addressbook and numbering directory management server
CN105577734A (en) Information backup method, device, server and terminal
CN103634281A (en) Bookmark synchronization method and client and server for bookmark synchronization
CN103067599A (en) Mobile terminal wallpaper renewal method and system
CN100551109C (en) The method of data synchronization of multi-module mobile terminal
CN110099136A (en) Network Access Method, client, network interaction method and scheduling, network system
CN105827739A (en) Contact person information synchronization method, device, server and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant