Backup method and system of NAS file system and storage medium

A file system and backup technology, which is applied in the direction of responding to errors, error detection of redundant data in calculations, instruments, etc., can solve the problem of low backup efficiency, heavy workload, and affect the wide application of NAS file system backup technology and other issues, to achieve the effect of efficient backup

Active Publication Date: 2022-05-27
成都云祺科技有限公司
View PDF13 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Traditional NAS file system backup uses Network Data Management Protocol (NDMP) to separate the control connection and data connection, so that data traffic can be directly backed up to the backup storage device through the local high-speed channel, avoiding the traffic bottleneck of the IP network. However, the NDMP protocol only supports a single data stream session, the backup efficiency is extremely ...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Backup method and system of NAS file system and storage medium
  • Backup method and system of NAS file system and storage medium
  • Backup method and system of NAS file system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0070] like figure 1 As shown, a backup method for a NAS file system is provided, the method comprising the steps of:

[0071] S1. Mount the NAS file system on the backup proxy, using the mount point as the root directory.

[0072] It can be understood that, the NAS file system mounting protocol may select a common file system (Common Internet File System, CIFS) protocol or a network file system (Network File System, NFS) protocol.

[0073] S2. Perform depth-first traversal on the NAS file system to obtain all directories and file metadata.

[0074] It can be understood that the metadata of the above directory specifically includes: directory name, inode node number, and directory creation time.

[0075] It can be understood that the above-mentioned file metadata specifically includes: file name, inode node number, file modification time, file creation time, file size, and file permission.

[0076] Optionally, before the step S2, it also includes:

[0077] S21. Obtain all ...

Embodiment 2

[0114] like Figure 4 As shown, in one embodiment, a backup system of a NAS file system is provided, and the system includes:

[0115] The mount module 1001 is used to mount the NAS file system to the backup proxy, and use the mount point as the root directory;

[0116] A directory and file metadata acquisition module 1002, used for depth-first traversal of the NAS file system, to acquire all directory and file metadata;

[0117] A file directory tree construction module 1003, configured to construct a file directory tree containing directory nodes according to the directory and the file metadata, wherein the directory nodes include: directory metadata, sub-file metadata groups and directories hash value;

[0118] A file hash tree construction module 1004, configured to construct a file hash tree including a root node, an intermediate node and a leaf node according to the directory and the file directory tree, wherein the node of the leaf node The hash value is generated by...

Embodiment 3

[0146] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, implements the backup method of the NAS file system described in the first embodiment.

[0147] The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable Programmable Read Only...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a backup method and system of an NAS file system and a storage medium, and belongs to the field of file system backup. The method comprises the following steps: a mounting step; a directory and file metadata acquisition step; a file directory tree construction step; a file hash tree construction step; and an incremental file obtaining step. The system comprises a mounting module; a directory and file metadata acquisition module; a file directory tree construction module; a file hash tree construction module; and an incremental file acquisition module. According to the method, depth-first traversal is carried out on the NAS file system, the file directory tree is constructed, the file hash tree is constructed based on the file directory tree, then the file hash tree constructed by the current backup and the file hash tree constructed by the last backup are compared step by step, nodes containing incremental files are quickly positioned, and the incremental files are quickly positioned. The incremental file between the two backup time points is obtained, and efficient backup of the NAS file system is achieved.

Description

technical field [0001] The invention belongs to the field of file system backup, and relates to a backup method, system and storage medium of a NAS file system. Background technique [0002] Network Attached Storage (NAS) is a file data server that provides file sharing services to clients through a network. The NAS system is simple to deploy, cost-effective, and has strong compatibility. It can provide centralized storage and sharing services of file data for clients of different operating systems. Therefore, it has a wide range of applications in government affairs, medical care, finance, logistics and other fields. To prevent data corruption or loss from having an immeasurable impact on an individual or business, file system data is often protected by backups. With the rapid development of network services such as social networks and e-commerce, the functions of various applications are becoming more and more complex, and the amount of data generated by them is also incr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/182G06F11/14
CPCG06F16/1827G06F11/1448
Inventor 黄传波谢俊峰罗睿谢卓伟涂磊钱禹航
Owner 成都云祺科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products