CN106502840B - A kind of data back up method, apparatus and system - Google Patents

A kind of data back up method, apparatus and system Download PDF

Info

Publication number
CN106502840B
CN106502840B CN201610956874.3A CN201610956874A CN106502840B CN 106502840 B CN106502840 B CN 106502840B CN 201610956874 A CN201610956874 A CN 201610956874A CN 106502840 B CN106502840 B CN 106502840B
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.)
Active
Application number
CN201610956874.3A
Other languages
Chinese (zh)
Other versions
CN106502840A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610956874.3A priority Critical patent/CN106502840B/en
Publication of CN106502840A publication Critical patent/CN106502840A/en
Application granted granted Critical
Publication of CN106502840B publication Critical patent/CN106502840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management 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 first data and target backup account to be backed up that the embodiment of the present invention is sent using main equipment 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, receive the second data to be backed up and the target backup account that slave is sent, the distinguishes data between second data to be backed up and first data to be backed up is obtained, which is backed up into the second storage region corresponding with the slave under the target backup account;The efficiency of data backup can be improved in the program.

Description

A kind of data back up method, apparatus and system
Technical field
The present invention relates to cloud redundancy technique fields, and in particular to a kind of data back up method, apparatus and system.
Background technique
Cloud backup is a kind of emerging cloud calculation service, cloud backup services provider by virtualization, distributed treatment and The technologies such as broadband network cooperate magnanimity, the memory device set of isomery in network altogether, and the common data that externally provide are deposited Store up backup services.User can be accessed by mobile Internet and broadband internet, be realized to a large amount of in terminal and dispersion text Centrally stored, the safekeeping of part or file.
Wherein, cloud backup is by the data backup in some terminal to cloud server.It is multiple in existing cloud backup scenario Terminal can log in the same cloud backup account and cloud server carries out data backup.However, different terminals are same in login In the case that a cloud backup account is backed up, cloud server needs to carry out full backup to the data of each terminal, can lead Under causing the efficiency of data backup relatively low.
For example, for backing up address list, after terminal A, terminal B, terminal C log in the same cloud backup account, every Cloud server needs back-up terminals A, terminal B, all address book datas in terminal C respectively when secondary backup;Due to standby every time Equal cloud server is required to back up all address book datas in each terminal when part, and therefore, backup data quantity is larger, causes to count It is relatively low according to the efficiency of backup.
Summary of the invention
The embodiment of the present invention provides a kind of data back up method, apparatus and system, and the efficiency of data backup can be improved.
The embodiment of the present invention provides a kind of data back up method, comprising:
The first data and target backup account to be backed up that main equipment is sent 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 the target backup account that slave is sent;
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 into the second memory block corresponding with the slave under the target backup account Domain.
Correspondingly, the embodiment of the invention also provides a kind of data backup devices, comprising:
First backup units, for receiving the first data and target backup account to be backed up of main equipment transmission, and will The first storage region corresponding with the main equipment under first data backup to be backed up to target backup account;
Receiving unit, for receiving the second data to be backed up and the target backup account of slave transmission;
Acquiring unit is distinguished, 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 the target backup account with the slave Corresponding second storage region.
Correspondingly, the embodiment of the invention also provides a kind of data backup systems, comprising: main equipment, slave and Server, the server include data backup device as described above.
The first data and target backup account to be backed up that the embodiment of the present invention is sent using main equipment is received, and should Then the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account receives subordinate It is first to be backed up with this to obtain second data to be backed up for the second data to be backed up and the target backup account that equipment is sent The distinguishes data is backed up under the target backup account corresponding with the slave second and deposited by the distinguishes data between data Storage area domain.Slave is only backed up and the different difference number of the data to be backed up of main equipment in Backup Data in the program According to for the prior art, the efficiency of data backup can be improved without carrying out full backup.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached 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 flow diagram of data back up method provided in an embodiment of the present invention.
Fig. 3 is another flow diagram of data back up method provided in an embodiment of the present invention.
Fig. 4 is the first structural schematic diagram of data backup device provided in an embodiment of the present invention.
Fig. 5 is second of structural schematic diagram of data backup device provided in an embodiment of the present invention.
Fig. 6 is the third structural schematic diagram of data backup device provided in an embodiment of the present invention.
Fig. 7 is the 4th kind of structural schematic diagram of data backup device provided in an embodiment of the present invention.
Fig. 8 is the structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of data back up method, apparatus and system.
Wherein, which may include: data backup device provided by the embodiment of the present invention, and the data are standby Part device can be to be such as used in the cloud server of backup, in addition, the data backup system can also include: it in server His equipment, such as main equipment and slave, the server and main equipment are connected from wired or wireless network between equipment It connects.
For example, referring to Fig. 1, which can be used for so that the data backup device specifically integrates in the server as an example The first data and target backup account to be backed up that main equipment is sent is received, and by first data backup to be backed up to target Then the first storage region corresponding with the main equipment under backup account receives the second data to be backed up that slave is sent And the target backup account, the distinguishes data between second data to be backed up and first data to be backed up is obtained, by this Distinguishes data backs up to the second storage region corresponding with the slave under the target backup account.
The data backup system further includes main equipment and slave, and the main equipment and slave can be terminal, In, main equipment is used to send the data for needing to back up and target backup account to server, and same slave is also used for sending out Send the data and target backup account that needs back up to server, to realize the data backup in equipment to server.
It will be described in detail respectively below.
Embodiment one,
The present embodiment will be described from a kind of angle of data backup device, which specifically can integrate In server.
A kind of data back up method, comprising: the first data and target backup account to be backed up that main equipment is sent is received, And then the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account is 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 backs up to the distinguishes data corresponding with the slave under the target backup account Second storage region.
As shown in Fig. 2, a kind of data back up method, detailed process are as follows:
101, the first data and target backup account to be backed up that main equipment is sent is received, and by first number to be backed up According to backing up to the first storage region corresponding with the main equipment under target backup account.
Wherein, the first data to be backed up are the data for needing to back up in main equipment, can be set according to actual needs, such as It may include: note data, address book data, message registration data, picture data, system settings data, application data Etc..
By taking 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, at this point, the first data to be backed up are institute's data acquisition system to be backed up in need, such as all note datas.
In other embodiments, it can also be realized by repeatedly receiving data block and receive the first data to be backed up;Than Such as, when the first data to be backed up can be divided into multiple data blocks by main equipment, data block repeatedly can be distributed into the service of giving Device is until sent all data blocks.At this point, server the data block received can be backed up under target backup account with Corresponding first storage region of main equipment.
In practical applications, step " receive main equipment send the first data and target backup account to be backed up " can be with It include: the data backup requests for receiving main equipment and sending, it is standby which carries the first data and target to be backed up Part account.At this point, step " is deposited under first data backup to be backed up to target backup account corresponding with the main equipment first Storage area domain " may include: according to data backup requests by under first data backup to be backed up to target backup account with the master Corresponding first storage region of equipment.
In the present embodiment, the corresponding different storage region of distinct device under the same backup account;Such as, main equipment is corresponding First storage region, corresponding second storage region of slave.Optionally, the present embodiment equipment is corresponding with storage region closes System can be realized or be embodied using the device identification of equipment and the corresponding relationship of storage region;At this point, in data backup Corresponding storage region can be determined by device identification.Namely step " backs up first data backup to be backed up to target The first storage region corresponding with the main equipment under account " may include:
It determines the corresponding storage region of target backup account, obtains target storage domain set;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to the device identification of the main equipment and the target device logo collection, determined from the set of the target storage domain Corresponding first storage region of the main equipment;
It will be in first data backup to be backed up to first storage region.
There are many modes for determining the corresponding storage region of target backup account, for example, can according to target backup account, The corresponding storage region of the target backup account is determined with account area maps set of relationship, wherein account area maps relationship Set includes: the mapping relations between backup account and storage region.
It obtains in storage region set there are many modes of the corresponding device identification of storage region, for example, can be according to mesh It marks storage region set and equipment region mapping relations set obtains the corresponding equipment of storage region in the set of target storage domain Mark, wherein equipment region mapping relations set includes: the 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, Target device mark identical with the device identification of main equipment is determined, then, it is determined that target device identifies corresponding storage region For corresponding first storage region of main equipment.
Optionally, storage region, account area maps set of relationship, equipment region mapping relations set can in the present embodiment 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 setting request, storage region setting request Portable device mark and backup account;
According to the storage region, request creation storage region is set;
The mapping relations between storage region and backup account are established, account area maps set of relationship is obtained;
The mapping relations between storage region and device identification are established, equipment region mapping relations set is obtained.
102, the second data to be backed up and the target backup account that slave is sent are received.
Device identification can be the unique identification of equipment in the present embodiment, for example, device identification can (world be moved for IMEI Dynamic device identification) or the address mac (physical address) etc..
Wherein, slave is different equipment from main equipment, for example, can be the distinct device of same user, or The distinct device of different user.It can have subordinate relation between the slave and main equipment, for example, main equipment is set with subordinate Standby can be two settings in same equipment group, 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.For example, it can be according to reality Demand setting, such as may include: note data, address book data, message registration data, picture data, system settings data, answers With at least one of program data etc..
(data type can be drawn the data type of second data to be backed up and the first data to be backed up according to backup object Point) can be identical, specifically, the second data to be backed up and the first data to be backed up can be to belong to same backup on distinct device The data of item.For example, it can be subordinate that the first data to be backed up, which can be 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 not be identical, 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 in main equipment note data, second to Backup Data can be the address book data in slave;In another example the first data to be backed up may include in main equipment Note data and address book data.Second data to be backed up may include: note data in slave, address book data and be System setting data.
Equally by taking data backup device is integrated in the server as an example, server can once receive main equipment transmission Second data to be backed up, at this point, the second data to be backed up be in slave data acquisition system to be backed up in need, such as institute Some message registration data.In other embodiments, reception second can also be realized to standby by repeatedly receiving data block Part data;For example, repeatedly data block distribution can be sent when the second data to be backed up are divided into multiple data blocks by slave To server until having sent all data blocks.
103, the distinguishes data between second data to be backed up and first data to be backed up is obtained.
For example, the second data to be backed up can be compared with the first data to be backed up, to arrive area between the two 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 Include:
Judge whether second data to be backed up and first data to be backed up are identical;
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 there are many second data to be backed up and the whether identical modes of the first data to be backed up, for example, It can be obtained in such a way that data compare.In some other implementations, in order to improve backup rate, can by The data type of Backup Data judges whether data are identical, for example, can first judge data belonging to the second data to be backed up Whether type and data type belonging to the first data to be backed up are identical, if not identical, show the second data to be backed up and are somebody's turn to do First data to be backed up are not identical;If type is identical, the second data to be backed up are compared with first data to be backed up, To determine whether the two is identical.
For example, when the first data to be backed up are short message class data, when the second data to be backed up are photo class data, Ke Yizhi It connects and judges that the two data to be backed up are not identical, improve the speed of data judgement, and then improve the rate of data backup.
104, the distinguishes data is backed up into the second storage region corresponding with the slave under the target backup account.
Specifically, step 104 may include:
It determines the corresponding storage region of target backup account, obtains target storage domain set;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to the device identification of the slave and the target device logo collection, from the set of the target storage domain really Fixed corresponding second storage region of the slave;
It will be 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 can be backuped to reference to the above-mentioned first data to be backed up The process of first storage region such as determines storage region by account area maps set of relationship, is mapped and closed by equipment region Assembly is closed to obtain device identification etc., and which is not described herein again.
It is optionally the resource for saving server, is judging second data to be backed up and the first data phase to be backed up Meanwhile the present embodiment does not back up the second data to be backed up;For example, deleting the second data to be backed up.
Optionally, in order to improve the data synchronization efficiency of equipment room, the present embodiment can also initiate synchronize to ask in main equipment When asking, distinguishes data is only sent to main equipment to realize that data are synchronous;Namely " distinguishes data is backed up into the mesh in step Mark the second storage region corresponding with the slave under backup account " after, which can also include:
Receive the data synchronization request that main equipment is sent;
The distinguishes data in second storage region is synchronized to the main equipment according to the data synchronization request.
Wherein, which can carry the device identification of main equipment, at this point it is possible to according to device identification from from Belong in corresponding second storage region of equipment and extract distinguishes data, then, is sent to main equipment.
Optionally, be based on the present embodiment data back up method, when obtaining slave data (such as other equipment acquisition from When belonging to 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 further include:
Data acquisition request is received, which indicates slave (the equipment mark as carried slave Know);
The distinguishes data is extracted from second storage region according to the data acquisition request and from first memory block Data are extracted in domain;
According to the distinguishes data and the data acquisition target data extracted from the first storage region.
For example, then the data acquisition request that the equipment that can receive other users is initiated is deposited according to the request from second Extract distinguishes data in storage area domain and extract Backup Data from the first storage region, finally, according to the distinguishes data and The data extracted 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 first data and target backup account to be backed up that the embodiment of the present invention is sent using main equipment is received Number, and by the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account, then, Receive the second data to be backed up and the target backup account that slave is sent, obtain second data to be backed up with this Distinguishes data between one data to be backed up backs up to the distinguishes data corresponding with the slave under the target backup account The second storage region.Slave is only backed up not identical as the data to be backed up of main equipment in Backup Data in the program Distinguishes data for the prior art, the efficiency of data backup can be improved without carrying out full backup.
In addition, the embodiment of the present invention is also by memory block different under the data backup of distinct device to same backup account It domain, can be with by the data backup of slave to the second storage region such as by the data backup of main equipment to the first storage region Avoid Backup Data between distinct device occur problem that is chaotic or can not being compatible with (available data backup by distinct device it Between Backup Data back up to same storage region and will lead to the data of equipment room chaotic and data occur can not be compatible with), mention It has risen the compatibility of Backup Data and has facilitated the management of Backup Data.
Embodiment two,
It is further described on the basis of the method that the present embodiment will be provided in embodiment one.
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 backup.
With reference to Fig. 3, a kind of data back up method, detailed process is as follows:
201, main equipment sends the first data backup requests to server, which carries first to standby The device identification and target backup account of part data, main equipment.
Specifically, main equipment can receive backup instruction, to be backed up to server transmission carrying first according to backup instruction First data backup requests of data and target backup account.
Wherein, backup instruction can be triggered by some event, such as the automatic trigger that can be changed by data, specifically Transmission backup instruction is then triggered, is counted at this time when detecting that some data (such as data of some specified backup) changes in ground The backup instruction can be received according to back-up device.For example, when the short message data for detecting specified backup occur When variation (increase, delete or change), then issues triggering and send backup instruction.The backup instruction can be touched automatically by system Hair, for example, sending backup instruction every preset duration automatic trigger.
In addition, the backup instruction can also be carried out by presetting the triggering interface such as triggering key or input frame in triggering terminal Triggering, for example, when the user clicks or when streaking some backup icon on backup interface, then triggering the generation backup instruction, at this time Data backup device can receive the backup instruction.
First data to be backed up are the data for needing to back up on main equipment, such as the short message number for needing to back up on main equipment According to, picture data etc..
202, server based on data backup request by under first data backup to be backed up to target backup account with should Corresponding first storage region of main equipment.
Specifically, server can determine the corresponding storage region of target backup account, obtain target storage domain set, 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 set of the target storage domain First storage region.
Distinct device can correspond to different storage regions under same backup account in the present embodiment, therefore, standby in data Before part, server can establish different storage regions for distinct device under backup account respectively, e.g., create main equipment pair The first storage region answered, corresponding second storage region of creation slave.
203, slave to server send the second data backup requests, second data backup requests carry second to The device identification and the target backup account of Backup Data, slave.
Specifically, slave can receive backup instruction, is sent according to backup instruction to server and carries second to standby Number is accordingly and the second data backup requests of target backup account.
First data to be backed up are the data for needing to back up on slave, such as the short message for needing to back up on slave Data, picture data etc..
In the present embodiment, slave is different equipment from main equipment, for example, can set for the difference of same user Standby or different user distinct device.
First data to be backed up and the second data to be backed up can be the data of same type, such as can be same backup The data of object.
204, server judges whether the second data to be backed up and the first data to be backed up are identical, if it is not, thening follow the steps 205, if so, thening follow the steps 207.
Wherein, judge there are many second data to be backed up and the whether identical modes of the first data to be backed up, for example, It can be obtained in such a way that data compare.In some other implementations, in order to improve backup rate, can by The data type (such as dividing data type according to the affiliated backup object of data) of Backup Data judges whether data are identical.
For example, when the first data to be backed up are short message class data, when the second data to be backed up are photo class data, Ke Yizhi It connects and judges that the two data to be backed up are not identical, for another example, when the first data to be backed up are short message class data, the second number to be backed up When according to for short message class data, further two short message type data can be compared judge the two data whether phase Together.
205, server obtains the distinguishes data between second data to be backed up and first data to be backed up.
206, 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 It closes;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 and the target device logo collection for belonging to equipment determine that the slave is corresponding from the set of the target storage domain The second storage region;It will be in second data backup to be backed up to second storage region.
For example, creation has corresponding 5 storage regions of 5 equipment, the corresponding storage of main equipment I under target backup account p Region 1, the corresponding storage region 2 of slave a, the corresponding storage region 3 of slave b, the corresponding memory block slave c Domain 4, the corresponding storage region 5 of slave d.In backup, server determines corresponding memory block according to target backup account p Domain 1,2,3,4,5;It is then possible to obtain the mark I of the corresponding main equipment of storage region 1, the corresponding subordinate of storage region 2 is obtained The mark a ... of equipment obtains the mark d of the corresponding slave of storage region 5, if the device identification that request carries is I When, at this point it is possible to determine the corresponding storage region 1 of main equipment I according to I.
207, server deletes the second data to be backed up.
It optionally, is the data synchronization efficiency for improving equipment room, the present embodiment method after step 206, can also wrap It includes:
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.
Optionally, in order to improve the safety of Backup Data, the present embodiment method after step 206, can also include:
Server receives data acquisition request, and data acquisition request instruction slave is (as carried setting for slave Standby mark);
Server extracted from second storage region according to the data acquisition request distinguishes data and from this first Data are extracted in storage region;
Server, and should according to the distinguishes data and the data acquisition target data extracted from the first storage region Target data is sent to data acquisition request initiating equipment.
From the foregoing, it will be observed that server of the embodiment of the present invention receives the main equipment is sent first data and target backup to be backed up Account, and by the first storage region corresponding with the main equipment under first data backup to be backed up to target backup account, so Afterwards, receive slave send the second data to be backed up and the target backup account, obtain second data to be backed up and Distinguishes data between first data to be backed up, by the distinguishes data back up under the target backup account with the slave Corresponding second storage region.Slave is only backed up in Backup Data with the data to be backed up of main equipment not in the program For the prior art, the effect of data backup can be improved without carrying out full backup in identical distinguishes data Rate.
In addition, 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 problem that is chaotic or can not being compatible with occur (available data backup will not With the Backup Data between equipment back up to same storage region will lead to equipment room data chaotic and data occur can not It is compatible), it improves the compatibility of Backup Data and facilitates the management of Backup Data.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of data backup device 30, such as Fig. 4 institute Show, which 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 the first data and target backup account to be backed up 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 the second data to be backed up and the target backup account of slave transmission;
Acquiring unit 303 is distinguished, 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 the target backup account with the slave pair The second storage region answered.
Specifically, the first backup units 301 may include: data receiver subelement and backup subelement;
The data receiver subelement, for receiving the first data and target backup account to be backed up of main equipment transmission
The backup subelement, is specifically used for:
It determines the corresponding storage region of target backup account, obtains target storage domain set;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to the device identification of the main equipment and the target device logo collection, determined from the set of the target storage domain Corresponding first storage region of the main equipment;
It will be in first data backup to be backed up to first storage region.
Wherein, difference acquiring unit 303 may include that judgment sub-unit and difference obtain subelement;
The judgment sub-unit 3031, for judging whether second data to be backed up and first data to be backed up are identical;
The difference obtain subelement 3032, for judgment sub-unit 3031 judge the second data to be backed up with this first to When Backup Data is not identical, the distinguishes data between second data to be backed up and first data to be backed up is obtained.
Optionally, with reference to Fig. 5, in order to save server resource, the present embodiment data backup device can also include: to 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 it is identical when, delete second data to be backed up.
Optionally, 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;
Synchronization unit 307, for being synchronized to the distinguishes data in second storage region according to the data synchronization request The main equipment.
Optionally, in order to improve the safeties of data, with reference to Fig. 7, the present embodiment data backup device can also include:
Second request reception unit 308, acquisition request, the data acquisition request indicate slave for receiving data;
Data extracting unit 309, for extracting the difference number from second storage region according to the data acquisition request According to and from extracting data in first storage region;
Data capture unit 310, for according to the distinguishes data and the data acquisition extracted from the first storage region Target data.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The data backup device specifically can integrate in server, such as in the equipment such as cloud server.
In addition, can refer to standby system shown in FIG. 1 the embodiment of the invention also provides a kind of data backup system, wrap Include server, main equipment and slave;The server includes any data back-up device that embodiment as above provides, the master Equipment and slave can be terminal, such as mobile phone, tablet computer.
The embodiment of the present invention receives the first data and target to be backed up that main equipment is sent using the first backup units 301 Backup account, and by the first memory block corresponding with the main equipment under first data backup to be backed up to target backup account Then domain receives the second data to be backed up and the target backup account that slave is sent 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 member 304.The program Middle slave is only backed up the different distinguishes data of data to be backed up with main equipment in Backup Data, complete without carrying out Amount backup, for the prior art, can be improved the efficiency of data backup.
In addition, the embodiment of the present invention is also by memory block different under the data backup of distinct device to same backup account It domain, can be with by the data backup of slave to the second storage region such as by the data backup of main equipment to the first storage region Avoid Backup Data between distinct device occur problem that is chaotic or can not being compatible with (available data backup by distinct device it Between Backup Data back up to same storage region and will lead to the data of equipment room chaotic and data occur can not be compatible with), mention It has risen the compatibility of Backup Data and has facilitated the management of Backup Data.
Example IV,
A kind of server is present embodiments provided, wherein can integrate data backup device described in embodiment three, is referred to Fig. 8, it illustrates the structural schematic diagrams of server involved in the embodiment of the present invention, specifically:
The server 400 may include one or more than one processing core processor 401, one or more The memory 402 of computer readable storage medium, radio frequency (Radio Frequency, RF) circuit 403, power supply 404, input are single First 405 and display unit 406 etc. components.It will be understood by those skilled in the art that server architecture shown in Fig. 8 is not The restriction to server is constituted, may include perhaps combining certain components or different than illustrating more or fewer components Component layout.Wherein:
Processor 401 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 402, and calls and is stored in memory Data in 402, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate Managing device 401 may include one or more processing cores;Preferably, processor 401 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 401.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Software program and module, thereby executing various function application and data processing.
During RF circuit 403 can be used for receiving and sending messages, signal is sended and received, and particularly, the downlink of base station is believed After breath receives, one or the processing of more than one processor 401 are transferred to;In addition, the data for being related to uplink are sent to base station.
Server further includes the power supply 404 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 401 are logically contiguous, 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 source, recharging system, power failure The random components such as detection circuit, power adapter or inverter, power supply status indicator.
The server may also include input unit 405, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated Enter.
The server may also include display unit 406, the display unit 406 can be used for showing information input by user 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 any combination thereof are constituted.Display unit 408 may include display panel, optionally, can use liquid crystal display Device (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting ) etc. Diode forms configure display panel.
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 into memory 402, and run and be stored in by processor 401 Application program in reservoir 402, thus realize various functions, it is as follows:
The first data and target backup account to be backed up that main equipment is sent is received, and first data to be backed up are standby Part to the first storage region corresponding with the main equipment under target backup account, then, receive the second of slave transmission to Backup Data and the 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 the target backup account.
The processor 401 is also used to realize following functions: in the case where the distinguishes data to be backed up to the target backup account with After corresponding second storage region of the slave, the data synchronization request that main equipment is sent is received;Main equipment is received to send Data synchronization request.
The processor 401 is also used to realize following functions: in the case where the distinguishes data to be backed up to the target backup account with After corresponding second storage region of the slave, data acquisition request is received, which indicates slave; According to the data acquisition request from extracting the distinguishes data in second storage region and extracted from first storage region Data;According to the distinguishes data and the data acquisition target data extracted from the first storage region.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Be provided for the embodiments of the invention a kind of data back up method above, apparatus and system is described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (11)

1. a kind of data back up method characterized by comprising
The first data and target backup account to be backed up that main equipment is sent is received, and by the described first data backup to be backed up The first storage region corresponding with the main equipment under to target backup account;
Receive the second data to be backed up and the target backup account that slave is sent;
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 into the second storage region corresponding with the slave under the target backup account.
2. data back up method as described in claim 1, which is characterized in that it is 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, comprising:
It determines the corresponding storage region of the target backup account, obtains target storage domain set;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to the device identification of the main equipment and the target device logo collection, from the set of the target storage domain really Determine corresponding first storage region of the main equipment;
It will be in the described first data backup to be backed up to first storage region.
3. data back up method as described in claim 1, which is characterized in that described to obtain second data to be backed up and institute State the distinguishes data between the first data to be backed up, comprising:
Judge whether the described second data to be backed up and the described first data to be backed up are identical;
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 further include: when the described second data to be backed up are identical as the described first data to be backed up, then Delete the described second data to be backed up.
4. data back up method as described in claim 1, which is characterized 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 further include:
Receive the data synchronization request that main equipment is sent;
The distinguishes data in second storage region is synchronized to the main equipment according to the data synchronization request.
5. data back up method as described in claim 1, which is characterized 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 further include:
Data acquisition request is received, 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 Storage area extracts data in domain;
According to the distinguishes data and the data acquisition target data extracted from the first storage region.
6. a kind of data backup device characterized by comprising
First backup units, for receiving the first data and target backup account to be backed up of main equipment transmission, and will be described The first storage region corresponding with the main equipment under first data backup to be backed up to target backup account;
Receiving unit, for receiving the second data to be backed up and the target backup account of slave transmission;
Acquiring unit is distinguished, 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, it is 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, which is characterized in that first backup units, including data receiver Subelement and backup subelement;
The data receiver subelement, for receiving the first data and target backup account to be backed up of main equipment transmission
The backup subelement, is specifically used for:
It determines the corresponding storage region of the target backup account, obtains target storage domain set;
The corresponding device identification of storage region in the set of target storage domain is obtained, target device logo collection is obtained;
According to the device identification of the main equipment and the target device logo collection, from the set of the target storage domain really Determine corresponding first storage region of the main equipment;
It will be in the described first data backup to be backed up to first storage region.
8. data backup device as claimed in claim 6, which is characterized in that the difference acquiring unit includes: that judgement is single Member and difference obtain subelement;The data backup device further include: delete unit;
The judgment sub-unit, for judging whether the described second data to be backed up and the described first data to be backed up are identical;
The difference obtains subelement, for judging the second data to be backed up and the described first data to be backed up in judgment sub-unit When not identical, the distinguishes data between second data to be backed up and first data to be backed up is obtained;
The deletion unit, for judging that the second data to be backed up are identical as the described first data to be backed up in judgment sub-unit When, delete second data to be backed up.
9. data backup device as claimed in claim 6, which is characterized in that further include:
First request reception unit, for receiving the data synchronization request of main equipment transmission;
Synchronization unit, it is described for being synchronized to the distinguishes data in second storage region according to the data synchronization request Main equipment.
10. data backup device as claimed in claim 6, which is characterized in that further include:
Second request reception unit, acquisition request, the data acquisition request indicate slave for receiving data;
Data extracting unit, for extracting the difference number from second storage region according to the data acquisition request According to and from extracting data in first storage region;
Data capture unit, for according to the distinguishes data and the data acquisition number of targets extracted from the first storage region According to.
11. a kind of data backup system, which is characterized in that including server, main equipment and slave;Wherein, the clothes Device be engaged in including such as the described in any item data backup devices of claim 6-10.
CN201610956874.3A 2016-10-25 2016-10-25 A kind of data back up method, apparatus and system Active CN106502840B (en)

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 CN106502840A (en) 2017-03-15
CN106502840B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108446188B (en) * 2018-03-12 2020-10-16 维沃移动通信有限公司 Data backup 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
CN114095951B (en) * 2020-08-24 2023-09-05 中国移动通信集团终端有限公司 Data transmission method, device and system and computer storage medium
CN114764377A (en) * 2020-12-30 2022-07-19 花瓣云科技有限公司 Data backup method, electronic equipment, data backup system and chip system
CN112631839A (en) * 2020-12-31 2021-04-09 中国农业银行股份有限公司 Method, device and equipment for realizing data backup

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100762629B1 (en) * 2003-08-26 2007-10-01 삼성전자주식회사 Method for processing back-up service of mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106502840A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502840B (en) A kind of data back up method, apparatus and system
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
US10635449B2 (en) Method and apparatus for running game client
CN106357811B (en) A kind of delet method of Backup Data, apparatus and system
US11659098B2 (en) Information reminding method and apparatus, and electronic terminal
US10455542B2 (en) Method of synchronizing notification messages for electronic devices and electronic devices
CN106550030B (en) A kind of data sharing method, apparatus and system
CN106534281B (en) A kind of response method of request of data, apparatus and system
EP3142304B1 (en) Synchronization method for notification message of electronic device, server and electronic device
TW201805801A (en) Method and device for displaying application information
CN105245701A (en) Data protection system and data protection method for mobile terminal
CN105162762A (en) Network isolation method, device and system
CN103780428A (en) Centralized resource management method and system applied to cloud architecture
CN106656985B (en) Backup account login method, device and system
CN107086937B (en) Monitoring method and device
WO2017181679A1 (en) Method for configuring working sim card of communication terminal, and communication terminal
CN101770378A (en) Method for configuring computer by BIOS (Basic Input/Output System), server and computer
CN113312311A (en) Method and device for processing name space
CN109343944B (en) Data processing method and device for eSIM card, terminal and storage medium
TW201633240A (en) Methods and devices for processing information card
CN106528333A (en) Data backup method and apparatus
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
CN110110004B (en) Data operation method, device and storage medium
CN103067365A (en) Set top box, client-side, system and method for virtual desktop access
CN106528337B (en) Data backup method, device and system

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant