CN102467419A - File backup method - Google Patents
File backup method Download PDFInfo
- Publication number
- CN102467419A CN102467419A CN2010105414062A CN201010541406A CN102467419A CN 102467419 A CN102467419 A CN 102467419A CN 2010105414062 A CN2010105414062 A CN 2010105414062A CN 201010541406 A CN201010541406 A CN 201010541406A CN 102467419 A CN102467419 A CN 102467419A
- Authority
- CN
- China
- Prior art keywords
- file
- backup
- backed
- special
- treats
- 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 file backup method. A proper backup program is dynamically selected according to a file type to back up a file. The file backup method comprises the following steps of: acquiring a file list from source equipment; sequentially selecting a file to be backed up according to the file list, and acquiring the basic information and special information of the file to be backed up respectively; sequentially judging whether the acquired file to be backed up is a special file or not; when the file to be backed up is the special file, reading the data contents of the file to be backed up, and backing up the file to be backed up to target equipment according to the special information by using a volume backup program; and when the file to be backed up is not the special file, reading the data contents of the file to be backed up, and backing up the file to be backed up to the target equipment according to the basic information by a file backup program.
Description
Technical field
The present invention relates to a kind of file backup method, particularly a kind of file backup method according to the suitable stand-by program of file type Dynamic Selection.
Background technology
The definition of backup is meant that a kind of source device from the beginning reads the desire Backup Data, deposits target device in and backs up through desiring Backup Data after the proper process.In general, backup is a kind of means to important data security protecting, also promptly, if come the data of source device to be damaged, as long as before corrupted data, promptly carry out backup, just can utilize the data that are stored in the target device to reduce the data in the source device.
Backup tool divides as two big types basically at present: file backup instrument and volume backup tool; The file backup instrument is used to back up specified specific file of user and catalogue;, backs up the file system operation interface after reading through an archival backup; File backup instrument biggest advantage is to select the dirigibility of backup file high, and the user gets the file that a part of only handling a volume need back up and get final product, rolls up backup tool and then be the reading of data on the source device always; Directly the whole row that involves in is backed up through a volume stand-by program; It is comparatively convenient that advantage is concerning big data backup, but because selectivity is so not high, be used in the backup of operating system mostly.
Though the selectivity of file backup instrument is strong; Can back-up specific file and catalogue; But when (for example: in the time of sparse file (Sparse File)) running into special file type; If when selecting for use the file backup instrument to back up, can to the central processing unit of system (Central Processing Unit, CPU), internal memory and hard drive space cause the great wasting of resources.With the sparse file is example, and the most content of its content is zero data, has only the sub-fraction space to comprise the data of non-zero; In other words, suppose one 5,000 hundred million byte (500Giga-byte, 500GB) sparse file of data volume; The actual valid data that possibly have only 2 gigabit hytes (2GB); If when backing up with generic-document back-up instrument, must first data volume all read out 500GB, write target device again.
Therefore, how can be through a kind of method or means, can let the file backup instrument be able to more efficient some special file carried out stand-by program, be the target that relevant at present manufacturer makes great efforts exploitation.
Summary of the invention
Can't handle special file efficiently in order to solve the current file backup tool; The object of the present invention is to provide a kind of backup method; Let the file of specific type use the volume treatment technology to back up; Other file still keeps the backup mode that uses the file backup tool technique, this measure can the advantage of the original high flexibility of document retaining backup tool outside, also can save a large amount of central processing units (Central Processing Unit; CPU), the resource of internal memory and hard drive space, improve the operational efficiency of backup tool.
Therefore backup method of the present invention can be applied in the backup of long-range (network) because of possessing the low-resource demand, can be considered a kind of high in the clouds redundancy technique of novelty.
Backup method of the present invention; Be to carry out the backup of file according to the suitable stand-by program of file type Dynamic Selection; This document backup method comes source device to obtain a listed files from one earlier; Choose in regular turn according to the files classes table and to treat backup file, and obtain this essential information of treating backup file and specific information respectively; According to this essential information and this specific information, judge in regular turn that again this that obtained treat whether backup file is a special file.
When this treats that backup file is this special file, read the data content that this treats backup file through a volume operation-interface, and, this data content of treating backup file is backed up to a target device with a volume stand-by program according to this specific information.When this treats non-this special file of backup file, read the data content that this treats backup file through a file operation interface, and, this data content of treating backup file is backed up to this target device with an archival backup according to this essential information.
Therefore; Through above-mentioned method; The backup method of this method utilizes the preceding type of judging file earlier of backup, determines whether still being that archival backup backs up through the volume stand-by program; So can avoid because of special file cause central processing unit (Central Processing Unit, CPU), internal memory and hard drive space cause great resource consumption.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Fig. 1 is the process flow diagram of backup method of the present invention;
Fig. 2 is applied to the embodiment synoptic diagram of a system architecture for backup method of the present invention.
Wherein, Reference numeral
20 operating system districts
201 file operation interfaces
202 volume operation-interfaces
21 application area
211 backup tool modules
212 document analysis modules
30 come source device
31 target devices
Embodiment
Below in conjunction with accompanying drawing structural principle of the present invention and principle of work are done concrete description:
Please refer to shown in Figure 1ly, Fig. 1 is the process flow diagram of backup method of the present invention.Backup method includes following steps:
Step S10: come source device to obtain a listed files from one, this document tabulation comprises a plurality of backup files of treating;
Step S11: choose those in regular turn and treat one of backup file, and obtain this essential information of treating backup file and specific information;
Step S12:, judge that this that obtained treat whether backup file is a special file according to this essential information and this specific information;
Step S13: when this treats that backup file is this special file, read the data content that this treats backup file through a volume operation-interface;
Step S14:, this data content of treating backup file is backed up to a target device with a volume stand-by program according to this specific information;
Step S15: when this treats non-this special file of backup file (being ordinary file), read the data content that this treats backup file through a file operation interface; And
Step S16:, this data content of treating backup file is backed up to this target device with an archival backup according to this essential information.
Wherein, special file can be a sparse file (Sparse File) or a bottom compressed file (Built-in/Low-level Compressed File).
For sparse file, specific information is meant valid data reference position, invalid data reference position, invalid data physical length and the valid data physical length of sparse file on volume.
Wherein, the described judgement of step S12 obtained this treat whether backup file is a special file, its judgment mode can have different judgment mode according to the difference of operating system.For instance,, can judge through an existing API and desire whether backup file is special file type, extract the usefulness of following code as illustration for the windows system:
HANDLE?hFile=::CreateFile(″C:\\Sparse.dat:alt″,
GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
BY_HANDLE_FILE_INFORMATION?bhfi;
::GetFileInformationByHandle(hFile,&bhfi);
if(bhfi.dwFileAttributes?&
FILE_ATTRIBUTE_SPARSE_FILE)
{
/*sparse?file*/
}
Please refer to shown in Figure 2ly, Fig. 2 is applied to the embodiment synoptic diagram of a system architecture for backup method of the present invention.Backup method is applied in the described system of Fig. 2, and carries out the backup of file according to the suitable stand-by program of file type Dynamic Selection.System architecture can be divided into an operating system district 20 and an application area 21.
It should be noted that; The backup tool module keeps the framework and the flow process of using the generic-document backup of generic-document backup tool; Technical characterictic of the present invention promptly is that the document analysis module can be handled the data in the special file in advance, gives the operation that the backup tool module backs up to obtain specific information when the desire backup file is special file; For backup tool, it adopts the mode of generic-document backup.But with separated ordinary file in district and special file, therefore, according to general information non-special file is carried out backup job for convenience of description, be defined as an archival backup when the backup tool module; , the backup tool module is defined as a volume stand-by program when carrying out backup job according to specific information to special file.
In addition; The operation that utilizes the collocation of file operation interface (operating system district) and document analysis module (application area) to back up respectively; The information of desiring backup file is obtained from operation-interface, let operating system share part work, can be simplified in the complexity in the application programming.
In sum; Backup method of the present invention; Utilize the preceding type of judging file earlier of backup; Determine whether still being that archival backup backs up through the volume stand-by program, thus can avoid because of special file cause central processing unit (Central Processing Unit, CPU), internal memory and hard drive space cause great resource consumption.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (2)
1. file backup method, the stand-by program suitable according to the file type Dynamic Selection carries out the backup of file, it is characterized in that, and this document backup method comprises:
Come source device to obtain a listed files from one, this document tabulation comprises a plurality of backup files of treating;
Choose those in regular turn and treat one of backup file, and obtain this essential information of treating backup file and specific information;
According to this essential information and this specific information, judge that this that obtained treat whether backup file is a special file;
When this treats that backup file is this special file, read the data content that this treats backup file through a volume operation-interface;
According to this specific information, this data content of treating backup file is backed up to a target device with a volume stand-by program;
When this treats non-this special file of backup file, read the data content that this treats backup file through a file operation interface; And
According to this essential information, this data content of treating backup file is backed up to this target device with an archival backup.
2. file backup method according to claim 1 is characterized in that, this special file is a sparse file or a bottom compressed file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105414062A CN102467419A (en) | 2010-11-10 | 2010-11-10 | File backup method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105414062A CN102467419A (en) | 2010-11-10 | 2010-11-10 | File backup method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102467419A true CN102467419A (en) | 2012-05-23 |
Family
ID=46071084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105414062A Pending CN102467419A (en) | 2010-11-10 | 2010-11-10 | File backup method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102467419A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902404A (en) * | 2012-12-26 | 2014-07-02 | 华为终端有限公司 | Method and device for media file backup and user equipment |
CN104407941A (en) * | 2014-11-26 | 2015-03-11 | 上海爱数软件有限公司 | Windows file backup method base on file archive attribute |
CN105224386A (en) * | 2015-09-06 | 2016-01-06 | 浪潮(北京)电子信息产业有限公司 | A kind of method and device improving virtual machine template transfer efficiency |
CN105320587A (en) * | 2014-06-24 | 2016-02-10 | 鸿合科技有限公司 | High temperature early warning method and device for processor of large intelligent electronic screen |
CN111897676A (en) * | 2020-07-15 | 2020-11-06 | 北京天顶星智能信息技术有限公司 | File backup method and device based on database index |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5953729A (en) * | 1997-12-23 | 1999-09-14 | Microsoft Corporation | Using sparse file technology to stage data that will then be stored in remote storage |
CN101751478A (en) * | 2010-02-20 | 2010-06-23 | 浪潮(北京)电子信息产业有限公司 | File backup method and system |
CN101764671A (en) * | 2008-12-23 | 2010-06-30 | 北大方正集团有限公司 | File transmission method and business processing method, equipment and system in server |
-
2010
- 2010-11-10 CN CN2010105414062A patent/CN102467419A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5953729A (en) * | 1997-12-23 | 1999-09-14 | Microsoft Corporation | Using sparse file technology to stage data that will then be stored in remote storage |
CN101764671A (en) * | 2008-12-23 | 2010-06-30 | 北大方正集团有限公司 | File transmission method and business processing method, equipment and system in server |
CN101751478A (en) * | 2010-02-20 | 2010-06-23 | 浪潮(北京)电子信息产业有限公司 | File backup method and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902404A (en) * | 2012-12-26 | 2014-07-02 | 华为终端有限公司 | Method and device for media file backup and user equipment |
CN107704339A (en) * | 2012-12-26 | 2018-02-16 | 华为终端有限公司 | A kind of method, apparatus and user equipment of media file backup |
CN107704339B (en) * | 2012-12-26 | 2021-06-15 | 华为终端有限公司 | Media file backup method and device and user equipment |
CN105320587A (en) * | 2014-06-24 | 2016-02-10 | 鸿合科技有限公司 | High temperature early warning method and device for processor of large intelligent electronic screen |
CN104407941A (en) * | 2014-11-26 | 2015-03-11 | 上海爱数软件有限公司 | Windows file backup method base on file archive attribute |
CN104407941B (en) * | 2014-11-26 | 2018-11-23 | 上海爱数信息技术股份有限公司 | A kind of windows file backup method based on archiving files attribute |
CN105224386A (en) * | 2015-09-06 | 2016-01-06 | 浪潮(北京)电子信息产业有限公司 | A kind of method and device improving virtual machine template transfer efficiency |
CN105224386B (en) * | 2015-09-06 | 2018-11-23 | 浪潮(北京)电子信息产业有限公司 | A kind of method and device improving virtual machine template efficiency of transmission |
CN111897676A (en) * | 2020-07-15 | 2020-11-06 | 北京天顶星智能信息技术有限公司 | File backup method and device based on database index |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110663019B (en) | File system for Shingled Magnetic Recording (SMR) | |
CN101814045B (en) | Data organization method for backup services | |
EP2288975B1 (en) | Method for optimizing cleaning of maps in flashcopy cascades containing incremental maps | |
US8533420B2 (en) | Thin provisioned space allocation | |
US8924353B1 (en) | Systems and methods for copying database files | |
US8260752B1 (en) | Systems and methods for change tracking with multiple backup jobs | |
US9658925B1 (en) | Systems and methods for restoring application data | |
US8880488B1 (en) | Efficient extent-based B-tree insertion | |
CN103098035A (en) | Storage system | |
US20140164330A1 (en) | Pruning previously-allocated free blocks from a synthetic backup | |
US20110208931A1 (en) | Systems and Methods for Enabling Replication Targets to Reclaim Unused Storage Space on Thin-Provisioned Storage Systems | |
CN104969168A (en) | Persistent storage device with NVRAM for staging writes | |
CN104239166A (en) | Method for realizing file backup for running virtual machine | |
CN102467419A (en) | File backup method | |
WO2007041456A3 (en) | Accumulating access frequency and file attributes for supporting policy based storage management | |
US8572338B1 (en) | Systems and methods for creating space-saving snapshots | |
US20100023561A1 (en) | Data Restoration in a Storage System using Multiple Restore Points | |
CN102479118B (en) | Incremental backup method for data blocks | |
CN102411524A (en) | Snapshot volume data copying method | |
CN102821111A (en) | Real-time synchronizing method for file cloud storage | |
CN102147723A (en) | Method and system for generating software packages | |
CN111414228B (en) | Method and related device for managing storage space based on Kubernetes | |
US20140337296A1 (en) | Techniques to recover files in a storage network | |
CN103176867A (en) | Fast file differential backup method | |
US9110965B1 (en) | Systems and methods for disaster recovery from binary large objects |
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: 20120523 |