CN101727362A - Data backup method and data storage medium - Google Patents

Data backup method and data storage medium Download PDF

Info

Publication number
CN101727362A
CN101727362A CN200810173158A CN200810173158A CN101727362A CN 101727362 A CN101727362 A CN 101727362A CN 200810173158 A CN200810173158 A CN 200810173158A CN 200810173158 A CN200810173158 A CN 200810173158A CN 101727362 A CN101727362 A CN 101727362A
Authority
CN
China
Prior art keywords
data
kenel
backup file
data back
storage medium
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
Application number
CN200810173158A
Other languages
Chinese (zh)
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200810173158A priority Critical patent/CN101727362A/en
Publication of CN101727362A publication Critical patent/CN101727362A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a data backup method and a data storage medium which are used for integrating data into a list according to the type of the data. The data backup method comprises the following steps of: firstly, judging the type of the data; then, converting the data into a backup file according to the type of the data; next, obtaining the characteristics of the backup file; and later, adding the backup file into the list.

Description

Data back up method and digital storage medium
Technical field
Relevant a kind of data back up method of the present invention and digital storage medium, and particularly relevant a kind of open-ended data back up method and digital storage medium.
Background technology
The fundamental purpose of data backup is for rebuilding the file of damaging or losing because of various factors.In general, traditional data back up method be directly with the file copy portion of desire backup to other Storage Media, for example be to be burnt to discs or to be stored into another hard disk.
Yet, because this kind data back up method often causes application program to crash because of the too high software engineer of making of complexity is easy to Rogue program's structure in writing process.And, software often can change by mistake program structure when the maintenance program because of being easy to revise the slip-stick artist.
Summary of the invention
The purpose of this invention is to provide a kind of data back up method and digital storage medium, is according to the kenel of data data integration extremely to be tabulated.Therefore, the developer can further develop the back-up job of different types of data.
According to an aspect of the present invention, a kind of data back up method is proposed.In order to kenel data integration to is tabulated according to data.Data back up method may further comprise the steps.At first, the kenel of judgment data.Then, the kenel according to data is converted to a backup file with data.Secondly, obtain the characteristic of this backup file.Afterwards, this backup file is added tabulation.
According to a second aspect of the invention, a kind of digital storage medium is proposed.Digital storage medium has a plurality of instructions.These instructions are in order to carry out a data back up method.Data back up method may further comprise the steps.At first, the kenel of judgment data.Then, the kenel according to data is converted to a backup file with data.Secondly, obtain the characteristic of this backup file.Afterwards, this backup file is added tabulation.
Description of drawings
For foregoing of the present invention can be become apparent, below conjunction with figs. is elaborated to preferred embodiment of the present invention, wherein:
Fig. 1 illustrates the example according to the process flow diagram of the data back up method of preferred embodiment of the present invention.
Fig. 2 illustrates the detail flowchart of the data back up method of Fig. 1.
Embodiment
Please refer to Fig. 1, it illustrates the example according to the process flow diagram of the data back up method of preferred embodiment of the present invention.Data back up method be in order to according to the kenel of data with data integration to a tabulation.At first, shown in step S110, the kenel of judgment data for example is file (file) form, catalogue (directory) form or other any form.
Then, shown in step S120, data-switching is become a backup file according to the kenel of data.With the data instance of document form, be directly data to be output as backup file.With the data instance of catalogue form, be that the mode with finite state machine or recursion search becomes backup file with data-switching.
In the step S120 of present embodiment, though reach " data of catalogue form are become backup file in the mode of finite state machine or recursion search with data-switching " with " data of document form directly are output as backup file with data ", yet be not in order to limit the present invention.In other embodiment, the data of document form or catalogue form are to convert backup file to by alternate manner.
Secondly, shown in step S130, obtain the characteristic of backup file.Afterwards, shown in step S140, backup file is added tabulation.Backup file for example is to add in the tabulation in the mode that links serial (link list).In present embodiment, tabulation for example is serial (list), tree structure (tree) or hash table (hash table).
Thus, can finish the back-up job of data.In addition, also can reduce backed up data according to tabulation, wherein the characteristic of the backup file that obtained of step S130 promptly is a parameter required when the reduction Backup Data.
The data back up method of preferred embodiment of the present invention is to reach with Object Oriented OO design, provides the part of repeatability and tool expandability with separation.Further, the present invention utilizes " open and close " one of (Open-Closed principle) the principle construction in the software design pattern (Design Pattern) to have the back mechanism of self-protection and elasticity expansion.For preventing that the programmer from changing by mistake structure and destroying application program, the present invention is sealed the program structure of whole backup functionality to guarantee the stability of backup functionality.And in order to expand the diversity of Backup Data, the present invention has also simultaneously added open function so that increase new data class in this structure.
Embodiment with Fig. 1 is an example, and step S110, S120, S130 and S140 are promptly with above-mentioned " open and close " principle sealing.Step S120 and S130 have then added open function in said structure.Being designed to example with the C++ Object Oriented OO, is the back-up job of separating the different pieces of information kenel in the mode of inheriting (inheritance), reaches and opens and close principle.
Therefore,, only need step S120 and S130 are expanded, can under the framework that need not change data back up method of the present invention, reach if programmer's desire is developed the back-up job of the data of other kenel.Thus, the programmer can carry out customized design to data back up method of the present invention at demands of individuals.
Please refer to Fig. 2, it illustrates the detail flowchart of the data back up method of Fig. 1.Step S130 comprises step S131~step S133.At first, shown in step S131, obtain the former path of depositing of data.Then, shown in step S132, obtain the size of backup file.Secondly, shown in step S133, obtain the kenel of data.
The embodiment of the invention discloses a kind of digital storage medium in addition.Above-mentioned data back up method is write and is stored in as above-mentioned digital storage medium with a plurality of instructions, can finish the data back up method of the embodiment of the invention after making these instructions be performed.The digital storage medium of present embodiment such as but be not subject to optical information Storage Media, magnetic-type information storage medium.
According to disclosed data back up method of preferred embodiment of the present invention and digital storage medium, be data integration extremely to be tabulated according to the kenel of data.But in this mechanism standard the organizational form of various difference Backup Datas, and utilize " open with the close " principle in the software program design to set up this mechanism.In this invention, but our definition and to have closed the step that Backup Data expands to prevent program structure destroyed.Again software writing step that must be customized is opened to the outside world simultaneously, also kept extendibility following data.
In sum, though the present invention with the preferred embodiment exposure as above, yet it is not in order to limit the present invention.The persond having ordinary knowledge in the technical field of the present invention, without departing from the spirit and scope of the present invention, when doing various changes that are equal to or replacement.Therefore, protection scope of the present invention is when looking accompanying being as the criterion that the application's claim scope defined.

