CN110109780A - A kind of file-level data backup and restoration methods for NAS service - Google Patents
A kind of file-level data backup and restoration methods for NAS service Download PDFInfo
- Publication number
- CN110109780A CN110109780A CN201910589040.7A CN201910589040A CN110109780A CN 110109780 A CN110109780 A CN 110109780A CN 201910589040 A CN201910589040 A CN 201910589040A CN 110109780 A CN110109780 A CN 110109780A
- Authority
- CN
- China
- Prior art keywords
- nas
- file
- nas service
- data
- service
- 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
-
- 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/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention belongs to field of computer technology, disclose a kind of file-level data backup method for NAS service, the present invention passes through network mapping, the NAS memory space serviced is led directly into local, it is used by local server, the map storage of NAS is being converted to local equipment by FUSE the relevant technologies, and the data backup for completing to service based on NAS is then combined by living document system and NAS service.The present invention provides a kind of file-level data restoration methods for NAS service.The invention enables NAS service Backup and Restore system and traditional server backup it is equally fully functional, use is more convenient;The user of NAS service no longer needs to be grasped additional operative knowledge system i.e. and NAS service can be used;Snapshot and the filing of NAS service etc. function may be implemented in client;And client can quickly carry out data recovery, also can choose the time point being restored to.
Description
Technical field
The invention belongs to field of computer technology, in particular to it is a kind of for NAS service file-level data backup and it is extensive
Compound method.
Background technique
NAS(Network Attached Storage) server is a kind of exclusive data storage server, it is possible to provide across
The file-sharing function of platform.For the use of NAS service data backup, the traditional method of industry is usually that NAS is utilized to service
The interface of itself, directly the Backup and Restore operation of progress data, such way can satisfy general Backup and Restore scene.But
It is, if client has further need, such as to need data to be restored to specified time point, or file data, pass
The Backup and Restore system of system cannot achieve more data manipulation functions, and data is extensive due to lacking related art method
The multiple time is also especially long.At this time, our urgent needs are introduced into the snapshot in the scheme of being locally stored etc. concept.
On the other hand, local living document system is made based on metadata, there is fabulous support for snapshot functions.Such as
Fruit can integrate the functional characteristic of living document system and NAS service system, it will be formed a kind of than traditional NAS user
The more perfect NAS Backup and Restore system of case.
Summary of the invention
Goal of the invention: in view of the problems of the existing technology, data recovery can easily be carried out to the present invention by providing one kind
Based on NAS service data back up method.
Technical solution: to achieve the above object, the present invention provides a kind of data back up method based on NAS service, packets
Include following steps:
Step 1: locally adding NAS memory space, the NAS memory space serviced is mapped to local by network protocol;
Step 2: the memory space that will be mapped to local NAS service is by fuse (user's space file system) technical transform
Device block;
Step 3: being instructed using the zpool in living document system, creation includes the pond zfs of NAS local device;
Step 4: creation storage logical volume on the pond zfs comprising NAS local device created in step;
Step 5: data are backed up;
Step 6: after storage location is written in data, snapshot processing being done to currently stored logical volume.
Wherein, further include in step 1 memory space of NAS service is divided into it is multiple be mapped to local, form more parts and reflect
It penetrates.The reliability of data backup can be improved in this way.
Further, the network protocol in the step 1 includes nfs(Network File System) or cifs(universal network file
System) agreement.
It further, is that memory space is mapped to by client by network protocol to the method for data backup in the step 5
End, the read-write operation of data is directly carried out in client.
It further, is by storing by third party's network backup software to the method for data backup in the step 5
The backup operation of data is carried out between end and client.
Working principle: the present invention leads directly to local by network mapping, by the NAS memory space serviced, is locally taken
Business device uses, and is converting the map storage of NAS to local equipment by FUSE the relevant technologies, then passes through dynamic text
Part system and NAS service combine the data backup for completing to service based on NAS.
The utility model has the advantages that compared with prior art, the invention enables the Backup and Restore system of NAS service and traditional server are standby
Part is equally fully functional, and use is more convenient;The user of NAS service, which no longer needs to be grasped additional operative knowledge system, to be made
It is serviced with NAS;Snapshot and the filing of NAS service etc. function may be implemented in client;And quickly to carry out data extensive for client
It is multiple, it also can choose the time point being restored to;Meanwhile the powerful of NAS service function is relied on, but also local living document system
System has more storage sources.Storage administrator can provide data space using traditional disk array,
Also same mode can be used to go to provide data space using cloud service.Without additional deployment means and knowledge
In the case of, it is no longer limited by local memory capacity limitation.
Detailed description of the invention
Fig. 1 is that NAS Stored Procedure figure is added in the present invention;
Fig. 2 is the work flow diagram of data backup in the present invention;
Fig. 3 is the work flow diagram that data are restored in the present invention.
Specific embodiment
Further explanation is done to the present invention with reference to the accompanying drawing.
The present embodiment is based on mainstream Linux system, such as the redhat/ of debian/ubuntu or the rpm series of deb series
Centos etc..It is mainly comprised the steps that as shown in Figure 1, adding NAS Stored Procedure in the present embodiment
Step 11: the NAS memory space serviced being mapped to local by network protocol nfs or cifs agreement, then will be mapped to
The memory space of local NAS service is device block by fuse (user's space file system) technical transform;Directly as this
Ground equipment uses.Fuse technology is the api interface that a set of linux is provided, and can make logical device.In general, each NAS service
Memory space in server-side be a file directory, a catalogue can be converted into a local infrastructure device.One mesh
Record can also be converted into local multiple infrastructure devices, that is, do more parts of mappings, can do more parts of backups to file-level data in this way.
Either one or multiple infrastructure devices, when towards local living document system be it is similar, we eventually
They switch to a unified storage pool.NAS memory space by conversion mapping is local infrastructure device, all local texts
The experience and knowledge of part system can be reused, and also avoid hard link, extended attribute, POSIX locking etc. etc. can
The mistake that can cause.In the present embodiment, the address nas server ip: 10.0.60.28;Nas server catalogue :/home/
remote;Local directory :/home/local;By the scheduling of fuse API, ultimately generate/home/local/file01
Equipment.The scheduling reality of fuse API is exactly the process with development language tune interface.Linux provides so a set of api interface,
Then api interface is called.
Step 12: whether judgment step 11 succeeds, and thens follow the steps 13 if succeeded, if it fails, if unsuccessfully move back
Out.When living document system creation pond, if the disk failure after mapping failure or conversion, is that can not successfully create into
Storage pool.
Step 13: being instructed using the zpool in living document system, zfs(of the creation comprising NAS service local device is dynamic
State file system) pond;
Step 14: whether judgment step 13 creates success, if it succeeds, end operation, if it fails, then unsuccessfully exiting.
In more specifically usage scenario, it is also necessary to the attribute in the pond zfs be set and configure the clothes of mapping services and zfs
Business, which is thought highly of, opens recovery.Wherein, the attribute in the pond zfs includes capacity limit, enabling compression etc..Mapping services, that is, nas memory space
It is mapped to local function.Configuration mapping services can be unified in the rc.local configuration file of linux, and setting script opens
It is dynamic.
After completing NAS Stored Procedure, start carry out data backup, specific backup method as shown in Fig. 2, include with
Lower step:
Step 21: the zfs(living document system comprising NAS service local device created in step 13) storage is created on pond
Logical volume.
Step 22: data are backed up.Wherein, the backup mode of data it is general there are two types of, one is pass through network assist
ISCSI/IB/FC is discussed, memory space is mapped to client, the read-write operation of data is directly carried out in client;Another kind is
By rsync etc. third party's network backup software, the backup operation of data is carried out between storage and client.
Step 23: after storage location is written in data, i.e., after data backup success, currently stored logical volume being done at snapshot
Reason, storage snapshot can be used for the recovery reduction of data.Since the underlying device of zfs is formed by NAS service reverse proxy, therefore data
NAS server-side can be synchronized to.
Step 24: after completing step 23, cancelling storage mapping.In the process once backed up, correlative link has not only been configured
Border will also carry out necessary recovery processing after data end of transmission, in order to avoid system environments is influenced, so needing to cancel storage
Mapping.
As shown in figure 3, using method provided in this embodiment backup data restore when the following steps are included:
Step 31: clone's processing being complied fastly to time point of specified recovery corresponding storage logical volume, that thus bears new patrols
It collects volume and is cloned into new logical volume without influencing original logical volume, data;
Step 32: being restored data to given client end using rsync etc. network backup software;Or use nfs(network text
Part system) etc. network protocols carry memory space to client;So directly using storing data without being restored.It is this
The mode of quick pull-up business is suitable for database and promptly replaces use etc. business scenario.
Step 33: data then cancel storage mapping and destroy clone volume after being successfully recovered.
The above is only a preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (6)
1. a kind of file-level data backup method for NAS service, it is characterised in that: the following steps are included:
Step 1: locally adding NAS memory space, the NAS memory space serviced is mapped to local by network protocol;
Step 2: it is device block that the memory space that will be mapped to local NAS service, which passes through fuse technical transform,;
Step 3: being instructed using the zpool in living document system, zfs pond of the creation comprising NAS service local device;
Step 4: creation storage logical volume on the pond zfs comprising NAS local device created in step;
Step 5: data are backed up;
Step 6: after storage location is written in data, snapshot processing being done to currently stored logical volume.
2. the file-level data backup method according to claim 1 for NAS service, it is characterised in that: in step 1 also
Memory space including servicing NAS be divided into it is multiple be mapped to local, form more parts of mappings.
3. the file-level data backup method according to claim 1 for NAS service, it is characterised in that: the step 1
In network protocol include nfs or cifs agreement.
4. the file-level data backup method according to claim 1 for NAS service, it is characterised in that: the step 5
In be that memory space is mapped to client, directly carries out data in client by network protocol to the method for data backup
Read-write operation.
5. the file-level data backup method according to claim 1 for NAS service, it is characterised in that: the step 5
In be by carrying out data between storage end and client by third party's network backup software to the method for data backup
Backup operation.
6. a kind of file-level data using the file-level data backup method backup described in claim 1 for NAS service
Restoration methods, it is characterised in that: first to need corresponding to recovery time point store logical volume comply fastly clone processing,
Thus the new logical volume born is cloned into new logical volume without influencing original logical volume, data;Data are restored to referring to
Determine client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589040.7A CN110109780A (en) | 2019-07-02 | 2019-07-02 | A kind of file-level data backup and restoration methods for NAS service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910589040.7A CN110109780A (en) | 2019-07-02 | 2019-07-02 | A kind of file-level data backup and restoration methods for NAS service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110109780A true CN110109780A (en) | 2019-08-09 |
Family
ID=67495899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910589040.7A Pending CN110109780A (en) | 2019-07-02 | 2019-07-02 | A kind of file-level data backup and restoration methods for NAS service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109780A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955561A (en) * | 2019-11-25 | 2020-04-03 | 安徽兮克电子科技有限公司 | Backup and recovery method of NAS system |
CN111045864A (en) * | 2019-11-26 | 2020-04-21 | 上海英方软件股份有限公司 | Rapid remote recovery method and system for continuous data protection |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484130A (en) * | 2014-12-04 | 2015-04-01 | 北京同有飞骥科技股份有限公司 | Construction method of horizontal expansion storage system |
-
2019
- 2019-07-02 CN CN201910589040.7A patent/CN110109780A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484130A (en) * | 2014-12-04 | 2015-04-01 | 北京同有飞骥科技股份有限公司 | Construction method of horizontal expansion storage system |
Non-Patent Citations (2)
Title |
---|
IBM: "在Linux上运行ZFS", 《HTTPS://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L-ZFS/INDEX.HTML#ARTRELATEDTOPICS》 * |
网友: "Linux远程备份—ftp方式、NFS方式", 《HTTPS://BLOG.CSDN.NET/WEIXIN_33734785/ARTICLE/DETAILS/94439598》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955561A (en) * | 2019-11-25 | 2020-04-03 | 安徽兮克电子科技有限公司 | Backup and recovery method of NAS system |
CN111045864A (en) * | 2019-11-26 | 2020-04-21 | 上海英方软件股份有限公司 | Rapid remote recovery method and system for continuous data protection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11544151B2 (en) | Data backup technique for backing up data to an object storage service | |
US11829263B2 (en) | In-place cloud instance restore | |
JP5260536B2 (en) | Primary cluster fast recovery | |
CN106250270B (en) | A kind of data back up method under cloud computing platform | |
US8706694B2 (en) | Continuous data protection of files stored on a remote storage device | |
US9864530B2 (en) | Method for writing data to virtual disk using a controller virtual machine and different storage and communication protocols on a single storage platform | |
US7421617B2 (en) | Systems and methods for optimizing restoration of stored data | |
JP5210176B2 (en) | Protection management method for storage system having a plurality of nodes | |
US7120654B2 (en) | System and method for network-free file replication in a storage area network | |
US20070294310A1 (en) | Method and apparatus for storing and recovering fixed content | |
US8185496B2 (en) | Separating file data streams to enhance progressive incremental processing | |
WO2013065084A1 (en) | Information system and method for managing data | |
US10339013B2 (en) | Accelerated recovery after a data disaster | |
CN106156359A (en) | A kind of data synchronization updating method under cloud computing platform | |
US8078585B2 (en) | Reactive file recovery based on file naming and access information | |
CN110109778A (en) | A kind of a large amount of small data file backup methods and restoration methods | |
CN109144785A (en) | Method and apparatus for Backup Data | |
CN105446831A (en) | Server-Free backup method in conjunction with SAN | |
CN110109780A (en) | A kind of file-level data backup and restoration methods for NAS service | |
CN112380067A (en) | Metadata-based big data backup system and method under Hadoop environment | |
CN112800019A (en) | Data backup method and system based on Hadoop distributed file system | |
US20160139996A1 (en) | Methods for providing unified storage for backup and disaster recovery and devices thereof | |
US20110137866A1 (en) | Method for generating backup script | |
CN106843760A (en) | It is a kind of based on the asynchronous remote copy system deleted and method again | |
US11853165B2 (en) | Using file system extended attributes to update databases in hierarchical file systems |
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: 20190809 |
|
RJ01 | Rejection of invention patent application after publication |