CN102841823A - Data backup system and method - Google Patents
Data backup system and method Download PDFInfo
- Publication number
- CN102841823A CN102841823A CN2011101715667A CN201110171566A CN102841823A CN 102841823 A CN102841823 A CN 102841823A CN 2011101715667 A CN2011101715667 A CN 2011101715667A CN 201110171566 A CN201110171566 A CN 201110171566A CN 102841823 A CN102841823 A CN 102841823A
- Authority
- CN
- China
- Prior art keywords
- file
- backup
- data
- server
- date
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a data backup system which comprises a generation module, a backup module and an updating module, wherein the generation module is used for generating a backup file corresponding to a backup time according to data needing backup when the system time of a server reaches the backup time set by a user; the backup module is used for generating a folder named with the current date as a rotation date when a folder named with the current data as the rotation date does not exist in the server, and the backup file is stored in the generated folder; and the updating module is used for overwriting the file with the same name as the name of the backup file in the folder by using the backup file when the folder named with the current date as the rotation date exists in the server. The invention also provides a data backup method. By adopting the invention, mass of data can be subjected to backup.
Description
Technical field
The present invention relates to a kind of data management system and method, relate in particular to a kind of data backup system and method.
Background technology
Business data is very huge, and the data of database backup is extremely important.For real record that the data of enterprise database are made comparisons, application layer database full backup and historical preservation become Database Engineer's first-selected backup method, but this method can produce a large amount of unnecessary data repeated storage.
Summary of the invention
In view of above content, be necessary to provide a kind of data backup system, can effectively take turns and change backup mass data.
Also be necessary to provide a kind of data back up method, can effectively take turns and change backup mass data.
A kind of data backup system, this system comprises: generation module, be used for when the system time of server arrives the BACKUP TIME of user's setting, backed up data generates the backup file corresponding with this BACKUP TIME as required; Backup module, being used for when server did not exist with the same day is when taking turns the file that changes the date name, generating one was the file of naming on the wheel commentaries on classics date with the same day, and said backup file is stored in the file of this generation; Reach update module, being used for when server existed with the same day is when taking turns the file that changes the date name, utilizes said backup file to cover in the said file and names identical file with this backup file.
A kind of data back up method, this method comprises: generate step, when the system time of server arrived the BACKUP TIME of user's setting, backed up data generated the backup file corresponding with BACKUP TIME as required; Backup-step is when taking turns the file that changes the date name when not existing with the same day in the server, and generating one was the file of naming on the wheel commentaries on classics date with the same day, and said backup file is stored in the file of this generation; Reaching step of updating, is when taking turns the file that changes the date name when existing with the same day in the server, utilizes said backup file to cover in the said file and names identical file with this backup file.
Compared to prior art, said data backup system and method, the mode of utilizing date wheel to change backs up data, has reduced the unnecessary data storage, has not only guaranteed the integrality of data, and has reduced the storage space of data.
Description of drawings
Fig. 1 is the running environment figure of data backup system preferred embodiment of the present invention.
Fig. 2 is the functional block diagram of data backup system 10 among Fig. 1.
Fig. 3 is the operation process chart of data back up method preferred embodiment of the present invention.
The main element symbol description
|
1 |
|
10 |
|
11 |
|
100 |
Derive |
101 |
|
102 |
|
103 |
|
104 |
|
105 |
Following embodiment will combine above-mentioned accompanying drawing to further specify the present invention.
Embodiment
As shown in Figure 1, be the running environment figure of data backup system preferred embodiment of the present invention.This data backup system 10 runs in the server 1.This server 1 comprises database 11, and this database 11 can be built in this server 1, also can be placed on this server 1.Said data backup system 10 is used for the data of database 11 are backed up.
As shown in Figure 2, be the functional block diagram of data backup system 10 among Fig. 1.Said data backup system 10 comprises: first judge module 100, derive module 101, generation module 102, second module 103, backup module 104 and update module 105.Said module is the software program section with specific function, and this software is stored in computer-readable recording medium or other memory device, can be carried out by computing machine or other calculation element that comprises processor, thus the work flow of data backup among completion the present invention.
When the system time of server 1 has arrived the BACKUP TIME of user's setting, derive module 101 and be used for needing backed up data to derive database 11, generate data file.Be spaced between the data in the data file that is generated, separate through symbol " | " that the data between row and the row are separated through newline like the data between hurdle and the hurdle.
For example; The user need carry out moon to the data of database 11 to be changeed; Be that each moon changes backup, then which of every month change the date, like totally 31 files from No. 1 to No. 31 with as wheel; In the present embodiment, when changeing, moon can be " prefix db+ wheel change date+said BACKUP TIME " to the naming method of file.If be No. 2 and be the wheel commentaries on classics date that then this second judge module 103 was judged the file that whether exists in the server 1 with No. 2 called afters " db02+ BACKUP TIME " same day.
If the user need carry out week wheel commentaries on classics to the data in the database 11; It is each week wheel commentaries on classics backup; Then what day of each week to change the date as wheel with, like totally 7 files from Monday to Sunday, Monday, the name of corresponding file folder can be " db Monday+BACKUP TIME ".
If do not exist with the same day in the server 1 is the file that wheel changes the date name; Then to be used to generate one be the file that wheel changes the date name with the same day to backup module 104, and the backup file of above-mentioned generation is stored in the file of this generation with the corresponding journal file of this backup file.
If existed with the same day in the server 1 is the file that wheel changes the date name, and then update module 105 is used for the backup file of above-mentioned generation is covered said file and identical file and the daily record of this backup file name with the corresponding journal file of this backup file.
As shown in Figure 3, be the operation process chart of data back up method preferred embodiment of the present invention.
Step S30, first judge module 100 judge whether the system time of server 1 has arrived the BACKUP TIME that the user is provided with.If the system time of server has arrived this BACKUP TIME, then execution in step S31.If the system time of server does not arrive this BACKUP TIME, then continue to carry out this step S30.In this preferred embodiment, the BACKUP TIME that the user is provided with is zero point and 12 two times, and two BACKUP TIMEs are set, and can reduce the time interval of database 11 collapses, can't drop to minimum in the data recovered interval.
Step S31 derives module 101 with needing backed up data to derive in the database 11, generates data file.Be spaced between the data in the data file that is generated, separate through symbol " | " that the data between row and the row are separated through newline like the data between hurdle and the hurdle.
Step S32, generation module 102 are used for generating backup file corresponding with said BACKUP TIME and the journal file corresponding with this backup file based on the data file of above-mentioned generation.In this preferred embodiment, this backup file is named with BACKUP TIME.Put down in writing all operations in this journal file to database 11.
Step S33, second judge module 103 judge that whether existing with the same day in the server 1 is the file that wheel changes the date name.When existing with the same day in the server 1 is when taking turns the file that changes the date name, execution in step S34.When not existing in the server 1 with the same day is when taking turns the file that changes the date name, execution in step S35.It is the date that finger wheel changes backup that wheel changes the date, is that wheel changes the date and comprises being the same day that which (being day) of one month is carried out moon and changeed with the same day, or to taking turns commentaries on classics etc. for what day carries out week the same day.
For example the user need carry out moon to the data of database 11 changes; Be that each moon changes backup; Then which of every month to change the date with as wheel; Like totally 31 files, in the present embodiment, when changeing, moon can be " prefix db+ wheel change date+said BACKUP TIME " to the naming method of file from No. 1 to No. 31.If it is No. 2 that the wheel of current date changes the date, then this second judge module 103 is judged the file that whether exists in the server 1 with No. 2 called afters " db02+ BACKUP TIME ".If the user need carry out week wheel commentaries on classics to the data of database 11; It is each week wheel commentaries on classics backup; Then what day of each week to change the date as wheel with, like totally 7 files from Monday to Sunday, Monday, the name of corresponding file folder can be " db Monday+BACKUP TIME ".
Step S34, update module 105 utilizes the backup file of above-mentioned generation to name identical file and daily record with covering in the said file with the corresponding journal file of this backup file with this backup file.
It was the file that wheel changes the date name with the same day that step S35, backup module 104 generate one, and the backup file of above-mentioned generation and the journal file corresponding with this backup file are stored in the file of this generation.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.
Claims (6)
1. a data backup system is characterized in that, this system comprises:
Generation module is used for when the system time of server arrives the BACKUP TIME of user's setting, and backed up data generates the backup file corresponding with this BACKUP TIME as required;
Backup module, being used for when server did not exist with the same day is when taking turns the file that changes the date name, generating one was the file of naming on the wheel commentaries on classics date with the same day, and said backup file is stored in the file of this generation; And
Update module, being used for when server existed with the same day is when taking turns the file that changes the date name, utilizes said backup file to cover in the said file and names identical file with this backup file.
2. data backup system as claimed in claim 1 is characterized in that, said generation module also is used to generate the corresponding journal file of said backup file.
3. data backup system as claimed in claim 1 is characterized in that, this system also comprises: derive module, be used for needing backed up data to derive database, generate data file.
4. a data back up method is characterized in that, this method comprises:
Generate step, when the system time of server arrived the BACKUP TIME of user's setting, backed up data generated the backup file corresponding with BACKUP TIME as required;
Backup-step is when taking turns the file that changes the date name when not existing with the same day in the server, and generating one was the file of naming on the wheel commentaries on classics date with the same day, and said backup file is stored in the file of this generation; And
Step of updating is when taking turns the file that changes the date name when existing with the same day in the server, utilizes said backup file to cover in the said file and names identical file with this backup file.
5. data back up method as claimed in claim 4 is characterized in that, said generation step also comprises: generate the corresponding journal file of said backup file.
6. data back up method as claimed in claim 4 is characterized in that, this method also comprised before generating step: derive step, with needing backed up data to derive in the database, generate data file.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101715667A CN102841823A (en) | 2011-06-23 | 2011-06-23 | Data backup system and method |
TW100122546A TW201301019A (en) | 2011-06-23 | 2011-06-28 | Data backup system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101715667A CN102841823A (en) | 2011-06-23 | 2011-06-23 | Data backup system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102841823A true CN102841823A (en) | 2012-12-26 |
Family
ID=47369218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101715667A Pending CN102841823A (en) | 2011-06-23 | 2011-06-23 | Data backup system and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102841823A (en) |
TW (1) | TW201301019A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103607458A (en) * | 2013-11-22 | 2014-02-26 | 厦门雅迅网络股份有限公司 | Hand-held terminal basic data synchronization method |
WO2015027868A1 (en) * | 2013-08-26 | 2015-03-05 | Tencent Technology (Shenzhen) Company Limited | Storing method and apparatus for data acquisition |
CN107483650A (en) * | 2017-10-13 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of File Upload and Download optimization method based on CIFS agreements |
CN107844386A (en) * | 2016-09-19 | 2018-03-27 | 北京金山云网络技术有限公司 | A kind of data backup, restoration methods and device |
CN108153613A (en) * | 2016-12-06 | 2018-06-12 | 中标软件有限公司 | the backup method of data |
CN108198005A (en) * | 2018-02-02 | 2018-06-22 | 上海众开信息科技有限公司 | A kind of system applied to bill that the preferential strategy of intelligence is provided |
CN109542680A (en) * | 2018-11-12 | 2019-03-29 | 上海碳蓝网络科技有限公司 | A kind of method of file backup, equipment and computer storage medium |
CN111124718A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | Parameter data acquisition method, parameter data processing method and device and electronic equipment |
CN111124718B (en) * | 2019-12-31 | 2024-04-19 | 中国银行股份有限公司 | Parameter data acquisition method, parameter data processing method, device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6892221B2 (en) * | 2000-05-19 | 2005-05-10 | Centerbeam | Data backup |
CN1614566A (en) * | 2004-11-29 | 2005-05-11 | 中兴通讯股份有限公司 | Back-up restoring method for user database |
-
2011
- 2011-06-23 CN CN2011101715667A patent/CN102841823A/en active Pending
- 2011-06-28 TW TW100122546A patent/TW201301019A/en unknown
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6892221B2 (en) * | 2000-05-19 | 2005-05-10 | Centerbeam | Data backup |
CN1614566A (en) * | 2004-11-29 | 2005-05-11 | 中兴通讯股份有限公司 | Back-up restoring method for user database |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015027868A1 (en) * | 2013-08-26 | 2015-03-05 | Tencent Technology (Shenzhen) Company Limited | Storing method and apparatus for data acquisition |
US9977836B2 (en) | 2013-08-26 | 2018-05-22 | Tencent Technology (Shenzhen) Company Limited | Storing method and apparatus for data acquisition |
CN103607458A (en) * | 2013-11-22 | 2014-02-26 | 厦门雅迅网络股份有限公司 | Hand-held terminal basic data synchronization method |
CN103607458B (en) * | 2013-11-22 | 2018-07-10 | 厦门雅迅网络股份有限公司 | A kind of method of hand-held terminal basic data synchronization |
CN107844386A (en) * | 2016-09-19 | 2018-03-27 | 北京金山云网络技术有限公司 | A kind of data backup, restoration methods and device |
CN107844386B (en) * | 2016-09-19 | 2020-11-27 | 北京金山云网络技术有限公司 | Data backup and recovery method and device |
CN108153613A (en) * | 2016-12-06 | 2018-06-12 | 中标软件有限公司 | the backup method of data |
CN107483650A (en) * | 2017-10-13 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of File Upload and Download optimization method based on CIFS agreements |
CN108198005A (en) * | 2018-02-02 | 2018-06-22 | 上海众开信息科技有限公司 | A kind of system applied to bill that the preferential strategy of intelligence is provided |
CN109542680A (en) * | 2018-11-12 | 2019-03-29 | 上海碳蓝网络科技有限公司 | A kind of method of file backup, equipment and computer storage medium |
CN111124718A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | Parameter data acquisition method, parameter data processing method and device and electronic equipment |
CN111124718B (en) * | 2019-12-31 | 2024-04-19 | 中国银行股份有限公司 | Parameter data acquisition method, parameter data processing method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
TW201301019A (en) | 2013-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102841823A (en) | Data backup system and method | |
CN104090889B (en) | Data processing method and system | |
CN107544984B (en) | Data processing method and device | |
JP6238983B2 (en) | Browsing open file history | |
CN103902410B (en) | The data backup accelerated method of cloud storage system | |
CN107526674A (en) | A kind of method and apparatus of embedded system log recording | |
CN103268270B (en) | The management method of snapshot and device | |
CN103678392A (en) | Data increment and merging method and device for achieving method | |
US11068450B2 (en) | Infinite versioning by automatic coalescing | |
US20140379631A1 (en) | Transactional key-value database with searchable indexes | |
CN107330024A (en) | The storage method and device of tag system data | |
WO2015008171A1 (en) | System, method and device for scoring browsing sessions | |
CN103944964A (en) | Distributed system and method carrying out expansion step by step through same | |
CN106815274A (en) | Daily record data method for digging and system based on Hadoop | |
CN102096613A (en) | Method and device for generating snapshot | |
CN104572339A (en) | Data backup restoring system and method based on distributed file system | |
CN103678295A (en) | Method and device for providing files for user | |
CN107436883B (en) | Data extraction method, device and system based on remainder | |
US20150370649A1 (en) | Sending a Request to a Management Service | |
CN103699746A (en) | CADDS5 piping three-dimensional design method and system based on database | |
CN102331953B (en) | Disk partition fault repairing method and device | |
CN108766513A (en) | A kind of wisdom health medical treatment data structured processing system | |
JP6230034B2 (en) | Server, client, method and program for preservation of evidence about working hours | |
CN105094881A (en) | Terminal and terminal application management method | |
CN107609038A (en) | Data clearing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20121226 |