Claims (10)

1. a data back up method is tabulated this data integration to one in order to the kenel according to data, and this data back up method comprises:
A. judge the kenel of these data;
B. the kenel according to these data is converted to a backup file with these data;
C. obtain the characteristic of this backup file; And
D. this backup file is added this tabulation.
2. data back up method according to claim 1 is characterized in that this step c comprises:
C1. obtain the former path of depositing of these data;
C2. obtain the size of this backup file; And
C3. obtain the kenel of these data.
3. data back up method according to claim 1 is characterized in that the kenel when these data is a document form, in this step b, is directly these data to be output as this document.
4. data back up method according to claim 1 is characterized in that the kenel when this document is a catalogue form, in this step b, is the mode of searching with finite state machine or recursion, and this data-switching is become this backup file.
5. data back up method according to claim 1 is characterized in that this tabulation is serial, tree structure or hash table.
6. data back up method according to claim 1 is characterized in that it being the design of object guiding.
7. data back up method according to claim 1 is characterized in that this step a, this step b, this step c and this steps d, is to seal to open and close principle, and is opened to this step b and this step c to open and close principle.
8. a digital storage medium has a plurality of instructions, and these instructions are in order to carrying out a data back up method, and this data back up method comprises:
A. judge the kenel of these data;
B. the kenel according to these data is converted to a backup file with these data;
C. obtain the characteristic of this backup file; And
D. this backup file is added this tabulation.
9. digital storage medium according to claim 8 is characterized in that this step c of this data back up method comprises:
C1. obtain the former path of depositing of these data;
C2. obtain the size of this backup file; And
C3. obtain the kenel of these data.
10. digital storage medium according to claim 8, it is characterized in that this data back up method is the design of object guiding, and in this step a, this step b, this step c and this steps d of this data back up method, be to seal, and be opened to this step b and this step c to open and close principle to open and close principle.
CN200810173158A 2008-10-30 2008-10-30 Data backup method and data storage medium Pending CN101727362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810173158A CN101727362A (en) 2008-10-30 2008-10-30 Data backup method and data storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810173158A CN101727362A (en) 2008-10-30 2008-10-30 Data backup method and data storage medium

Publications (1)

Publication Number Publication Date
CN101727362A true CN101727362A (en) 2010-06-09

Family

ID=42448287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810173158A Pending CN101727362A (en) 2008-10-30 2008-10-30 Data backup method and data storage medium

Country Status (1)

Country Link
CN (1) CN101727362A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN104965740A (en) * 2015-06-29 2015-10-07 广东欧珀移动通信有限公司 Mobile terminal environmental data multiplexing method, apparatus and system and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN104965740A (en) * 2015-06-29 2015-10-07 广东欧珀移动通信有限公司 Mobile terminal environmental data multiplexing method, apparatus and system and mobile terminal
CN104965740B (en) * 2015-06-29 2018-05-29 广东欧珀移动通信有限公司 mobile terminal environmental data multiplexing method, device, system and mobile terminal

Similar Documents

Publication Publication Date Title
KR101087364B1 (en) Undo infrastructure
TW591516B (en) Interactive media authoring without access to original source material
US7647361B2 (en) Automatically maintaining metadata in a file backup system
US20070143680A1 (en) Multi-contextual delta navigation in a compare view
CN102200944B (en) Test environment cloning method and system for enterprise resource planning (ERP) system
TW202129564A (en) Domain module computation unit, system containing a model of an enterprise, single board computational unit, grid of computational units, method to provide propagation traceability, and non-transitory computer program product
US9442996B2 (en) Enabling collaborative development of a database application across multiple database management systems
CN102323930B (en) Mirroring data changes in a database system
CN103049539A (en) Method and device for storing file data in file system
CN107391507A (en) The update method and device of the mobile terminal page
CN102054041A (en) Method and system for upgrading metadata
CN101727362A (en) Data backup method and data storage medium
CN105302488A (en) Data writing method and system for storage system
CN103226592A (en) Database-based file system and file storage method
CN102597995A (en) Synchronizing database and non-database resources
US20230108138A1 (en) Techniques for preserving clone relationships between files
CN101894024B (en) Model bank-based model element consistency ensuring method
CN103440181A (en) Method and system for modifying files
Kirchhof et al. Variant and product line co-evolution
CN103034565A (en) Disaster recovery method for large-scale 3D (three-dimensional) data edition period
TW202137012A (en) Method and system for managing backup data
CN108038028B (en) File backup method and device and file restoration method and device
CN101615118A (en) The method of exporting prototype and device
JP2012068830A (en) Information processor and method, and program
KR101996895B1 (en) Method and apparatus for database recovery

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

Open date: 20100609