CN106502840A - A kind of data back up method, apparatus and system - Google Patents
A kind of data back up method, apparatus and system Download PDFInfo
- Publication number
- CN106502840A CN106502840A CN201610956874.3A CN201610956874A CN106502840A CN 106502840 A CN106502840 A CN 106502840A CN 201610956874 A CN201610956874 A CN 201610956874A CN 106502840 A CN106502840 A CN 106502840A
- Authority
- CN
- China
- Prior art keywords
- data
- backed
- backup
- target
- storage region
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
Abstract
The embodiment of the invention discloses a kind of data back up method, apparatus and system;The embodiment of the present invention is using the first data to be backed up and target backup account for receiving main equipment transmission, and the first storage region corresponding with the main equipment under account is backed up in first data backup to be backed up to target, then, receive the second data to be backed up and target backup account that slave sends, the distinguishes data between second data to be backed up and first data to be backed up is obtained, the distinguishes data is backed up to the second storage region corresponding with the slave under the target backup account;The program can improve the efficiency of data backup.
Description
Technical field
The present invention relates to cloud redundancy technique field, and in particular to a kind of data back up method, apparatus and system.
Background technology
Cloud backup is a kind of emerging cloud calculation service, cloud backup services provider by virtualization, distributed treatment and
The storage device of magnanimity in network, isomery is gathered collaborative work by the technology such as broadband network, and the common data that externally provide are deposited
Storage backup services.User can pass through mobile Internet and broadband internet is accessed, and realize to a large amount of and scattered texts in terminal
Part or centrally stored, the safekeeping of file.
Wherein, cloud backup is to cloud server by the data backup in certain terminal.In existing cloud backup scenario, multiple
Terminal can log in same cloud backup account and carry out data backup with cloud server.However, different terminals are same in login
In the case that individual cloud backup account is backed up, cloud server needs the data to each terminal to carry out full backup, can lead
Cause the efficiency comparison of data backup low.
Such as, as a example by backing up address list, after terminal A, terminal B, terminal C log in same cloud backup account, every
During secondary backup, cloud server needs all address book datas in back-up terminals A, terminal B, terminal C respectively;Due to standby every time
During part, equal cloud server is required to back up all address book datas in each terminal, and therefore, backup data quantity is larger, causes to count
Efficiency comparison according to backup is low.
Content of the invention
The embodiment of the present invention provides a kind of data back up method, apparatus and system, can improve the efficiency of data backup.
The embodiment of the present invention provides a kind of data back up method, including:
The first data to be backed up and target backup account that main equipment sends is received, and by the described first data to be backed up
Back up to the first storage region corresponding with the main equipment under target backup account;
Receive the second data to be backed up and target backup account that slave sends;
Obtain the distinguishes data between the described second data to be backed up and first data to be backed up;
The distinguishes data is backed up to the second memory block corresponding with the slave under the target backup account
Domain.
Correspondingly, the embodiment of the present invention additionally provides a kind of data backup device, including:
First backup units, for receiving first data to be backed up and target backup account of main equipment transmission, and will
First data backup to be backed up is to the first storage region corresponding with the main equipment under target backup account;
Receiving unit, for receiving second data to be backed up and target backup account of slave transmission;
Difference acquiring unit, for obtaining the difference between the described second data to be backed up and first data to be backed up
Data;
Second backup units, for by the distinguishes data back up under target backup account with the slave
Corresponding second storage region.
Correspondingly, the embodiment of the present invention additionally provides a kind of data backup system, including:Main equipment, slave and
Server, the server include data backup device as above.
The embodiment of the present invention backs up account using the first data to be backed up and target for receiving main equipment transmission, and should
Then first data backup to be backed up, receives subordinate to the first storage region corresponding with the main equipment under target backup account
The second data to be backed up and target backup account that equipment sends, obtain second data to be backed up first to be backed up with this
The distinguishes data is backed up under target backup account corresponding with the slave second and is deposited by the distinguishes data between data
Storage area domain.In the program, slave is only backed up the difference number differed with the data to be backed up of main equipment in Backup Data
According to, full backup need not be carried out, accordingly, with respect to prior art for, the efficiency of data backup can be improved.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, can be other attached to be obtained according to these accompanying drawings
Figure.
Fig. 1 is a kind of schematic diagram of a scenario of data backup system provided in an embodiment of the present invention.
Fig. 2 is the schematic flow sheet of data back up method provided in an embodiment of the present invention.
Fig. 3 is another schematic flow sheet of data back up method provided in an embodiment of the present invention.
Fig. 4 is the first structural representation of data backup device provided in an embodiment of the present invention.
Fig. 5 is second structural representation of data backup device provided in an embodiment of the present invention.
Fig. 6 is the third structural representation of data backup device provided in an embodiment of the present invention.
Fig. 7 is the 4th kind of structural representation of data backup device provided in an embodiment of the present invention.
Fig. 8 is the structural representation of server provided in an embodiment of the present invention.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on
Embodiment in the present invention, the every other enforcement obtained under the premise of creative work is not made by those skilled in the art
Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data back up method, apparatus and system.
Wherein, the data backup system can include:The data backup device provided by the embodiment of the present invention, the data are standby
During part device can be with server, such as it is used in the cloud server of backup, additionally, the data backup system can also include:Its
His equipment, such as main equipment and slave etc., the server and main equipment, is connected from wired or wireless network between equipment
Connect.
For example, by the data backup device specifically integrated in the server as a example by, referring to Fig. 1, the server can be used for
The first data to be backed up and target backup account that main equipment sends is received, and by first data backup to be backed up to target
The first storage region corresponding with the main equipment under backup account, then, receives the second data to be backed up that slave sends
And the target backup account, the distinguishes data between second data to be backed up and first data to be backed up is obtained, should
Distinguishes data backs up to the second storage region corresponding with the slave under the target backup account.
The data backup system also includes main equipment and slave, and the main equipment and slave can be terminal, its
In, main equipment is used for sending the data and target backup account for needing backup to server, and same slave is also used for sending out
The data and target backup account for needing backup is sent to server, so as to realize the data backup on equipment to server.
It is described in detail respectively below.
Embodiment one,
The present embodiment will be described from a kind of angle of data backup device, and the data backup device specifically can be with integrated
In server.
A kind of data back up method, including:The first data to be backed up and target backup account that main equipment sends is received,
And by the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account, then, connect
Receive slave send the second data to be backed up and the target backup account, obtain second data to be backed up with this first
Distinguishes data between data to be backed up, the distinguishes data is backed up to corresponding with the slave under the target backup account
Second storage region.
As shown in Fig. 2 a kind of data back up method, idiographic flow is as follows:
101st, first to be backed up data and target backup account that main equipment send are received, and by first number to be backed up
The first storage region corresponding with the main equipment under account is backed up according to target is backed up to.
Wherein, the first data to be backed up are the data for needing to back up in main equipment, and which can set according to the actual requirements, such as
Can include:Note data, address book data, message registration data, picture data, system settings data, application data
Etc..
So that data backup device is integrated in the server as an example, server can once receive the first of main equipment transmission
Data to be backed up, now, the first data to be backed up are institute's data acquisition system to be backed up in need, such as all of note data.
In other embodiments, it is also possible to realize receiving the first data to be backed up by multiple receiving data block;Than
Such as, when the first data to be backed up can be divided into multiple data blocks by main equipment, data block can be distributed the service of giving repeatedly
Device is until sent all data blocks.Now, server can by the data block for receiving back up to target backup account under with
Corresponding first storage region of main equipment.
In actual applications, step " receiving the first data to be backed up and target backup account that main equipment sends " can be with
Including:The data backup requests that main equipment sends are received, the data backup requests carry the first data to be backed up and target is standby
Part account.Now, step " is deposited under first data backup to be backed up to target backup account corresponding with the main equipment first
Storage area domain " can include:According to data backup requests by first data backup to be backed up to target backup account under with the master
Corresponding first storage region of equipment.
In the present embodiment, the corresponding different storage region of distinct device under same backup account;Such as, main equipment is corresponding
First storage region, corresponding second storage region of slave.Alternatively, the corresponding pass of the present embodiment equipment and storage region
System, can adopt the device identification of equipment to realize with the corresponding relation of storage region or embody;Now, in data backup
Corresponding storage region can be determined by device identification.Namely first data backup to be backed up to target " is backed up by step
The first storage region corresponding with the main equipment under account " can include:
Determine the corresponding storage region of target backup account, obtain the set of target storage domain;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to device identification and the target device logo collection of the main equipment, determine from the target storage domain set
Corresponding first storage region of the main equipment;
By in first data backup to be backed up to first storage region.
Determine the target backup corresponding storage region of account mode have multiple, such as, can according to target back up account,
The corresponding storage region of target backup account, wherein, account area maps relation is determined with account area maps set of relationship
Set includes:Mapping relations between backup account and storage region.
Obtain the corresponding device identification in storage region set memory storage region mode have multiple, such as, can be according to mesh
Mark storage region set and the set of equipment region mapping relations obtain the corresponding equipment of storage region in the set of target storage domain
Mark, wherein, equipment region mapping relations set includes:Mapping relations between device identification and storage region.
In the present embodiment, the device identification of main equipment can be compared with the device identification in device identification set,
Determine that the device identification identical target device with main equipment is identified, then, it is determined that target device identifies corresponding storage region
For corresponding first storage region of main equipment.
Alternatively, storage region, account area maps set of relationship in the present embodiment, equipment region mapping relations set can
To be set by the user, can be automatically created by system;Namely before step 101, the present embodiment method can also include:
Receive storage region and request is set, the storage region arranges request Portable device mark and backup account;
Request is arranged according to the storage region and creates storage region;
The mapping relations that sets up between storage region and backup account, obtain account area maps set of relationship;
The mapping relations that sets up between storage region and device identification, obtain equipment region mapping relations set.
102nd, second to be backed up data and target backup account that slave send are received.
In the present embodiment, device identification can be the unique mark of equipment, and such as, device identification can be IMEI (international shiftings
Dynamic device identification) or mac addresses (physical address) etc..
Wherein, slave is different equipment from main equipment, such as, can be same user distinct device, or
The distinct device of different user.There can be subordinate relation between the slave and main equipment, such as, main equipment is set with subordinate
Standby can be two settings in same equipment group, and wherein, the main equipment can control slave.
Wherein, the second data to be backed up can be the data for needing to back up in slave.Such as, which can be according to reality
Demand sets, and can such as include:Note data, address book data, message registration data, picture data, system settings data, should
With at least one in routine data etc..
The data type of second data to be backed up and the first data to be backed up (can draw according to backup object by data type
Point) can be with identical, specifically, the second data to be backed up can be to belong to same backup on distinct device with the first data to be backed up
The data of item.For example, the first data to be backed up can be able to be subordinate for the note data in main equipment, the second data to be backed up
Note data in equipment,
In other embodiments, (data type can for the data type of the second data to be backed up and the first data to be backed up
To be divided according to backup object) can differ, specifically, the second data to be backed up can be to belong to the first data to be backed up
The data of different backed items on distinct device.For example, the first data to be backed up can be treated for the note data in main equipment, second
Backup Data can be the address book data in slave;Again for example, the first data to be backed up can be included in main equipment
Note data and address book data.Second data to be backed up can include:In slave note data, address book data and it is
System arranges data.
Equally so that data backup device is integrated in the server as an example, server can once receive main equipment transmission
Second data to be backed up, now, the second data to be backed up be slave in data acquisition system to be backed up in need, such as institute
Some message registration data.In other embodiments, it is also possible to realize receiving by multiple receiving data block second treat standby
Number evidence;Such as, when the second data to be backed up are divided into multiple data blocks by slave, repeatedly data block distribution can be sent
To server until having sent all data blocks.
103rd, the distinguishes data second to be backed up data and the first to be backed up data between is obtained.
Such as, the second data to be backed up can be compared with the first data to be backed up, so as to arrive area therebetween
Other data.
Specifically, step " obtaining the distinguishes data between second data to be backed up and first data to be backed up " can be with
Including:
Judge whether second data to be backed up are identical with first data to be backed up;
If it is not, then obtaining the distinguishes data between second data to be backed up and first data to be backed up.
Wherein, judge second data to be backed up and first data to be backed up whether identical mode have multiple, such as,
Can obtain by way of data compare.In some other embodiments, in order to improve backup rate, can be by treating
Whether the data type of Backup Data is identical to judge data, such as, can first judge the data belonging to the second data to be backed up
Whether type is identical with the data type belonging to the first data to be backed up, if differing, shows the second data to be backed up and is somebody's turn to do
First data to be backed up are differed;If type is identical, the second data to be backed up are compared with first data to be backed up,
Whether identical to determine the two.
For example, when the first data to be backed up are note class data, and the second data to be backed up are photo class data, Ke Yizhi
Connect and judge that the two data to be backed up are differed, improve the speed of data judgement, and then improve the speed of data backup.
104th, the distinguishes data is backed up to the second storage region corresponding with the slave under the target backup account.
Specifically, step 104 can include:
Determine the corresponding storage region of target backup account, obtain the set of target storage domain;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to device identification and the target device logo collection of the slave, true from the target storage domain set
Corresponding second storage region of the fixed slave;
By in second data backup to be backed up to second storage region.
Wherein it is determined that storage region, the mode of acquisition device identification may be referred to the above-mentioned first data to be backed up and backup to
The process of the first storage region, is such as determined storage region by account area maps set of relationship, is closed by equipment region mapping
Assembly closes to obtain device identification etc., repeats no more here.
Alternatively for saving the resource of server, judging second data to be backed up with the first data phase to be backed up
Meanwhile, the present embodiment is not backed up to the second data to be backed up;Such as, the second data to be backed up are deleted.
Alternatively, in order to improve the data synchronization efficiency of equipment room, the present embodiment can be asked with initiating synchronization in main equipment
When asking, distinguishes data is sent to main equipment only to realize data syn-chronization;Namely " distinguishes data is backed up to the mesh in step
After the second storage region corresponding with the slave under mark backup account ", the data back up method can also include:
Receive the data synchronization request that main equipment sends;
Distinguishes data in second storage region is synchronized to by the main equipment according to the data synchronization request.
Wherein, the data synchronization request can carry the device identification of main equipment, at this point it is possible to according to device identification from from
Distinguishes data is extracted in corresponding second storage region of category equipment, then, main equipment is sent to.
Alternatively, based on the present embodiment data back up method, obtain slave data when (as other equipment obtain from
During category device data) slave data can be combined into using main equipment data and distinguishes data, improve the safety of data
Property.Namely " distinguishes data is backed up to the second memory block corresponding with the slave under the target backup account in step
After domain ", the data back up method also includes:
Receiving data obtains request, and the data acquisition request indicates slave (as carried the equipment mark of slave
Know);
The distinguishes data is extracted and from second storage region from first memory block according to the data acquisition request
Data are extracted in domain;
The data acquisition target data that extracts according to the distinguishes data and from the first storage region.
For example, it is possible to the data acquisition request that the equipment for receiving other users is initiated, then, deposits from second according to the request
Extract distinguishes data in storage area domain from the first storage region, extracted Backup Data, finally, according to the distinguishes data and
The data that extracts from the first storage region form target data, and the target data is sent to request initiating equipment.
From the foregoing, it will be observed that the embodiment of the present invention is using the first data to be backed up and target backup account for receiving main equipment transmission
Number, and the first storage region corresponding with the main equipment under account is backed up in first data backup to be backed up to target, then,
Receive the second data to be backed up and target backup account that slave sends, obtain second data to be backed up with this
Distinguishes data between one data to be backed up, the distinguishes data is backed up to corresponding with the slave under the target backup account
The second storage region.In the program, slave is only backed up differing with the data to be backed up of main equipment in Backup Data
Distinguishes data, full backup need not be carried out, accordingly, with respect to prior art for, the efficiency of data backup can be improved.
Additionally, the embodiment of the present invention is also by different memory blocks under the data backup of distinct device to same backup account
Domain, such as by the data backup of main equipment to the first storage region, by the data backup of slave to the second storage region, can be with
Avoid Backup Data between distinct device occur chaotic or cannot be compatible problem (available data backup by distinct device it
Between Backup Data back up to same storage region can cause the data of equipment room that chaotic and data occur cannot be compatible), carry
The compatibility for having risen Backup Data and the management for facilitating Backup Data.
Embodiment two,
The present embodiment will be further described on the basis of the method that embodiment one is provided.
The present embodiment elaborates so that the data backup device of embodiment one is integrated in the server as an example.The service
Device can be the cloud server for backing up.
With reference to Fig. 3, a kind of data back up method, idiographic flow are as follows:
201st, main equipment sends the first data backup requests to server, and first data backup requests carrying first is treated standby
Number evidence, the device identification of main equipment and target backup account.
Specifically, main equipment can receive backup instruction, send carrying first according to backup instruction to server to be backed up
Data and target back up the first data backup requests of account.
Wherein, backup instruction can be triggered by certain event, and such as can be changed by data trigger automatically, specifically
Ground, when detecting certain data (such as the data of certain specified backup) and changing, then triggering sends backup instruction, now counts
Just the backup instruction can be received according to back-up device.For example, when the short message data for detecting specified backup occur
During change (increase, delete or change), then send triggering and send backup instruction.The backup instruction can be touched automatically by system
Send out, such as, transmission backup instruction is triggered automatically every preset duration.
Additionally, the backup instruction can also be carried out by presetting the triggering such as triggering key or input frame interface in triggering terminal
Triggering, such as, when user clicks on or streaks certain backup icon on backup interface, then triggering generates the backup instruction, now
Data backup device just can be received to the backup instruction.
First data to be backed up are the data for needing to back up on main equipment, such as need the note number for backing up on main equipment
According to, picture data etc..
202nd, server based on data backup request under first data backup to be backed up to target backup account and will be somebody's turn to do
Corresponding first storage region of main equipment.
Specifically, server can determine the corresponding storage region of target backup account, obtain the set of target storage domain,
Then, the corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained, according to this
The device identification of main equipment and the target device logo collection, determine that the main equipment is corresponding from the target storage domain set
First storage region.
In the present embodiment, under same backup account, distinct device can correspond to different storage regions, therefore, standby in data
Before part, server can set up different storage regions respectively for distinct device under backup account, e.g., create main equipment pair
The first storage region that answers, creates corresponding second storage region of slave.
203rd, slave sends the second data backup requests to server, and second data backup requests carry second and treat
Backup Data, the device identification of slave and target backup account.
Specifically, slave can receive backup instruction, be treated to server transmission carrying second according to backup instruction standby
Number is according to this and target backs up the second data backup requests of account.
First data to be backed up are the data for needing to back up on slave, such as need the note for backing up on slave
Data, picture data etc..
In the present embodiment, slave is different equipment from main equipment, such as, can set for the difference of same user
Standby, or the distinct device of different user.
First data to be backed up and the data that the second data to be backed up can be same type, can such as be same backup
The data of object.
204th, server judges whether the second data to be backed up are identical with the first data to be backed up, if it is not, then execution step
205, if so, then execution step 207.
Wherein, judge second data to be backed up and first data to be backed up whether identical mode have multiple, such as,
Can obtain by way of data compare.In some other embodiments, in order to improve backup rate, can be by treating
The data type (such as dividing data type according to the affiliated backup object of data) of Backup Data is judging whether data are identical.
Such as, when the first data to be backed up are note class data, and the second data to be backed up are photo class data, Ke Yizhi
Connect and judge that the two data to be backed up are differed, and such as, when the first data to be backed up are note class data, the second number to be backed up
According to for note class data when, can two short message type data be carried out contrast further to judge the two data whether phase
With.
205th, server obtains the distinguishes data between second data to be backed up and first data to be backed up.
206th, distinguishes data is backed up to the second storage corresponding with the slave under the target backup account by server
Region.
Specifically, server can determine the corresponding storage region of target backup account, obtain target storage domain collection
Close;The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;According to this from
The device identification of category equipment and the target device logo collection, determine that the slave is corresponding from the target storage domain set
The second storage region;By in second data backup to be backed up to second storage region.
Such as, creating under target backup account p has corresponding 5 storage regions of 5 equipment, the corresponding storages of main equipment I
Region 1, the corresponding storage regions 2 of slave a, the corresponding storage regions 3 of slave b, the corresponding memory blocks of slave c
Domain 4, the corresponding storage regions 5 of slave d.In backup, server backs up account p according to target and determines corresponding memory block
Domain 1,2,3,4,5;It is then possible to obtain mark I of 1 corresponding main equipment of storage region, 2 corresponding subordinate of storage region is obtained
Mark a ... of equipment obtains mark d of 5 corresponding slave of storage region, if the device identification that request is carried is I
When, at this point it is possible to determine the corresponding storage regions 1 of main equipment I according to I.
207th, server deletes the second data to be backed up.
Alternatively, it is the data synchronization efficiency that improves equipment room, the present embodiment method after step 206, can also wrap
Include:
Main equipment sends data synchronization request to server;
Distinguishes data in second storage region is synchronized to the main equipment according to the data synchronization request by server.
Alternatively, in order to improve the security of Backup Data, the present embodiment method after step 206, can also include:
Server receiving data obtains request, and the data acquisition request indicates slave (as carried setting for slave
Standby mark);
Server according to the data acquisition request extract from second storage region distinguishes data and from this first
Data are extracted in storage region;
The data acquisition target data that server is extracted according to the distinguishes data and from the first storage region, and should
Target data is sent to data acquisition request initiating equipment.
From the foregoing, it will be observed that embodiment of the present invention server receives the first data to be backed up and the target backup that main equipment sends
Account, and the first storage region corresponding with the main equipment under account is backed up in first data backup to be backed up to target, so
Afterwards, receive slave send the second data to be backed up and the target backup account, obtain second data to be backed up with
Distinguishes data between first data to be backed up, by the distinguishes data back up under target backup account with the slave
Corresponding second storage region.In the program, slave is only backed up in Backup Data with the data to be backed up of main equipment not
Identical distinguishes data, need not carry out full backup, accordingly, with respect to prior art for, the effect of data backup can be improved
Rate.
Additionally, server will also be different under the data backup of distinct device to same backup account in the embodiment of the present invention
Storage region, such as by the data backup of main equipment to the first storage region, by the data backup of slave to the second memory block
Domain, can be avoided Backup Data between distinct device and chaotic or cannot be compatible problem occurs (available data backup will not
With the Backup Data between equipment back up to same storage region can cause the data of equipment room that chaotic and data occur cannot
Compatible), improve the management that is compatible and facilitating Backup Data of Backup Data.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of data backup device 30, such as Fig. 4 institutes
Show, the data backup device 30 includes the first backup units 301, receiving unit 302, difference acquiring unit 303 and the second backup
Unit 304, as follows:
First backup units 301, for receiving first data to be backed up and target backup account of main equipment transmission, and
By the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account;
Receiving unit 302, for receiving second data to be backed up and target backup account of slave transmission;
Difference acquiring unit 303, for obtaining the difference between second data to be backed up and first data to be backed up
Data;
Second backup units 304, for by the distinguishes data back up under target backup account with the slave pair
The second storage region that answers.
Specifically, the first backup units 301 can include:Data receiver subelement and backup subelement;
The data receiver subelement, for receiving first data to be backed up and target backup account of main equipment transmission
The backup subelement, specifically for:
Determine the corresponding storage region of target backup account, obtain the set of target storage domain;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to device identification and the target device logo collection of the main equipment, determine from the target storage domain set
Corresponding first storage region of the main equipment;
By in first data backup to be backed up to first storage region.
Wherein, difference acquiring unit 303 can include that judgment sub-unit and difference obtain subelement;
The judgment sub-unit 3031, for judging whether second data to be backed up are identical with first data to be backed up;
The difference obtains subelement 3032, for judging that the second data to be backed up first are treated with this in judgment sub-unit 3031
When Backup Data is differed, the distinguishes data between second data to be backed up and first data to be backed up is obtained.
Alternatively, with reference to Fig. 5, in order to save server resource, the present embodiment data backup device can also include:Delete
Unit 305;
The deletion unit 305, for judging the second data to be backed up and first number to be backed up in judgment sub-unit 3031
According to identical when, delete second data to be backed up.
Alternatively, in order to improve data synchronization efficiency, with reference to Fig. 6, the present embodiment data backup device can also include:
First request reception unit 306, for receiving the data synchronization request of main equipment transmission;
Lock unit 307, for being synchronized to the distinguishes data in second storage region according to the data synchronization request
The main equipment.
Alternatively, in order to improve the security of data, with reference to Fig. 7, the present embodiment data backup device can also include:
Second request reception unit 308, obtains request for receiving data, and the data acquisition request indicates slave;
Data extracting unit 309, for extracting the difference number according to the data acquisition request from second storage region
According to and from first storage region extract data;
Data capture unit 310, for the data acquisition extracted according to the distinguishes data and from the first storage region
Target data.
When being embodied as, above unit can be realized as independent entity, it is also possible to be combined, and made
Realize for same or several entities, being embodied as of above unit can be found in embodiment of the method above, and here is not
Repeat again.
During the data backup device specifically can be with integrating server, in the equipment such as such as cloud server.
In addition, the embodiment of the present invention additionally provides a kind of data backup system, the standby system shown in Fig. 1 is referred to, wrapped
Include server, main equipment and slave;The server includes any data back-up device that example offer is performed as described above, the master
Equipment and slave can be terminal, such as mobile phone, panel computer etc..
The embodiment of the present invention receives the first data to be backed up and the target that main equipment sends using the first backup units 301
Backup account, and by first data backup to be backed up to the first memory block corresponding with the main equipment under target backup account
Domain, then, the second data to be backed up and target backup account that receive slave transmission by receiving unit 302, by area
Other acquiring unit 303 obtains the distinguishes data between second data to be backed up and first data to be backed up, and the second backup is single
The distinguishes data is backed up to the second storage region corresponding with the slave under the target backup account by unit 304.The program
Middle slave is only backed up the distinguishes data differed with the data to be backed up of main equipment in Backup Data, need not carry out complete
Amount backup, accordingly, with respect to prior art for, the efficiency of data backup can be improved.
Additionally, the embodiment of the present invention is also by different memory blocks under the data backup of distinct device to same backup account
Domain, such as by the data backup of main equipment to the first storage region, by the data backup of slave to the second storage region, can be with
Avoid Backup Data between distinct device occur chaotic or cannot be compatible problem (available data backup by distinct device it
Between Backup Data back up to same storage region can cause the data of equipment room that chaotic and data occur cannot be compatible), carry
The compatibility for having risen Backup Data and the management for facilitating Backup Data.
Example IV,
A kind of server is present embodiments provided, wherein can be referred to the data backup device described in Integration Data Model example three
Fig. 8, it illustrates the structural representation of the server involved by the embodiment of the present invention, specifically:
The server 400 can include one or more than one processing core processor 401, one or more
Memory 402, radio frequency (Radio Frequency, the RF) circuit 403 of computer-readable recording medium, power supply 404, input are single
First 405 and display unit 406 etc. part.It will be understood by those skilled in the art that the server architecture illustrated in Fig. 8 is not
Restriction to server is constituted, can be included than illustrating more or less of part, or be combined some parts, or different
Part is arranged.Wherein:
Processor 401 is the control centre of the server, using various interfaces and the whole server of connection each
Part, is stored in software program and/or module in memory 402 by running or executing, and calls and be stored in memory
Data in 402, the various functions and processing data of execute server, so that carry out integral monitoring to server.Optionally, locate
Reason device 401 may include one or more processing cores;Preferably, processor 401 can integrated application processor and modulatedemodulate mediate
Reason device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is main
Process radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 401.
Memory 402 can be used to store software program and module, and processor 401 is stored in memory 402 by operation
Software program and module, so as to execute various function application and data processing.
During RF circuits 403 can be used to receive and send messages, the reception and transmission of signal, especially, by the descending letter of base station
After breath is received, transfer to one or more than one processor 401 is processed;In addition, up data is activation will be related to base station.
Server also includes the power supply 404 (such as battery) that powers to all parts, it is preferred that power supply can pass through power supply
Management system is logically contiguous with processor 401, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.Power supply 404 can also include one or more direct current or AC power, recharging system, power failure
The random component such as detection circuit, power supply changeover device or inverter, power supply status indicator.
The server may also include input block 405, and the input block 405 can be used for the numeral of receives input or character letter
Breath, and it is defeated to produce the keyboard relevant with user setup and function control, mouse, action bars, optics or trace ball signal
Enter.
The server may also include display unit 406, the display unit 406 can be used for show by user input information or
Be supplied to the information of user and the various graphical user interface of server, these graphical user interface can by figure, text,
Icon, video and its be combined constituting.Display unit 408 may include display floater, optionally, can adopt liquid crystal display
Device (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting
) etc. Diode form is configuring display floater.
Specifically in the present embodiment, the processor 401 in server can be according to following instruction, by one or more
The corresponding executable file of process of application program be loaded in memory 402, and run by processor 401 and be stored in
Application program in reservoir 402 is so as to realize various functions, as follows:
The first data to be backed up and target backup account that main equipment sends is received, and will be standby for first data to be backed up
To the first storage region corresponding with the main equipment under target backup account, then, the second of reception slave transmission treats part
Backup Data and target backup account, obtain the difference number between second data to be backed up and first data to be backed up
According to the distinguishes data is backed up to the second storage region corresponding with the slave under target backup account.
The processor 401 is additionally operable to realize following functions:In the case where the distinguishes data to be backed up to target backup account with
After corresponding second storage region of the slave, the data synchronization request that main equipment sends is received;Receive main equipment to send
Data synchronization request.
The processor 401 is additionally operable to realize following functions:In the case where the distinguishes data to be backed up to target backup account with
After corresponding second storage region of the slave, receiving data obtains request, and the data acquisition request indicates slave;
The distinguishes data is extracted from second storage region according to the data acquisition request and is extracted from first storage region
Data;The data acquisition target data that extracts according to the distinguishes data and from the first storage region.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
A kind of data back up method that above embodiment of the present invention is provided, apparatus and system are described in detail,
Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is simply used
The method of the present invention and its core concept is understood in help;Simultaneously for those skilled in the art, according to the think of of the present invention
Think, will change in specific embodiments and applications, in sum, it is right that this specification content should not be construed as
The restriction of the present invention.
Claims (11)
1. a kind of data back up method, it is characterised in that include:
The first data to be backed up and target backup account that main equipment sends is received, and by the described first data backup to be backed up
The first storage region corresponding with the main equipment to target backup account;
Receive the second data to be backed up and target backup account that slave sends;
Obtain the distinguishes data between the described second data to be backed up and first data to be backed up;
The distinguishes data is backed up to the second storage region corresponding with the slave under the target backup account.
2. data back up method as claimed in claim 1, it is characterised in that described by the described first data backup to be backed up extremely
The first storage region corresponding with the main equipment under target backup account, including:
Determine the corresponding storage region of the target backup account, obtain the set of target storage domain;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to device identification and the target device logo collection of the main equipment, true from the set of the target storage domain
Determine corresponding first storage region of the main equipment;
By in the described first data backup to be backed up to first storage region.
3. data back up method as claimed in claim 1, it is characterised in that the acquisition second data to be backed up and institute
The distinguishes data between the first data to be backed up is stated, including:
Judge whether the described second data to be backed up are identical with the described first data to be backed up;
If it is not, then obtaining the distinguishes data between the described second data to be backed up and first data to be backed up;
The data back up method also includes:When the described second data to be backed up are identical with the described first data to be backed up, then
Delete the described second data to be backed up.
4. data back up method as claimed in claim 1, it is characterised in that the distinguishes data is being backed up to the target
Under backup account after the second storage region corresponding with the slave, the data back up method also includes:
Receive the data synchronization request that main equipment sends;
Distinguishes data in second storage region is synchronized to by the main equipment according to the data synchronization request.
5. data back up method as claimed in claim 1, it is characterised in that the distinguishes data is being backed up to the target
Under backup account after the second storage region corresponding with the slave, the data back up method also includes:
Receiving data obtains request, and the data acquisition request indicates slave;
The distinguishes data is extracted from second storage region according to the data acquisition request and is deposited from described first
Data are extracted in storage area domain;
The data acquisition target data that extracts according to the distinguishes data and from the first storage region.
6. a kind of data backup device, it is characterised in that include:
First backup units, for receiving first data to be backed up and target backup account of main equipment transmission, and will be described
First data backup to be backed up is to the first storage region corresponding with the main equipment under target backup account;
Receiving unit, for receiving second data to be backed up and target backup account of slave transmission;
Difference acquiring unit, for obtaining the difference number between the described second data to be backed up and first data to be backed up
According to;
Second backup units, corresponding with the slave under the target backup account for backing up to the distinguishes data
The second storage region.
7. data backup device as claimed in claim 6, it is characterised in that first backup units, including data receiver
Subelement and backup subelement;
The data receiver subelement, for receiving first data to be backed up and target backup account of main equipment transmission
The backup subelement, specifically for:
Determine the corresponding storage region of the target backup account, obtain the set of target storage domain;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to device identification and the target device logo collection of the main equipment, true from the set of the target storage domain
Determine corresponding first storage region of the main equipment;
By in the described first data backup to be backed up to first storage region.
8. data backup device as claimed in claim 6, it is characterised in that the difference acquiring unit includes:Judge that son is single
Unit and difference obtain subelement;The data backup device also includes:Delete unit;
The judgment sub-unit, for judging whether the described second data to be backed up are identical with the described first data to be backed up;
The difference obtains subelement, for judging the second data to be backed up with the described first data to be backed up in judgment sub-unit
When differing, the distinguishes data between second data to be backed up and first data to be backed up is obtained;
In judgment sub-unit, the deletion unit, for judging that the second data to be backed up are identical with the described first data to be backed up
When, delete second data to be backed up.
9. data backup device as claimed in claim 6, it is characterised in that also include:
First request reception unit, for receiving the data synchronization request of main equipment transmission;
Lock unit, described in be synchronized to by the distinguishes data in second storage region
Main equipment.
10. data backup device as claimed in claim 6, it is characterised in that also include:
Second request reception unit, obtains request for receiving data, and the data acquisition request indicates slave;
Data extracting unit, for extracting the difference number according to the data acquisition request from second storage region
According to and from first storage region extract data;
Data capture unit, for the data acquisition number of targets that extracts according to the distinguishes data and from the first storage region
According to.
11. a kind of data backup systems, it is characterised in that including server, main equipment and slave;Wherein, the clothes
Business device includes the data backup device as described in any one of claim 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610956874.3A CN106502840B (en) | 2016-10-25 | 2016-10-25 | A kind of data back up method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610956874.3A CN106502840B (en) | 2016-10-25 | 2016-10-25 | A kind of data back up method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502840A true CN106502840A (en) | 2017-03-15 |
CN106502840B CN106502840B (en) | 2019-07-16 |
Family
ID=58321258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610956874.3A Active CN106502840B (en) | 2016-10-25 | 2016-10-25 | A kind of data back up method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502840B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659652A (en) * | 2017-09-28 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of method and device of cloud backup |
CN108446188A (en) * | 2018-03-12 | 2018-08-24 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
CN109429376A (en) * | 2017-07-17 | 2019-03-05 | 大唐移动通信设备有限公司 | A kind of method for releasing resource and device |
CN109815057A (en) * | 2019-01-25 | 2019-05-28 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
CN110837439A (en) * | 2019-09-30 | 2020-02-25 | 华为终端有限公司 | File backup method, terminal and communication system |
CN112631839A (en) * | 2020-12-31 | 2021-04-09 | 中国农业银行股份有限公司 | Method, device and equipment for realizing data backup |
CN114095951A (en) * | 2020-08-24 | 2022-02-25 | 中国移动通信集团终端有限公司 | Data transmission method, device, system and computer storage medium |
WO2022143158A1 (en) * | 2020-12-30 | 2022-07-07 | 花瓣云科技有限公司 | Data backup method, electronic device, data backup system and chip system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050117A1 (en) * | 2003-08-26 | 2005-03-03 | Jeong-Wook Seo | Apparatus and method for processing a data backup service for use in a mobile terminal |
CN104978239A (en) * | 2014-04-08 | 2015-10-14 | 重庆邮电大学 | Method, device and system for realizing multi-backup-data dynamic updating |
CN105912419A (en) * | 2016-04-01 | 2016-08-31 | 乐视控股(北京)有限公司 | Backup method and device for application programs |
-
2016
- 2016-10-25 CN CN201610956874.3A patent/CN106502840B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050117A1 (en) * | 2003-08-26 | 2005-03-03 | Jeong-Wook Seo | Apparatus and method for processing a data backup service for use in a mobile terminal |
CN104978239A (en) * | 2014-04-08 | 2015-10-14 | 重庆邮电大学 | Method, device and system for realizing multi-backup-data dynamic updating |
CN105912419A (en) * | 2016-04-01 | 2016-08-31 | 乐视控股(北京)有限公司 | Backup method and device for application programs |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109429376A (en) * | 2017-07-17 | 2019-03-05 | 大唐移动通信设备有限公司 | A kind of method for releasing resource and device |
CN109429376B (en) * | 2017-07-17 | 2020-09-25 | 大唐移动通信设备有限公司 | Resource release method and device |
CN107659652A (en) * | 2017-09-28 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of method and device of cloud backup |
CN108446188A (en) * | 2018-03-12 | 2018-08-24 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
CN109815057A (en) * | 2019-01-25 | 2019-05-28 | 维沃移动通信有限公司 | A kind of data back up method and mobile terminal |
CN110837439A (en) * | 2019-09-30 | 2020-02-25 | 华为终端有限公司 | File backup method, terminal and communication system |
CN114095951A (en) * | 2020-08-24 | 2022-02-25 | 中国移动通信集团终端有限公司 | Data transmission method, device, system and computer storage medium |
CN114095951B (en) * | 2020-08-24 | 2023-09-05 | 中国移动通信集团终端有限公司 | Data transmission method, device and system and computer storage medium |
WO2022143158A1 (en) * | 2020-12-30 | 2022-07-07 | 花瓣云科技有限公司 | Data backup method, electronic device, data backup system and chip system |
CN112631839A (en) * | 2020-12-31 | 2021-04-09 | 中国农业银行股份有限公司 | Method, device and equipment for realizing data backup |
Also Published As
Publication number | Publication date |
---|---|
CN106502840B (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106502840A (en) | A kind of data back up method, apparatus and system | |
CN106357811B (en) | A kind of delet method of Backup Data, apparatus and system | |
CN106534277A (en) | Data sharing method and device | |
CN106550030B (en) | A kind of data sharing method, apparatus and system | |
CN103078965B (en) | The IP address management method of virtual machine | |
CN102571996B (en) | IP (Internet Protocol) address assignment method, IP address assignment device and network system | |
CN104869043B (en) | A kind of method and terminal for establishing VPN connection | |
CN103188162A (en) | Load balancing method and system | |
CN106656985A (en) | Backup account login method, device and system | |
CN105162762A (en) | Network isolation method, device and system | |
CN104954340A (en) | Proxy IP address detection method and device | |
CN106055988B (en) | For the authority control method and device of control | |
CN111405052A (en) | P2P penetration method based on port prediction, electronic device and medium | |
CN101770378A (en) | Method for configuring computer by BIOS (Basic Input/Output System), server and computer | |
CN113361913A (en) | Communication service arranging method, device, computer equipment and storage medium | |
CN106528333A (en) | Data backup method and apparatus | |
CN106254312A (en) | A kind of method and device being realized server attack protection by virtual machine isomery | |
CN106575414A (en) | Contextual platform feature recommendations | |
CN109343944A (en) | Data processing method, device, terminal and the storage medium of eSIM card | |
CN106293851A (en) | A kind of firmware upgrade method and equipment | |
CN113506100A (en) | Alliance link data processing method and device, computer equipment and storage medium | |
CN102567037B (en) | Realize the method that the timing of desktop material updates | |
WO2022206231A1 (en) | Kubernetes cluster load balance handling method and apparatus, and storage medium | |
CN105681055A (en) | Access method, device and system of shared file server | |
WO2021057150A1 (en) | Port sharing method and apparatus, storage medium and electronic apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |