CN109445983A - File backup method and file backup system - Google Patents
File backup method and file backup system Download PDFInfo
- Publication number
- CN109445983A CN109445983A CN201810989307.7A CN201810989307A CN109445983A CN 109445983 A CN109445983 A CN 109445983A CN 201810989307 A CN201810989307 A CN 201810989307A CN 109445983 A CN109445983 A CN 109445983A
- Authority
- CN
- China
- Prior art keywords
- file
- backup
- source
- duplication
- module
- 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
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
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
Abstract
The present invention relates to file backup technical field more particularly to a kind of file backup methods and file backup system.Method includes the following steps: setting file backup strategy;Source file is replicated according to file backup strategy, obtains duplication file;Judge to replicate file and whether source file is consistent, if unanimously, backing up success, duplication file is stored as backup file;If inconsistent, backup failure repeats the above steps according to predetermined period.The present invention replicates source file according to file backup strategy, meets the backup requirements of different user, relatively more flexible;If inconsistent, repeatedly backup procedure, which prevents backup failure, improves the reliability of file backup is judged to the consistency of duplication file and source file, has the advantages that file backup method is simple and fast, accurate, easy to use.
Description
Technical field
The present invention relates to file backup technical field more particularly to a kind of file backup methods and file backup system.
Background technique
With the development and social progress of the mankind, the file for needing to save is more and more, the file saved in order to prevent
It loses, the file that usually needs are saved is backed up, and requirement of the people to file backup is also higher and higher.Therefore, safety is steady
Determine, conveniently storage mode becomes new demand.Traditional file backup method or storage system, it is often that file is standby
Part is stored in hard disk or tape, uses comparison side in the case where file data amount is smaller or storage time is shorter
Just, when file data amount or storage time increase significantly, deficiency will be shown.Other optical disc storage systems, usually
The imprinting plan that file in system is arranged before is burnt in CD, but these files need user oneself to carry out
Classification and arrangement.The workload of user is very big, and when data volume is increasing, this disadvantage is more obvious, deposits so as to cause light
Storage supports the advantages of big data quantity to be virtually blanked.
Therefore, it is badly in need of a kind of conveniently file backup method and file backup system.
Summary of the invention
The present invention provides file backup methods and file backup that one kind can conveniently back up file
System.
One aspect of the present invention provides a kind of file backup method, comprising the following steps:
File backup strategy is set;
Source file is replicated according to file backup strategy, obtains duplication file;
Judge to replicate file and whether source file is consistent, if unanimously, backing up success, duplication file is stored as backup text
Part;If inconsistent, backup failure repeats the above steps according to predetermined period.
Further, source file is packaging file.
Further, all backup files of traversal are further comprised the steps of:, and establish index file for backup file.
Further, be arranged file backup strategy step the following steps are included:
The specified source file for needing to back up;
The time of file backup is set for any in backup immediately or specified time backup;
The type of file backup is set for any in one-time backup or schedule backup.
Further, judge that replicating file with the whether consistent mode of source file is: the size of judgement duplication file and source
Whether the size of file consistent, and judge replicate file number and source file number it is whether consistent.
Further, the step of duplication file being stored as backup file will be comprising steps of file will be replicated as backup text
Under part storage to preset path.
The second aspect of the invention provides a kind of file backup system for realizing the file backup method described among the above
System, comprising:
File backup strategy setting module for file backup strategy to be arranged, and is sent to source file replication module;
Source file replication module obtains duplication file, and will for replicating according to file backup strategy to source file
Source file, duplication file are sent to judgment module;
Judgment module, will duplication text if unanimously, backing up success for judging whether duplication file and source file are consistent
Part is sent to backup file storage module;If inconsistent, judging result is sent to source file replication module by backup failure;
Backup file storage module, for received duplication file to be stored as backup file.
Further, source file is packaging file.
Further, further include that index file establishes memory module, for traversing all backup files, and be backup file
Backup file in memory module establishes index file.
Further, file backup strategy setting module includes:
Source file designating unit for the source file that specified needs back up, and is sent to source file replication module;
File backup time setting unit, the time for file backup to be arranged are backup immediately or specified time backup
In any, and be sent to source file replication module;
File backup type setting unit, the type for file backup to be arranged are in one-time backup or schedule backup
It is any, and it is sent to source file replication module.
Further, file backup strategy setting module further includes backup file store path setting unit, for being arranged
The store path of backup file.
File backup method and file backup system provided by the invention have following progress compared with prior art:
(1) source file is replicated according to file backup strategy, meets the backup requirements of different user, it is cleverer
It is living;If inconsistent, repeatedly backup procedure, which prevents backup failure, is judged to the consistency of duplication file and source file, is mentioned
The reliability of high file backup has the advantages that file backup method is simple and fast, accurate, easy to use.
(2) packaging file is integrally backed up, and establishes index file for backup file, checked and transfer convenient for user
Backup file, backup efficiency is higher, has the advantages that save the time and improves search efficiency, is also beneficial to improve user experience.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The step of Fig. 1 is file backup method in the embodiment of the present invention is schemed;
The step of when Fig. 2 is step 100 specific implementation in the embodiment of the present invention, schemes;
Fig. 3 is that the device of file backup system in the embodiment of the present invention connects block diagram.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless otherwise will not be explained in an idealized or overly formal meaning by specific definitions.
Present embodiments provide a kind of file backup method and file backup system.
Such as Fig. 1, the file backup method of the present embodiment, comprising the following steps:
Step 100, setting file backup strategy;
Step 200 replicates source file according to file backup strategy, obtains duplication file;
Step 300 judges whether duplication file and source file are consistent, will duplication file storage if unanimously, backing up success
For backup file;If inconsistent, backup failure repeats the above steps according to predetermined period.
When it is implemented, further including step 400, all backup files of traversal, and index file is established for backup file.Just
Backup file is checked and transfers in user, backup efficiency is higher, has the advantages that save the time and improves search efficiency, also favorably
In raising user experience.
Such as Fig. 2, when step 100 is embodied the following steps are included:
Step 110, the specified source file for needing to back up;
Step 120, the time that file backup is arranged are any in backup immediately or specified time backup;
Step 130, the type that file backup is arranged are any in one-time backup or schedule backup.
Wherein, step 110, step 120, the sequence of step 130 can according to need and exchanged.It is as needed by user
Selection needs file, the time of backup and the type of backup backed up, convenient, flexible, is conducive to the need suitable for different user
It wants, promotes user experience.
It backs up immediately and immediately begins to execute backup procedure after just referring to strategy setting;Specified time refers to specified when reaching
Time start execute backup procedure.One-time backup refers to the backup of Exactly-once, and schedule backup namely repeatedly backs up, and uses
Family can be arranged according to the actual situation, hour interval, minute interval, day interval, specify the selection such as week.
When it is implemented, judging that replicating file and the whether consistent mode of source file can be the size of judgement duplication file
It is whether consistent with the size of source file, and judge replicate file number and source file number it is whether consistent.Wherein, it replicates
The size of file and the size of source file can be the size of memory shared by the size for replicating memory shared by file and source file;Tool
When body is implemented, judge that replicating file and the whether consistent mode of source file is also possible to other kind of mode, such as replicates file and source
Number of words etc. in file, can according to need and be specifically configured.
When it is implemented, file backup strategy can also include being configured to the path of backup file storage, such as standby
Part file storage is medium to various terminals, cloud platform, server, relatively more flexible and convenient.The index file established for backup file
Generally comprise filename, size, corresponding source file, BACKUP TIME, the store path etc. of backup file, specific index file
Content can be configured according to user demand, establish index file for backup file, facilitate user according to index file tune
Backup file is taken, have the advantages that save the time and improves search efficiency.
The file backup method of the present embodiment replicates source file according to file backup strategy, meets different use
The backup requirements at family, it is relatively more flexible;The consistency of duplication file and source file is judged, if inconsistent, repeats to back up
Process prevents backup failure, improves the reliability of file backup, has file backup method simple and fast, accurate, easy to use
The advantages of.
Such as Fig. 3, the present embodiment additionally provides a kind of file backup for realizing file backup method described in above-described embodiment
System, comprising:
File backup strategy setting module for file backup strategy to be arranged, and is sent to source file replication module;
Source file replication module obtains duplication file, and will for replicating according to file backup strategy to source file
Source file, duplication file are sent to judgment module;
Judgment module, will duplication text if unanimously, backing up success for judging whether duplication file and source file are consistent
Part is sent to backup file storage module;If inconsistent, judging result is sent to source file replication module by backup failure;
Backup file storage module, for received duplication file to be stored as backup file.
Such as Fig. 3, when it is implemented, file backup strategy setting module includes:
Source file designating unit for the source file that specified needs back up, and is sent to source file replication module;
File backup time setting unit, the time for file backup to be arranged are backup immediately or specified time backup
In any, and be sent to source file replication module;
File backup type setting unit, the type for file backup to be arranged are in one-time backup or schedule backup
It is any, and it is sent to source file replication module;
Backup file store path setting unit, for the store path of backup file to be arranged, and it is multiple to be sent to source file
Molding block.
Such as Fig. 3, in the file backup system of the present embodiment, source file replication module respectively with file backup strategy setting mould
Source file designating unit, file backup time setting unit, file backup type setting unit, backup file in block store road
The electrical connection of diameter setting unit, source file replication module is electrically connected with judgment module, backup file storage module respectively with judge mould
Block, index file establish memory module electrical connection.
The file backup system of the present embodiment is when it is implemented, judgment module is used for the size and source document for judging to replicate file
Whether the size of part consistent, and judge replicate file number and source file number it is whether consistent.Replicate the size of file
It can be the size of memory shared by the size for replicating memory shared by file and source file with the size of source file;When it is implemented,
Judge that replicating file and the whether consistent mode of source file is also possible to other kind of mode, as replicated the word in file and source file
Number etc., can according to need and be specifically configured.
The file backup system of the present embodiment is when it is implemented, be arranged the store path of backup file, such as backup file
It is medium to store various terminals, cloud platform, server, it is relatively more flexible and convenient.The index file established for backup file generally wraps
Include filename, size, corresponding source file, BACKUP TIME, the store path etc. of backup file, the content of specific index file
It can be configured according to user demand, establish index file for backup file, user is facilitated to transfer backup according to index file
File has the advantages that save the time and improves search efficiency.
The file backup system of the present embodiment replicates source file according to file backup strategy, meets different use
The backup requirements at family, it is relatively more flexible;The consistency of duplication file and source file is judged, if inconsistent, repeats to back up
Process prevents backup failure, improves the reliability of file backup, has file backup method simple and fast, accurate, easy to use
The advantages of.
In file backup method and file backup system provided in this embodiment, packaging file includes but is not limited to lower class
Type: the type of source file can be the compressed package files of zip, rar format, be also possible to other kind of packaging file of tar form,
It is also possible to the files such as individual text, document, table, audio.When being backed up to the source file of packaging file, will entirely it beat
APMB package carries out whole duplication, and then judgement replicates each small text in each small documents and source packaging file in packaging file respectively
Whether the size of part identical to be verified, and examine duplication packaging file in small documents quantity whether in the packaging file of source
Whether the quantity of small documents is identical, if all the same, traverses each small documents in duplication packaging file, and establish index file,
Convenient for checking and transferring.
For embodiment of the method, for simple description, therefore, it is stated as a series of action combinations, but this field
Technical staff should be aware of, and embodiment of that present invention are not limited by the describe sequence of actions, because implementing according to the present invention
Example, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification
Described in embodiment belong to preferred embodiment, the actions involved are not necessarily necessary for embodiments of the present invention.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of file backup method, which comprises the following steps:
File backup strategy is set;
Source file is replicated according to file backup strategy, obtains duplication file;
Judge to replicate file and whether source file is consistent, if unanimously, backing up success, duplication file is stored as backup file;
If inconsistent, backup failure repeats the above steps according to predetermined period.
2. file backup method according to claim 1, which is characterized in that source file is packaging file.
3. file backup method according to claim 2, which is characterized in that all backup files of traversal are further comprised the steps of:,
And index file is established for backup file.
4. file backup method according to claim 3, which is characterized in that setting file backup strategy step include with
Lower step:
The specified source file for needing to back up;
The time of file backup is set for any in backup immediately or specified time backup;
The type of file backup is set for any in one-time backup or schedule backup.
5. file backup method according to claim 4, which is characterized in that judge to replicate file and whether source file is consistent
Mode be: judge replicate file size and source file size it is whether consistent, and judgement duplication file number and source
Whether the number of file is consistent.
6. file backup method according to claim 5, which is characterized in that duplication file is stored as to the step of backup file
It is rapid to be stored as backup file under preset path comprising steps of file be replicated.
7. a kind of file backup system for realizing file backup method described in claim 1 characterized by comprising
File backup strategy setting module for file backup strategy to be arranged, and is sent to source file replication module;
Source file replication module obtains duplication file for replicating according to file backup strategy to source file, and by source document
Part, duplication file are sent to judgment module;
Judgment module, will duplication file hair if unanimously, backing up success for judging whether duplication file and source file are consistent
It send to backup file storage module;If inconsistent, judging result is sent to source file replication module by backup failure;
Backup file storage module, for received duplication file to be stored as backup file.
8. file backup system according to claim 7, which is characterized in that it further include that index file establishes memory module,
Index file is established for traversing all backup files, and for the backup file in backup file storage module.
9. file backup system according to claim 8, which is characterized in that file backup strategy setting module includes:
Source file designating unit for the source file that specified needs back up, and is sent to source file replication module;
File backup time setting unit, the time for file backup to be arranged are in backup immediately or specified time backup
It is any, and it is sent to source file replication module;
File backup type setting unit, the type for file backup to be arranged are times in one-time backup or schedule backup
One, and it is sent to source file replication module.
10. file backup system according to claim 9, which is characterized in that file backup strategy setting module further includes
Backup file store path setting unit, for the store path of backup file to be arranged.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810989307.7A CN109445983A (en) | 2018-08-28 | 2018-08-28 | File backup method and file backup system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810989307.7A CN109445983A (en) | 2018-08-28 | 2018-08-28 | File backup method and file backup system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445983A true CN109445983A (en) | 2019-03-08 |
Family
ID=65530196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810989307.7A Pending CN109445983A (en) | 2018-08-28 | 2018-08-28 | File backup method and file backup system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445983A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178866A (en) * | 2019-12-24 | 2020-05-19 | 天阳宏业科技股份有限公司 | Account management method, device and equipment |
CN111737056A (en) * | 2020-06-24 | 2020-10-02 | 中国银行股份有限公司 | File breakpoint reentrant method and device |
CN112395132A (en) * | 2020-11-13 | 2021-02-23 | 苏州元核云技术有限公司 | Method, system and computer storage medium for file backup |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070038821A1 (en) * | 2005-08-09 | 2007-02-15 | Peay Phillip A | Hard drive with integrated micro drive file backup |
CN101025702A (en) * | 2006-02-17 | 2007-08-29 | 深圳奇峰创智科技有限公司 | Method for automatic backup using computer network |
CN101098343A (en) * | 2007-06-12 | 2008-01-02 | 深圳市融合视讯科技有限公司 | Information interchange method for handset and network server |
CN101923498A (en) * | 2009-06-11 | 2010-12-22 | 升东网络科技发展(上海)有限公司 | Database full-volume automatic backup system and method |
CN101945378A (en) * | 2010-09-19 | 2011-01-12 | 中兴通讯股份有限公司 | Method and device for backing up mobile terminal file |
CN103782279A (en) * | 2011-09-07 | 2014-05-07 | 澳乐伽公司 | File management system and file management method |
-
2018
- 2018-08-28 CN CN201810989307.7A patent/CN109445983A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070038821A1 (en) * | 2005-08-09 | 2007-02-15 | Peay Phillip A | Hard drive with integrated micro drive file backup |
CN101025702A (en) * | 2006-02-17 | 2007-08-29 | 深圳奇峰创智科技有限公司 | Method for automatic backup using computer network |
CN101098343A (en) * | 2007-06-12 | 2008-01-02 | 深圳市融合视讯科技有限公司 | Information interchange method for handset and network server |
CN101923498A (en) * | 2009-06-11 | 2010-12-22 | 升东网络科技发展(上海)有限公司 | Database full-volume automatic backup system and method |
CN101945378A (en) * | 2010-09-19 | 2011-01-12 | 中兴通讯股份有限公司 | Method and device for backing up mobile terminal file |
CN103782279A (en) * | 2011-09-07 | 2014-05-07 | 澳乐伽公司 | File management system and file management method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178866A (en) * | 2019-12-24 | 2020-05-19 | 天阳宏业科技股份有限公司 | Account management method, device and equipment |
CN111178866B (en) * | 2019-12-24 | 2023-05-12 | 天阳宏业科技股份有限公司 | Account management method, device and equipment |
CN111737056A (en) * | 2020-06-24 | 2020-10-02 | 中国银行股份有限公司 | File breakpoint reentrant method and device |
CN112395132A (en) * | 2020-11-13 | 2021-02-23 | 苏州元核云技术有限公司 | Method, system and computer storage medium for file backup |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9276980B2 (en) | Data synchronization based on file system activities | |
CN109445983A (en) | File backup method and file backup system | |
US9305070B2 (en) | Continuous change data capture without disruption of DDL | |
CN105843702B (en) | A kind of method and device for data backup | |
CN105824572B (en) | A kind of disk storage space management method, device and storage equipment | |
US7584266B2 (en) | Autonomous storage for backup, restore, and file access | |
CN101582076A (en) | Data de-duplication method based on data base | |
US20120054477A1 (en) | Providing a backup service from a remote backup data center to a computer through a network | |
CN106648442A (en) | Metadata node internal memory mirroring method and device | |
CN108427728A (en) | Management method, equipment and the computer-readable medium of metadata | |
CN106802895A (en) | For repair data storehouse for database data method and apparatus | |
CN108874611A (en) | A kind of construction method and device of test data | |
CN109739814B (en) | File storage and downloading method, device and equipment | |
CN103778032A (en) | Unix-like operating system backup method and device | |
CN104731827B (en) | The generation method and device of fast distributed file system files metadata | |
CN104142943A (en) | Database expansion method and database | |
CN106326041A (en) | Second-level recovery method for database | |
JP7328371B2 (en) | Systems and methods for implementing incremental data matching | |
US20190354538A1 (en) | Ordered list management in a replicated environment | |
CN115658391A (en) | Backup recovery method of WAL mechanism based on QianBase MPP database | |
JP2016100015A (en) | Synchronization of collaborative document with online document management system | |
CN101071428B (en) | Methods, apparatuses, systems, and computer program products for generating a file structure to access multimedia files | |
CN113190463B (en) | Code testing method, node and system | |
US11792262B1 (en) | System and method for data movement | |
WO2024078211A1 (en) | Backup method for service cluster instance, recovery method for service cluster instance, and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |