CN105354110A - Cloud server data backup method and apparatus - Google Patents
Cloud server data backup method and apparatus Download PDFInfo
- Publication number
- CN105354110A CN105354110A CN201510703243.6A CN201510703243A CN105354110A CN 105354110 A CN105354110 A CN 105354110A CN 201510703243 A CN201510703243 A CN 201510703243A CN 105354110 A CN105354110 A CN 105354110A
- Authority
- CN
- China
- Prior art keywords
- cloud server
- backup
- data
- idle
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
Abstract
The present invention is applicable to the technical field of data backup, and provides a cloud server data backup method and apparatus. The method comprises: counting probability distribution of cloud server idle time periods in a day, and determining a plurality of time points with a maximum loud server idle probability; sending a query instruction to the cloud server at each time point; after receiving an idle confirmation instruction fed back by the cloud server, obtaining an increment file at a current time point from an end time of the previous backup; and sending the increment file to a backup server for storage. According to the method and apparatus disclosed by the present invention, an increment file backup operation is carried out during an idle time by the cloud server. Compared with regular backup, the method uses the cloud server to carry out increment file backup without influences on cloud server running, so that backup efficiency is improved.
Description
Technical field
The invention belongs to technical field of data backup, particularly relate to a kind of Cloud Server data back up method and device.
Background technology
Data backup has multiple implementation, and data backup is for anti-locking system occurs that misoperation or the system failure cause loss of data, and all or part of data acquisition is copied to the process of other storage medium from the hard disk of applied host machine or array.Current data backup generally adopts timed backup scheme, namely every Preset Time point just carries out timing data backup, such as by the regular data backup of Cloud Server to backup server, but this does not consider the duty of Cloud Server, even if Cloud Server is in work, arrived BACKUP TIME point, Cloud Server also will stop work at present, carries out data backup operation.This can have influence on the work of Cloud Server, and backup efficiency is not high yet.
Summary of the invention
In view of the above problems, the object of the present invention is to provide one, being intended to solve existing backup operation needs to carry out interrupt processing to Cloud Server, affects the work of Cloud Server and backs up inefficient technical matters.
On the one hand, described Cloud Server data back up method comprises the steps:
Statistics Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server;
At each described time point, send query statement to Cloud Server;
After the free time receiving Cloud Server feedback confirms instruction, obtained the delta file of current point in time apart from a upper Backup end moment;
Described delta file is sent to backup server to preserve.
On the other hand, described Cloud Server data backup device comprises:
Time point acquisition module, for add up Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server;
Instruction sending module, at each described time point, sends query statement to Cloud Server;
Data acquisition module, after confirming instruction when the free time receiving Cloud Server feedback, obtained the delta file of current point in time apart from a upper Backup end moment;
Data transmission blocks, preserves for described delta file being sent to backup server.
The invention has the beneficial effects as follows: the present invention passes through probability analysis, obtain the free time segment information of Cloud Server, then several time periods that select probability is maximum, and at this moment between send query statement to Cloud Server in section, confirm that whether Cloud Server is busy, if Cloud Server is idle, then can feed back idle confirmation instruction, now Cloud Server starts to carry out delta file backup operation; Whole process does not affect Cloud Server operation, only just carries out incremental backup operations when Cloud Server is idle, but also improves backup efficiency.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the Cloud Server data back up method that first embodiment of the invention provides;
Fig. 2 is the particular flow sheet of step S101 in Fig. 1;
Fig. 3 be Cloud Server free time section probability distribution statistical schematic diagram;
Fig. 4 is the block diagram of the Cloud Server data backup device that second embodiment of the invention provides;
Fig. 5 is the block diagram of time point acquisition module.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
embodiment one:
Fig. 1 shows the flow process of the Cloud Server data back up method that the embodiment of the present invention provides, and illustrate only the part relevant to the embodiment of the present invention for convenience of explanation.
As shown in Figure 1, the Cloud Server data back up method that the present embodiment provides comprises the steps:
Step S101, statistics Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server.
Cloud Server generally can not a whole day non-stop run, and just can work when receiving upstream server uploading data, therefore Cloud Server exists certain free time section, and each free time section probability distribution different.In this step, with one day for time shaft, need add up Cloud Server in one day free time section probability distribution, then several free time section of maximum probability is found, and the time point chosen in space time section, these time points are several time points of the idle maximum probability of Cloud Server.
Step S102, at each described time point, to Cloud Server send query statement;
Step S103, to confirm after instruction when the free time receiving Cloud Server feedback, obtained the delta file of current point in time apart from a upper Backup end moment;
Step S104, described delta file is sent to backup server and preserves.
During every described time point, send query statement to cloud service, if Cloud Server is busy, then not feedback information, if Cloud Server is idle, then shows that now Cloud Server can complete backup operation, now Cloud Server feedback idle confirmation instruction.Then current point in time is sent to backup server preservation apart from the delta file in last Backup end moment by Cloud Server.
In the present embodiment, first add up Cloud Server free time section probability distribution, when putting at one's leisure, the very large probability of Cloud Server is in idle condition, if Cloud Server does, then wait until the state of next free time point inquiry Cloud Server, until to certain some free time, Cloud Server is idle, now can complete delta file backup operation.Compared to timed backup, this method can not affect the work of Cloud Server, utilizes the free time of Cloud Server to carry out delta file backup, improves backup efficiency.
Step S105, free time according to Cloud Server on the same day, upgrade Cloud Server free time section probability distribution.
This step is preferred steps, often crosses after one day, all needs the free time section obtaining the same day, then upgrade Cloud Server free time section probability distribution.Because every day Cloud Server free time section may be different, by adding up the free time section of every day, can improve further Cloud Server free time section probability distribution, make Cloud Server free time section closer to theoretical value.
For above-mentioned steps S101, as a kind of specific implementation, as shown in Figure 2, comprising:
The history operational data of step S201, acquisition Cloud Server, obtains the free time section of Cloud Server every day;
Step S202, in units of sky, be divided into multiple chronomere by one day, add up the idle number of times of Cloud Server in each chronomere on a timeline;
Step S203, several chronomeres that the idle number of times selecting statistics to obtain is maximum, and several time points using the center time point of chronomere as the idle maximum probability of described Cloud Server.
When adding up the probability distribution of free time section, first the history operational data according to Cloud Server is needed, obtain the free time section of the every day of Cloud Server, the time limit of described history operational data is not limit, such as can adopt the data of a year and a day, then with the unit in sky, be divided into multiple chronomere by one day, such as 10 minutes is a chronomere, adds up the idle number of times of Cloud Server in each chronomere on a timeline, with reference to the Cloud Server shown in Fig. 3 free time section probability distribution statistical schematic diagram, for history data statistics in 1 year in figure, always have 365 days, day1-day365 respectively in corresponding diagram, on a timeline, it within every 10 minutes, is a chronomere, always have 144 chronomeres, in figure, the time interval of every bar dotted line is a chronomere, and thick line segment table is shown in the free time section of Cloud Server in figure, then the idle number of times of Cloud Server in each chronomere is added up, only have Cloud Server in this chronomere once to add up for idle condition just counts always.
After having added up, select several chronomeres (such as 10) that statistics number is maximum, then choose center time point several time points as the idle maximum probability of Cloud Server of each chronomere.
In above-mentioned steps S104, when carrying out, in the process backed up, likely there will be the situation that Cloud Server needs work at transmission delta file, if receive the interrupt instruction of Cloud Server transmission in this process, then interrupting backup operation and returning.During specific implementation, first in transmission delta file process, after often sending a certain size data, send one and indicate position, and deletion sends a upper sign position and this sends the data indicated between position; After receiving interrupt instruction, send interrupt request to backup server; Described backup server deletes the data after the sign position finally received, to ensure the data syn-chronization between Cloud Server and backup server.And in existing redundancy technique scheme, when generally occurring interrupting in backup procedure, need whole packet to resend once, compare and lose time and resource; Or the data between Cloud Server and backup server are carried out comparison repeatedly, determines the position sending data before interrupting, then continue to send, implementation procedure also compares hello prolixity, also easily occurs identical data segment, judges that interruption position may be made mistakes.
embodiment two:
Fig. 4 shows the structure of the Cloud Server data backup device that the embodiment of the present invention provides, and illustrate only the part relevant to the embodiment of the present invention for convenience of explanation.
The Cloud Server data backup device that the present embodiment provides, comprising:
Time point acquisition module 41, for add up Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server;
Instruction sending module 42, at each described time point, sends query statement to Cloud Server;
Data acquisition module 43, after confirming instruction when the free time receiving Cloud Server feedback, obtained the delta file of current point in time apart from a upper Backup end moment;
Data transmission blocks 44, preserves for described delta file being sent to backup server.
Time update module 45, for the free time according to Cloud Server on the same day, upgrade Cloud Server free time section probability distribution.
Above-mentioned each functional module 41-45 correspondence achieves the step S101-S105 in embodiment one, concrete, time point acquisition module 41 add up Cloud Server free time section probability distribution, and determine several time points of the idle maximum probability of Cloud Server; Instruction sending module 42, at each described time point, sends query statement to Cloud Server; After the free time receiving Cloud Server feedback confirms instruction, data acquisition module 43 obtained the delta file of current point in time apart from a upper Backup end moment; Described delta file is sent to backup server and preserves by data transmission blocks 44.After the time has pass, if time update module 45 is according to the free time of Cloud Server on the same day, upgrade Cloud Server free time section probability distribution.
As shown in Figure 5, described time point acquisition module 41 comprises:
Time period acquiring unit 411, for obtaining the history operational data of Cloud Server, obtains the free time section of Cloud Server every day;
Number of times statistic unit 412, in units of sky, was divided into multiple chronomere by one day, added up the idle number of times of Cloud Server in each chronomere on a timeline;
Time point statistic unit 413, for selecting to add up several maximum chronomeres of the idle number of times that obtains, and several time points using the center time point of chronomere as the idle maximum probability of described Cloud Server.
Preferably, this device also comprises interrupt module, and in the process sending delta file, likely Cloud Server has new task, if interrupt module receives interrupt instruction, interrupts sending and returning.
During specific implementation, described interrupt module comprises:
Indexing unit, in transmission delta file process, after often sending a certain size data, sends one and indicates position, and deletion sends a upper sign position and this sends the data indicated between position;
Interrupt request unit, for after receiving interrupt instruction, sends interrupt request to backup server.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. a Cloud Server data back up method, is characterized in that, described method comprises:
Statistics Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server;
At each described time point, send query statement to Cloud Server;
After the free time receiving Cloud Server feedback confirms instruction, obtained the delta file of current point in time apart from a upper Backup end moment;
Described delta file is sent to backup server to preserve.
2. method as claimed in claim 1, is characterized in that, is describedly sent to by described delta file after backup server preserves step, also comprises:
According to the free time of Cloud Server on the same day, upgrade Cloud Server free time section probability distribution.
3. method as claimed in claim 1 or 2, is characterized in that, described statistics Cloud Server in one day free time section probability distribution, determine several time point steps of the idle maximum probability of Cloud Server, specifically comprise:
Obtain the history operational data of Cloud Server, obtain the free time section of Cloud Server every day;
In units of sky, be divided into multiple chronomere by one day, add up the idle number of times of Cloud Server in each chronomere on a timeline;
Several chronomeres that the idle number of times selecting statistics to obtain is maximum, and several time points using the center time point of chronomere as the idle maximum probability of described Cloud Server.
4. method as claimed in claim 1, it is characterized in that, described method also comprises:
In the process sending delta file, if the interrupt instruction of receiving, then interrupt sending and returning.
5. method as claimed in claim 4, in the described process sending delta file, if the interrupt instruction of receiving, then interrupt sending and returning step, specifically comprise:
In transmission delta file process, after often sending a certain size data, send one and indicate position, and deletion sends a upper sign position and this sends the data indicated between position;
After receiving interrupt instruction, send interrupt request to backup server;
Described backup server deletes the data after the sign position finally received.
6. a Cloud Server data backup device, is characterized in that, described device comprises:
Time point acquisition module, for add up Cloud Server in one day free time section probability distribution, determine several time points of the idle maximum probability of Cloud Server;
Instruction sending module, at each described time point, sends query statement to Cloud Server;
Data acquisition module, after confirming instruction when the free time receiving Cloud Server feedback, obtained the delta file of current point in time apart from a upper Backup end moment;
Data transmission blocks, preserves for described delta file being sent to backup server.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Time update module, for the free time according to Cloud Server on the same day, upgrade Cloud Server free time section probability distribution.
8. device as claimed in claims 6 or 7, it is characterized in that, described time point acquisition module comprises:
Time period acquiring unit, for obtaining the history operational data of Cloud Server, obtains the free time section of Cloud Server every day;
Number of times statistic unit, in units of sky, was divided into multiple chronomere by one day, added up the idle number of times of Cloud Server in each chronomere on a timeline;
Time point statistic unit, for selecting to add up several maximum chronomeres of the idle number of times that obtains, and several time points using the center time point of chronomere as the idle maximum probability of described Cloud Server.
9. device as claimed in claim 6, it is characterized in that, described device also comprises:
Interrupt module, in the process sending delta file, if the interrupt instruction of receiving, then interrupts sending and returning.
10. device as claimed in claim 9, it is characterized in that, described interrupt module comprises:
Indexing unit, in transmission delta file process, after often sending a certain size data, sends one and indicates position, and deletion sends a upper sign position and this sends the data indicated between position;
Interrupt request unit, for after receiving interrupt instruction, sends interrupt request to backup server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510703243.6A CN105354110B (en) | 2015-10-26 | 2015-10-26 | Cloud Server data back up method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510703243.6A CN105354110B (en) | 2015-10-26 | 2015-10-26 | Cloud Server data back up method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354110A true CN105354110A (en) | 2016-02-24 |
CN105354110B CN105354110B (en) | 2018-05-18 |
Family
ID=55330084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510703243.6A Active CN105354110B (en) | 2015-10-26 | 2015-10-26 | Cloud Server data back up method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354110B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471846A (en) * | 2019-07-23 | 2019-11-19 | 平安科技(深圳)有限公司 | Test data processing method, device and computer equipment based on automation platform |
CN110502370A (en) * | 2019-08-21 | 2019-11-26 | 无锡华云数据技术服务有限公司 | A kind of method of automatic cleaning backup object |
CN113535483A (en) * | 2021-09-15 | 2021-10-22 | 统信软件技术有限公司 | File backup method and device and computing equipment |
CN115952959A (en) * | 2022-05-05 | 2023-04-11 | 北京小米移动软件有限公司 | Material distribution method and device and production line control system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788938A (en) * | 2010-03-26 | 2010-07-28 | 北京邮电大学 | Data backup method based on user storing actions |
CN102164302A (en) * | 2011-03-11 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Presenting server and data operation method thereof |
WO2012093193A1 (en) * | 2011-01-07 | 2012-07-12 | Nokia Corporation | Method and apparatus for statistical handling of connections |
CN102629207A (en) * | 2012-03-05 | 2012-08-08 | 浪潮集团山东通用软件有限公司 | Method for running instance time-sharing update under multi-tenant condition |
CN103853918A (en) * | 2014-02-21 | 2014-06-11 | 南京邮电大学 | Cloud computing server dispatching method based on idle time prediction |
-
2015
- 2015-10-26 CN CN201510703243.6A patent/CN105354110B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101788938A (en) * | 2010-03-26 | 2010-07-28 | 北京邮电大学 | Data backup method based on user storing actions |
WO2012093193A1 (en) * | 2011-01-07 | 2012-07-12 | Nokia Corporation | Method and apparatus for statistical handling of connections |
CN102164302A (en) * | 2011-03-11 | 2011-08-24 | 青岛海信传媒网络技术有限公司 | Presenting server and data operation method thereof |
CN102629207A (en) * | 2012-03-05 | 2012-08-08 | 浪潮集团山东通用软件有限公司 | Method for running instance time-sharing update under multi-tenant condition |
CN103853918A (en) * | 2014-02-21 | 2014-06-11 | 南京邮电大学 | Cloud computing server dispatching method based on idle time prediction |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471846A (en) * | 2019-07-23 | 2019-11-19 | 平安科技(深圳)有限公司 | Test data processing method, device and computer equipment based on automation platform |
CN110502370A (en) * | 2019-08-21 | 2019-11-26 | 无锡华云数据技术服务有限公司 | A kind of method of automatic cleaning backup object |
CN113535483A (en) * | 2021-09-15 | 2021-10-22 | 统信软件技术有限公司 | File backup method and device and computing equipment |
CN115952959A (en) * | 2022-05-05 | 2023-04-11 | 北京小米移动软件有限公司 | Material distribution method and device and production line control system |
CN115952959B (en) * | 2022-05-05 | 2024-02-23 | 北京小米移动软件有限公司 | Material distribution method and device and production line control system |
Also Published As
Publication number | Publication date |
---|---|
CN105354110B (en) | 2018-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106550003B (en) | Load balancing control method, device and system | |
EP3386150B1 (en) | Terminal failure processing method, device and system | |
TWI669620B (en) | Database switching method, server, storage medium, electronic device and product | |
CN105354110A (en) | Cloud server data backup method and apparatus | |
CN102546135B (en) | Active/standby server switched system and method | |
US10740198B2 (en) | Parallel partial repair of storage | |
CN104092718A (en) | Distributed system and configuration information updating method in distributed system | |
CN104301136A (en) | Method and equipment for reporting and processing fault information | |
WO2014166265A1 (en) | Method, terminal, cache server and system for updating webpage data | |
CN105760240A (en) | Distributed task processing method and device | |
CN111258815B (en) | Data backup method and device suitable for hash-based multi-node backup system | |
CN103971687A (en) | Method and device for realizing load balance of voice recognition system | |
CN104317676A (en) | Data backup disaster tolerance method | |
CN105260238A (en) | Multi-process performance improvement deployment method | |
CN104516796A (en) | Command set based network element backup and recovery method and device | |
CN103678051A (en) | On-line fault tolerance method in cluster data processing system | |
CN1866961A (en) | Client system and service system data synchronizing method and system | |
CN112422684A (en) | Target message processing method and device, storage medium and electronic device | |
CN103248522B (en) | A kind of report method of performance data and device | |
CN103297477B (en) | A kind of data acquisition reporting system and data processing method and proxy server | |
CN101561795A (en) | Method and device for synchronizing data in distribution-type system | |
CN110620798A (en) | Control method, system, equipment and storage medium for FTP connection | |
CN105471654A (en) | FC network based configuration data automatic uploading method | |
CN112363838A (en) | Data processing method and device, storage medium and electronic device | |
CN105373549A (en) | Data migration method and device and data node server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |