CN112579357B - Snapshot difference obtaining method, device, equipment and storage medium - Google Patents

Snapshot difference obtaining method, device, equipment and storage medium Download PDF

Info

Publication number
CN112579357B
CN112579357B CN202011522534.2A CN202011522534A CN112579357B CN 112579357 B CN112579357 B CN 112579357B CN 202011522534 A CN202011522534 A CN 202011522534A CN 112579357 B CN112579357 B CN 112579357B
Authority
CN
China
Prior art keywords
file
snapshot
target
compressed
difference
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.)
Active
Application number
CN202011522534.2A
Other languages
Chinese (zh)
Other versions
CN112579357A (en
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.)
Suzhou 360 Intelligent Security Technology Co Ltd
Original Assignee
Suzhou 360 Intelligent Security Technology Co Ltd
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 Suzhou 360 Intelligent Security Technology Co Ltd filed Critical Suzhou 360 Intelligent Security Technology Co Ltd
Priority to CN202011522534.2A priority Critical patent/CN112579357B/en
Publication of CN112579357A publication Critical patent/CN112579357A/en
Application granted granted Critical
Publication of CN112579357B publication Critical patent/CN112579357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1453Management of the data involved in backup or backup restore using de-duplication of the data

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 discloses a snapshot delta obtaining method, a device, equipment and a storage medium, wherein the method comprises the following steps: compressing the snapshot difference file to generate a compressed file; storing the compressed file through a compressed file system; when a file calling instruction is received, acquiring a target compressed file from the compressed file system according to the file calling instruction; and decompressing the target compressed file to obtain a target snapshot differential file. In the invention, the snapshot difference file is compressed to generate a compressed file and stored in the compressed file system, and then when the file needs to be called, the target compressed file is obtained from the compressed file system and decompressed to obtain the target snapshot difference file, so that the physical disk occupation of the stored snapshot difference file is reduced, and the performance overhead of the acquisition snapshot difference file is reduced.

Description

快照差量获取方法、装置、设备及存储介质Snapshot differential acquisition method, device, equipment and storage medium

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种快照差量获取方法、装置、设备及存储介质。The present invention relates to the field of computer technology, in particular to a method, device, equipment and storage medium for acquiring snapshot difference.

背景技术Background technique

目前,snapshot差量文件一般使用稀疏文件系统进行存储,但是通过稀疏文件系统对snapshot差量文件存储会导致物理磁盘的占用特别大,在需要调用snapshot差量文件时,需要从稀疏文件系统进行调用,增加了性能开销。At present, the snapshot difference files are generally stored using the sparse file system, but storing the snapshot difference files through the sparse file system will cause a particularly large physical disk occupation. When calling the snapshot difference file, it needs to be called from the sparse file system , increasing performance overhead.

上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.

发明内容Contents of the invention

本发明的主要目的在于提出一种快照差量获取方法、装置、设备及存储介质,旨在解决现有技术中存储和获取snapshot差量文件的方式会占用较大的物理磁盘,性能开销过大的技术问题。The main purpose of the present invention is to propose a snapshot difference acquisition method, device, equipment and storage medium, aiming to solve the problem that the method of storing and obtaining snapshot difference files in the prior art will occupy a relatively large physical disk, and the performance overhead is too large technical issues.

为实现上述目的,本发明提供一种快照差量获取方法,所述快照差量获取方法包括以下步骤:In order to achieve the above object, the present invention provides a snapshot differential acquisition method, the snapshot differential acquisition method includes the following steps:

对快照snapshot差量文件进行压缩处理,以生成压缩文件;Compress the snapshot snapshot difference file to generate a compressed file;

通过压缩文件系统对所述压缩文件进行存储;storing the compressed file through a compressed file system;

在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件;When receiving the file call instruction, obtain the target compressed file from the compressed file system according to the file call instruction;

对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。The target compressed file is decompressed to obtain the target snapshot difference file.

可选地,所述在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件,包括:Optionally, when the file calling instruction is received, obtaining the target compressed file from the compressed file system according to the file calling instruction includes:

在接收到文件调用指令时,根据所述文件调用指令确定目标文件信息;When receiving the file calling instruction, determine the target file information according to the file calling instruction;

根据所述目标文件信息确定目标文件标识;Determine the target file identifier according to the target file information;

根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件。The target compressed file is acquired from the compressed file system according to the target file identifier.

可选地,所述根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件,包括:Optionally, the obtaining the target compressed file from the compressed file system according to the target file identifier includes:

将所述目标文件标识与第一映射列表中的文件标识进行匹配;matching the target file identifier with the file identifier in the first mapping list;

根据匹配结果确定与所述目标文件标识对应的目标压缩文件;determining the target compressed file corresponding to the target file identifier according to the matching result;

查找所述目标压缩文件对应的目标文件地址,并根据所述目标文件地址从所述压缩文件系统中获取所述目标压缩文件。Find the target file address corresponding to the target compressed file, and acquire the target compressed file from the compressed file system according to the target file address.

可选地,所述将所述目标文件标识与第一映射列表中的文件标识进行匹配之前,还包括:Optionally, before the matching of the target file identifier with the file identifier in the first mapping list, further includes:

为各压缩文件分配文件标识,并根据所述文件标识和所述压缩文件建立第一映射列表,所述第一映射列表中记录有所述文件标识与所述压缩文件之间的对应关系。Allocate file identifiers for each compressed file, and establish a first mapping list according to the file identifier and the compressed file, and record the corresponding relationship between the file identifier and the compressed file in the first mapping list.

可选地,所述根据所述目标文件信息确定目标文件标识,包括:Optionally, the determining the target file identifier according to the target file information includes:

根据所述目标文件信息确定差异文件信息,并从所述差异文件信息中提取目标差异文件名称;determining difference file information according to the target file information, and extracting a target difference file name from the difference file information;

将所述目标差异文件名称与第二映射列表中的差异文件名称进行匹配;matching the name of the target difference file with the name of the difference file in the second mapping list;

根据匹配结果确定与所述目标差异文件名称对应的目标文件标识。Determine the target file identifier corresponding to the target difference file name according to the matching result.

可选地,所述将所述目标差异文件名称与第二映射列表中的差异文件名称进行匹配之前,还包括:Optionally, before matching the name of the target difference file with the name of the difference file in the second mapping list, the method further includes:

获取各snapshot差量文件的差异文件名称;Obtain the difference file name of each snapshot difference file;

根据所述差异文件名称和与所述snapshot差量文件对应的压缩文件的文件标识建立第二映射列表,所述第二映射列表中记录有所述差异文件名称与所述文件标识之间的对应关系。Establish a second mapping list according to the difference file name and the file identifier of the compressed file corresponding to the snapshot difference file, and record the correspondence between the difference file name and the file identifier in the second mapping list relation.

可选地,所述根据所述目标文件信息确定差异文件信息,包括:Optionally, the determining difference file information according to the target file information includes:

根据所述目标文件信息确定待调用文件,并检测所述待调用文件是否存在差异文件;Determine the file to be called according to the target file information, and detect whether there is a difference file in the file to be called;

在所述待调用文件存在差异文件时,查找所述待调用文件对应的差异文件信息。When there is a difference file in the file to be called, search for difference file information corresponding to the file to be called.

可选地,所述对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件之后,还包括:Optionally, after decompressing the target compressed file to obtain the target snapshot difference file, the method further includes:

根据所述目标snapshot差量文件对所述待调用文件进行数据处理,以获得目标文件。Perform data processing on the file to be called according to the target snapshot difference file to obtain a target file.

可选地,所述对快照snapshot差量文件进行压缩处理,以生成压缩文件之前,还包括:Optionally, before performing compression processing on the snapshot snapshot difference file to generate the compressed file, the method further includes:

在接收到snapshot文件时,对所述snapshot文件进行检测,以确定所述snapshot文件对应的文件类型;When the snapshot file is received, the snapshot file is detected to determine the file type corresponding to the snapshot file;

根据所述文件类型和所述snapshot文件生成snapshot差量文件。A snapshot difference file is generated according to the file type and the snapshot file.

可选地,所述根据所述文件类型和所述snapshot文件生成snapshot差量文件,包括:Optionally, the generating a snapshot difference file according to the file type and the snapshot file includes:

判断所述文件类型是否为指针型快照;Determine whether the file type is a pointer snapshot;

在所述文件类型为指针型快照时,将所述snapshot文件作为snapshot差量文件。When the file type is a pointer snapshot, the snapshot file is used as a snapshot difference file.

可选地,所述判断所述文件类型是否为指针型快照之后,还包括:Optionally, after the judging whether the file type is a pointer snapshot, it also includes:

在所述文件类型不为指针型快照时,判断所述文件类型是否为镜像型快照;When the file type is not a pointer snapshot, determine whether the file type is a mirror snapshot;

在所述文件类型为镜像型快照时,查找所述snapshot文件对应的原始文件;When the file type is a mirror image snapshot, find the original file corresponding to the snapshot file;

根据所述snapshot文件和所述原始文件生成snapshot差量文件。A snapshot difference file is generated according to the snapshot file and the original file.

可选地,所述对快照snapshot差量文件进行压缩处理,以生成压缩文件,包括:Optionally, performing compression processing on the snapshot snapshot difference file to generate a compressed file includes:

将snapshot差量文件按顺序拆分成多个待压缩文件,并记录所述待压缩文件对应的排列顺序;Splitting the snapshot difference file into multiple files to be compressed in order, and recording the corresponding sequence of the files to be compressed;

根据所述待压缩文件对应的排列顺序对所述待压缩文件进行压缩处理,以生成压缩文件。Perform compression processing on the files to be compressed according to the corresponding sequence of the files to be compressed, so as to generate compressed files.

可选地,所述对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件,包括:Optionally, the decompressing the target compressed file to obtain the target snapshot difference file includes:

对所述目标压缩文件进行解压处理,以获得多个解压文件;Decompressing the target compressed file to obtain multiple decompressed files;

检测所述解压文件的排列顺序;Detecting the arrangement sequence of the decompressed files;

根据所述解压文件的排列顺序对所述解压文件进行排序,以获得目标snapshot差量文件。The decompressed files are sorted according to the sequence of the decompressed files to obtain the target snapshot difference file.

此外,为实现上述目的,本发明还提出一种快照差量获取装置,所述快照差量获取装置包括:In addition, in order to achieve the above purpose, the present invention also proposes a device for obtaining a snapshot difference, the device for obtaining a snapshot difference includes:

文件压缩模块,用于对快照snapshot差量文件进行压缩处理,以生成压缩文件;A file compression module, configured to compress the snapshot snapshot difference file to generate a compressed file;

文件存储模块,用于通过压缩文件系统对所述压缩文件进行存储;A file storage module, configured to store the compressed file through a compressed file system;

文件调用模块,用于在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件;A file calling module, configured to obtain a target compressed file from the compressed file system according to the file calling instruction when receiving the file calling instruction;

文件解压模块,用于对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。The file decompression module is configured to decompress the target compressed file to obtain the target snapshot difference file.

可选地,所述文件调用模块,还用于在接收到文件调用指令时,根据所述文件调用指令确定目标文件信息;根据所述目标文件信息确定目标文件标识;根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件。Optionally, the file calling module is further configured to, when receiving a file calling instruction, determine target file information according to the file calling instruction; determine a target file identifier according to the target file information; The target compressed file is obtained from the compressed file system.

可选地,所述文件调用模块,还用于将所述目标文件标识与第一映射列表中的文件标识进行匹配;Optionally, the file calling module is further configured to match the target file identifier with the file identifier in the first mapping list;

根据匹配结果确定与所述目标文件标识对应的目标压缩文件;查找所述目标压缩文件对应的目标文件地址,并根据所述目标文件地址从所述压缩文件系统中获取所述目标压缩文件。Determine the target compressed file corresponding to the target file identifier according to the matching result; find the target file address corresponding to the target compressed file, and obtain the target compressed file from the compressed file system according to the target file address.

可选地,所述文件调用模块,还用于为各压缩文件分配文件标识,并根据所述文件标识和所述压缩文件建立第一映射列表,所述第一映射列表中记录有所述文件标识与所述压缩文件之间的对应关系。Optionally, the file calling module is further configured to assign a file identifier to each compressed file, and establish a first mapping list according to the file identifier and the compressed file, and the file is recorded in the first mapping list A corresponding relationship between the identifier and the compressed file.

可选地,所述文件调用模块,还用于根据所述目标文件信息确定差异文件信息,并从所述差异文件信息中提取目标差异文件名称;将所述目标差异文件名称与第二映射列表中的差异文件名称进行匹配;根据匹配结果确定与所述目标差异文件名称对应的目标文件标识。Optionally, the file calling module is further configured to determine difference file information according to the target file information, and extract a target difference file name from the difference file information; The name of the difference file in is matched; and the target file identifier corresponding to the name of the target difference file is determined according to the matching result.

此外,为实现上述目的,本发明还提出一种快照差量获取设备,所述快照差量获取设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的快照差量获取程序,所述快照差量获取程序被处理器执行时实现如上所述的快照差量获取方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a device for acquiring snapshot difference, which includes: a memory, a processor, and a snapshot stored on the memory and operable on the processor A difference acquisition program, when the snapshot difference acquisition program is executed by the processor, implements the steps of the method for acquiring the snapshot difference as described above.

此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有快照差量获取程序,所述快照差量获取程序被处理器执行时实现如上所述的快照差量获取方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a storage medium, on which a snapshot difference acquisition program is stored, and when the snapshot difference acquisition program is executed by a processor, the above-mentioned snapshot difference acquisition is realized. method steps.

本发明提出的快照差量获取方法,通过对snapshot差量文件进行压缩处理,以生成压缩文件;通过压缩文件系统对所述压缩文件进行存储;在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件;对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。在本发明中,对snapshot差量文件进行压缩处理生成压缩文件并存储在压缩文件系统中,进而在需要调用文件时,从压缩文件系统获取目标压缩文件并解压得到目标snapshot差量文件,降低了存储snapshot差量文件的物理磁盘占用,从而降低了获取snapshot差量文件时的性能开销。The snapshot difference acquisition method proposed by the present invention generates a compressed file by compressing the snapshot difference file; stores the compressed file through a compressed file system; The instruction obtains a target compressed file from the compressed file system; decompresses the target compressed file to obtain a target snapshot difference file. In the present invention, the snapshot difference file is compressed to generate a compressed file and stored in the compressed file system, and then when the file needs to be called, the target compressed file is obtained from the compressed file system and decompressed to obtain the target snapshot difference file, which reduces the The physical disk used to store snapshot difference files, thereby reducing the performance overhead when obtaining snapshot difference files.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的快照差量获取设备结构示意图;FIG. 1 is a schematic structural diagram of a snapshot difference acquisition device of a hardware operating environment involved in the solution of an embodiment of the present invention;

图2为本发明快照差量获取方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the method for acquiring snapshot difference in the present invention;

图3为本发明快照差量获取方法一实施例的文件压缩存储示意图;Fig. 3 is a schematic diagram of file compression storage in an embodiment of the method for acquiring snapshot difference in the present invention;

图4为本发明快照差量获取方法第二实施例的流程示意图;FIG. 4 is a schematic flow chart of the second embodiment of the method for acquiring snapshot difference in the present invention;

图5为本发明快照差量获取方法第三实施例的流程示意图;Fig. 5 is a schematic flow chart of the third embodiment of the method for acquiring snapshot difference in the present invention;

图6为本发明快照差量获取方法第四实施例的流程示意图;FIG. 6 is a schematic flowchart of a fourth embodiment of the snapshot difference acquisition method of the present invention;

图7为本发明快照差量获取装置第一实施例的功能模块示意图。FIG. 7 is a schematic diagram of functional modules of the first embodiment of the device for acquiring snapshot difference in the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

参照图1,图1为本发明实施例方案涉及的硬件运行环境的快照差量获取设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a snapshot difference acquisition device of a hardware operating environment involved in an embodiment of the present invention.

如图1所示,该快照差量获取设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如按键,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the snapshot difference acquisition device may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a button, and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的设备结构并不构成对快照差量获取设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the device structure shown in FIG. 1 does not constitute a limitation on the snapshot difference acquisition device, and may include more or less components than those shown in the figure, or combine certain components, or different components. layout.

如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及快照差量获取程序。As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a snapshot difference acquisition program.

在图1所示的快照差量获取设备中,网络接口1004主要用于连接外网,与其他网络设备进行数据通信;用户接口1003主要用于连接用户设备,与所述用户设备进行数据通信;本发明设备通过处理器1001调用存储器1005中存储的快照差量获取程序,并执行本发明实施例提供的快照差量获取方法。In the snapshot difference acquisition device shown in FIG. 1 , the network interface 1004 is mainly used to connect to an external network and perform data communication with other network devices; the user interface 1003 is mainly used to connect to user equipment and perform data communication with the user equipment; The device of the present invention invokes the snapshot difference acquisition program stored in the memory 1005 through the processor 1001, and executes the snapshot difference acquisition method provided by the embodiment of the present invention.

基于上述硬件结构,提出本发明快照差量获取方法实施例。Based on the above-mentioned hardware structure, an embodiment of the snapshot difference acquisition method of the present invention is proposed.

参照图2,图2为本发明快照差量获取方法第一实施例的流程示意图。Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of a method for acquiring a snapshot difference in the present invention.

在第一实施例中,所述快照差量获取方法包括以下步骤:In the first embodiment, the snapshot difference acquisition method includes the following steps:

步骤S10,对快照snapshot差量文件进行压缩处理,以生成压缩文件。Step S10, compressing the snapshot difference file to generate a compressed file.

需要说明的是,本实施例的执行主体可为快照差量获取设备,例如终端设备,还可为其他可实现相同或相似功能的设备,本实施例对此不作限制,在本实施例中,以终端设备为例进行说明。其中,所述终端设备可包括手机、IOT设备等设备,还可包括其他设备,本实施例对此不作限制。It should be noted that the execution subject of this embodiment may be a snapshot difference acquisition device, such as a terminal device, or other devices that can implement the same or similar functions, which is not limited in this embodiment. In this embodiment, A terminal device is used as an example for description. Wherein, the terminal device may include devices such as mobile phones and IOT devices, and may also include other devices, which are not limited in this embodiment.

应当理解的是,目前一般通过稀疏文件系统来对snapshot差量文件进行存储,但是这种方式会占用较大的物理磁盘,在本实施例中,为了克服这一问题,采用压缩文件系统来对snapshot差量文件进行存储,降低物理磁盘的占用。It should be understood that currently, the snapshot difference files are generally stored through a sparse file system, but this method will occupy a relatively large physical disk. In this embodiment, in order to overcome this problem, a compressed file system is used to store the The snapshot difference file is stored to reduce the physical disk usage.

可以理解的是,由于使用压缩文件系统来对snapshot差量文件进行存储,而压缩文件系统是用于存储压缩文件的,并且为了节约存储空间,可先对snapshot差量文件进行压缩处理,以生成压缩文件。由于压缩文件相较于原本的snapshot差量文件体量更小,占用的物理磁盘也更小。It can be understood that since the compressed file system is used to store the snapshot differential file, and the compressed file system is used to store compressed files, and in order to save storage space, the snapshot differential file can be compressed first to generate Compressed file. Since the compressed file is smaller than the original snapshot difference file, it occupies a smaller physical disk.

步骤S20,通过压缩文件系统对所述压缩文件进行存储。Step S20, storing the compressed file through the compressed file system.

应当理解的是,在生成压缩文件后,可通过压缩文件系统对压缩文件进行存储,具体可为,将压缩文件挂在压缩文件系统,以得到对压缩文件进行存储的效果。It should be understood that after the compressed file is generated, the compressed file may be stored through the compressed file system, specifically, the compressed file may be mounted on the compressed file system to obtain the effect of storing the compressed file.

可以理解的是,由于可能存在多个snapshot差量文件,因此,可分别对这些snapshot差量文件进行压缩处理,获得多个压缩文件,将通过压缩文件系统对这些压缩文件进行存储。It can be understood that since there may be multiple snapshot difference files, these snapshot difference files may be compressed respectively to obtain multiple compressed files, and these compressed files will be stored through the compressed file system.

步骤S30,在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件。Step S30, when the file calling instruction is received, the target compressed file is obtained from the compressed file system according to the file calling instruction.

应当理解的是,终端设备在接收到文件调用指令时,可根据文件调用指令确定需要调用的目标压缩文件,进而可从压缩文件系统中获取目标压缩文件。It should be understood that, when the terminal device receives the file calling instruction, it may determine the target compressed file to be called according to the file calling instruction, and then obtain the target compressed file from the compressed file system.

在具体实现中,如图3所示,图3为文件压缩存储示意图,假设有3个snapshot差量文件,分别为:差量文件1、差量文件2以及差量文件3,可分别对这3个snapshot差量文件进行压缩处理,生成3个压缩文件,分别为:压缩文件1、压缩文件2以及压缩文件3,然后将压缩文件1、压缩文件2以及压缩文件3存储在压缩文件系统中,然后,在接收到文件调用指令时,便可根据文件调用指令从压缩文件系统中目标压缩文件。In the specific implementation, as shown in Figure 3, Figure 3 is a schematic diagram of file compression storage, assuming that there are three snapshot difference files, namely: difference file 1, difference file 2 and difference file 3, which can be respectively Compress the 3 snapshot difference files to generate 3 compressed files, namely: compressed file 1, compressed file 2 and compressed file 3, and then store compressed file 1, compressed file 2 and compressed file 3 in the compressed file system , and then, when the file calling instruction is received, the target compressed file can be extracted from the compressed file system according to the file calling instruction.

步骤S40,对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。Step S40, decompressing the target compressed file to obtain a target snapshot difference file.

应当理解的是,在从压缩文件系统获取目标压缩文件后,可对目标压缩文件进行解压处理,然后便可得到目标snapshot差量文件。在具体实现中,例如,根据文件调用指令确定需要获取的目标压缩文件为压缩文件2时,可从压缩文件系统中获取压缩文件2,并对压缩文件2进行解压处理,得到差量文件2,将差量文件2作为目标snapshot差量文件。It should be understood that after the target compressed file is obtained from the compressed file system, the target compressed file can be decompressed, and then the target snapshot difference file can be obtained. In specific implementation, for example, when the target compressed file to be obtained is determined to be the compressed file 2 according to the file calling instruction, the compressed file 2 can be obtained from the compressed file system, and the compressed file 2 can be decompressed to obtain the difference file 2, Use difference file 2 as the target snapshot difference file.

本实施例中通过对snapshot差量文件进行压缩处理,以生成压缩文件;通过压缩文件系统对所述压缩文件进行存储;在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件;对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。在本实施例中,对snapshot差量文件进行压缩处理生成压缩文件并存储在压缩文件系统中,进而在需要调用文件时,从压缩文件系统获取目标压缩文件并解压得到目标snapshot差量文件,降低了存储snapshot差量文件的物理磁盘占用,从而降低了获取snapshot差量文件时的性能开销。In this embodiment, the snapshot difference file is compressed to generate a compressed file; the compressed file is stored through the compressed file system; The target compressed file is obtained in the system; the target compressed file is decompressed to obtain the target snapshot difference file. In this embodiment, the snapshot difference file is compressed to generate a compressed file and stored in the compressed file system, and then when the file needs to be called, the target compressed file is obtained from the compressed file system and decompressed to obtain the target snapshot difference file, reducing the The physical disk occupation for storing snapshot difference files is reduced, thereby reducing the performance overhead when obtaining snapshot difference files.

在一实施例中,如图4所示,基于第一实施例提出本发明快照差量获取方法第二实施例,所述步骤S30,包括:In one embodiment, as shown in FIG. 4 , based on the first embodiment, a second embodiment of the snapshot difference acquisition method of the present invention is proposed. The step S30 includes:

步骤S301,在接收到文件调用指令时,根据所述文件调用指令确定目标文件信息。Step S301, when a file calling instruction is received, determine target file information according to the file calling instruction.

应当理解的是,在接收到文件调用指令时,可根据文件调用指令确定目标文件信息,其中,目标文件信息为文件调用指令需要调用的文件信息。It should be understood that, when the file calling instruction is received, the target file information may be determined according to the file calling instruction, wherein the target file information is the file information to be called by the file calling instruction.

步骤S302,根据所述目标文件信息确定目标文件标识。Step S302, determining a target file identifier according to the target file information.

可以理解的是,在确定目标文件信息后,可根据目标文件信息确定目标文件标识,进而根据目标文件标识从压缩文件系统中获取目标压缩文件。It can be understood that after the target file information is determined, the target file identifier can be determined according to the target file information, and then the target compressed file can be obtained from the compressed file system according to the target file identifier.

步骤S303,根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件。Step S303, acquiring a target compressed file from the compressed file system according to the target file identifier.

应当理解的是,在对snapshot差量文件进行压缩处理得到压缩文件后,可为每个压缩文件分配一个文件标识,因为文件标识是唯一的,因此,在确定目标文件标识后,可根据目标文件标识从压缩文件系统中获取目标压缩文件。It should be understood that, after compressing the snapshot difference files to obtain compressed files, a file identifier can be assigned to each compressed file, because the file identifier is unique. Therefore, after the target file identifier is determined, the target file can be Identifies getting the target archive from the archive system.

进一步地,为了更加快速的根据文件标识确定对应的压缩文件,并且方便地从压缩文件系统中获取压缩文件,提高文件获取的效率,所述根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件,包括:Further, in order to more quickly determine the corresponding compressed file according to the file identifier, and conveniently obtain the compressed file from the compressed file system, and improve the efficiency of file acquisition, the said obtaining from the compressed file system according to the target file identifier Target compressed files, including:

将所述目标文件标识与第一映射列表中的文件标识进行匹配;根据匹配结果确定与所述目标文件标识对应的目标压缩文件;查找所述目标压缩文件对应的目标文件地址,并根据所述目标文件地址从所述压缩文件系统中获取所述目标压缩文件。Matching the target file identifier with the file identifier in the first mapping list; determining the target compressed file corresponding to the target file identifier according to the matching result; searching for the target file address corresponding to the target compressed file, and according to the The target file address obtains the target compressed file from the compressed file system.

应当理解的是,可预先根据文件标识和压缩文件建立第一映射列表,在确定目标文件标识后,可将目标文件标识与第一映射列表中的文件标识进行匹配,然后根据匹配结果确定与目标文件标识对应的目标压缩文件。It should be understood that the first mapping list can be established in advance according to the file identifier and the compressed file. After the target file identifier is determined, the target file identifier can be matched with the file identifier in the first mapping list, and then determined according to the matching result. The file identifier corresponds to the target compressed file.

进一步地,所述将所述目标文件标识与第一映射列表中的文件标识进行匹配之前,还包括:Further, before matching the target file identifier with the file identifier in the first mapping list, it also includes:

为各压缩文件分配文件标识,并根据所述文件标识和所述压缩文件建立第一映射列表,所述第一映射列表中记录有所述文件标识与所述压缩文件之间的对应关系。Allocate file identifiers for each compressed file, and establish a first mapping list according to the file identifier and the compressed file, and record the corresponding relationship between the file identifier and the compressed file in the first mapping list.

可以理解的是,在获得压缩文件后,可为各压缩文件分配文件标识,并根据文件标识和压缩文件建立第一映射列表。在具体实现中,例如,生成了3个压缩文件,分别为压缩文件1、压缩文件2以及压缩文件3,可为压缩文件1分配文件标识1,为压缩文件2分配文件标识2,为压缩文件3分配文件标识3,进而便可根据以上压缩文件和文件标识建立第一映射列表,其中,压缩文件1与文件标识1之间存在对应关系,压缩文件2与文件标识2之间存在对应关系,压缩文件3与文件标识3之间存在对应关系。假如目标文件标识为文件标识2,那么便可将文件标识2对应的压缩文件2作为目标压缩文件。It can be understood that, after the compressed files are obtained, a file identifier may be assigned to each compressed file, and a first mapping list may be established according to the file identifier and the compressed file. In a specific implementation, for example, three compressed files are generated, namely compressed file 1, compressed file 2, and compressed file 3, and file identifier 1 can be assigned to compressed file 1, and file identifier 2 can be assigned to compressed file 2. 3 assign file identification 3, and then just can establish the first mapping list according to above compressed file and file identification, wherein, there is correspondence between compressed file 1 and file identification 1, there is correspondence between compressed file 2 and file identification 2, There is a corresponding relationship between the compressed file 3 and the file ID 3 . If the target file identifier is file identifier 2, then the compressed file 2 corresponding to the file identifier 2 can be used as the target compressed file.

应当理解的是,由于通过压缩文件系统对压缩文件进行存储时,一般是将压缩文件存储在压缩文件系统中的某一个区块空间,而为了区分不同的压缩文件的存储空间,可在对压缩文件进行存储时,记录压缩文件在压缩文件系统中的文件地址。It should be understood that when the compressed file is stored through the compressed file system, the compressed file is generally stored in a certain block space in the compressed file system, and in order to distinguish the storage space of different compressed files, the compressed When the file is stored, the file address of the compressed file in the compressed file system is recorded.

在具体实现中,例如,在将压缩文件1存储在压缩文件系统中时,可记录压缩文件1对应的文件地址1,在将压缩文件2存储在压缩文件系统中时,可记录压缩文件2对应的文件地址2,在将压缩文件3存储在压缩文件系统中时,可记录压缩文件3对应的文件地址3。In a specific implementation, for example, when storing compressed file 1 in the compressed file system, the file address 1 corresponding to compressed file 1 can be recorded, and when storing compressed file 2 in the compressed file system, it can be recorded. When the compressed file 3 is stored in the compressed file system, the file address 3 corresponding to the compressed file 3 can be recorded.

可以理解的是,在确定目标文件标识对应的目标压缩文件后,可查找目标压缩文件对应的目标文件地址,具体可为,根据压缩文件和文件地址建立第三映射列表,第三映射列表中记录有压缩文件与文件地址之间的对应关系,在确定目标压缩文件后,根据第三映射列表查找与目标压缩文件对应的目标文件地址。It can be understood that, after determining the target compressed file corresponding to the target file identifier, the target file address corresponding to the target compressed file can be searched, specifically, a third mapping list is established according to the compressed file and the file address, and the third mapping list records There is a corresponding relationship between the compressed file and the file address. After the target compressed file is determined, the target file address corresponding to the target compressed file is searched according to the third mapping list.

在具体实现中,例如,在目标压缩文件为压缩文件2时,可根据第三映射列表查找与压缩文件2对应的目标文件地址为文件地址2。In a specific implementation, for example, when the target compressed file is compressed file 2, the target file address corresponding to compressed file 2 may be found as file address 2 according to the third mapping list.

进一步地,为了提高根据目标文件信息确定目标文件标识的效率,提高差量获取速度,所述根据所述目标文件信息确定目标文件标识,包括:Further, in order to improve the efficiency of determining the target file identifier according to the target file information and increase the speed of difference acquisition, the determining the target file identifier according to the target file information includes:

根据所述目标文件信息确定差异文件信息,并从所述差异文件信息中提取目标差异文件名称;将所述目标差异文件名称与第二映射列表中的差异文件名称进行匹配;根据匹配结果确定与所述目标差异文件名称对应的目标文件标识。Determine the difference file information according to the target file information, and extract the target difference file name from the difference file information; match the target difference file name with the difference file name in the second mapping list; determine and match according to the matching result The target file identifier corresponding to the target difference file name.

应当理解的是,在确定目标文件信息后,可根据目标文件信息确定差异文件信息,具体可为:根据目标文件信息确定待调用文件,并检测待调用文件是否存在差异文件;在待调用文件存在差异文件时,查找待调用文件对应的差异文件信息。It should be understood that after the target file information is determined, the difference file information can be determined according to the target file information, which can be specifically: determine the file to be called according to the target file information, and detect whether there is a difference file in the file to be called; For a difference file, search for the difference file information corresponding to the file to be called.

可以理解的是,由于在进行文件调用时,有的文件存在差异文件,因此,需要从压缩文件系统中获取目标压缩文件以解压得到目标snapshot差量文件,但是,有的文件不存在差异文件,在这种情况如果仍然进行从压缩文件系统获取目标压缩文件的步骤话,会导致无法获取到目标压缩文件,导致系统的运行效率变低,而且容易出现故障。It is understandable that some files have difference files when calling files, so the target compressed file needs to be obtained from the compressed file system to decompress to obtain the target snapshot difference file, but some files do not have difference files. In this case, if the step of obtaining the target compressed file from the compressed file system is still carried out, the target compressed file cannot be obtained, resulting in low operating efficiency of the system and prone to failure.

在本实施例中,为了提高系统的运行效率,降低故障的发生几率,可在确定待调用文件后,检测待调用文件是否存在差异文件,只有在待调用文件存在差异文件时,才执行查找待调用文件对应的差异文件信息的步骤。而如果待调用文件不存在差异文件,则直接将待调用文件作为目标文件反馈给调用进程。In this embodiment, in order to improve the operating efficiency of the system and reduce the probability of failure, after determining the file to be called, it is possible to detect whether there is a difference file in the file to be called. The step of invoking the difference file information corresponding to the file. And if there is no difference file in the file to be called, the file to be called is directly fed back to the calling process as the target file.

应当理解的是,在通过上述步骤确定待调用文件对应的差异文件信息后,可从差异文件信息中提取差异文件名称,进而根据第二映射列表查找差异文件名称对应的目标文件标识。It should be understood that, after determining the difference file information corresponding to the file to be called through the above steps, the difference file name can be extracted from the difference file information, and then the target file identifier corresponding to the difference file name can be searched according to the second mapping list.

进一步地,所述将所述目标差异文件名称与第二映射列表中的差异文件名称进行匹配之前,还包括:Further, before matching the name of the target difference file with the name of the difference file in the second mapping list, it also includes:

获取各snapshot差量文件的差异文件名称;根据所述差异文件名称和与所述snapshot差量文件对应的压缩文件的文件标识建立第二映射列表,所述第二映射列表中记录有所述差异文件名称与所述文件标识之间的对应关系。Obtain the difference file name of each snapshot difference file; establish a second mapping list according to the difference file name and the file identifier of the compressed file corresponding to the snapshot difference file, and record the difference in the second mapping list The corresponding relationship between the file name and the file identifier.

应当理解的是,由于每个snapshot差量文件都有对应的文件名称,可通过文件名称来区分不同的snapshot差量文件,因此,可获取各snapshot差量文件的差异文件名称,并根据差异文件名称和snapshot差量文件对应的压缩文件的文件标识建立第二映射列表,然后在确定目标差异文件名称后,可根据第二映射列表查找与目标差异文件名称对应的目标文件标识。It should be understood that since each snapshot difference file has a corresponding file name, different snapshot difference files can be distinguished by the file name, therefore, the difference file name of each snapshot difference file can be obtained, and based on the difference file The name and the file identifier of the compressed file corresponding to the snapshot difference file establish a second mapping list, and then after the target difference file name is determined, the target file identifier corresponding to the target difference file name can be searched according to the second mapping list.

在具体实现中,例如,三个snapshot差量文件分别为:差异文件1、差异文件2以及差异文件3,差异文件1对应第一差异文件名称,差异文件2对应第二差异文件名称,差异文件3对应第三差异文件名称。而差异文件1对应压缩文件1,压缩文件1对应文件标识1,差异文件2对应压缩文件2,压缩文件2对应文件标识2,差异文件3对应压缩文件3,压缩文件3对应文件标识3。因此,可确定差异文件名称与snapshot差量文件对应的压缩文件的文件标识的对应关系为:第一差异文件名称与文件标识1对应,第二差异文件名称与文件标识2对应,第三差异文件名称与文件标识3对应。所以,可根据差异文件名称与文件标识的对应关系建立第二映射列表。In a specific implementation, for example, the three snapshot difference files are: difference file 1, difference file 2 and difference file 3, difference file 1 corresponds to the name of the first difference file, difference file 2 corresponds to the name of the second difference file, difference file 3 corresponds to the third difference file name. The difference file 1 corresponds to the compressed file 1, the compressed file 1 corresponds to the file ID 1, the difference file 2 corresponds to the compressed file 2, the compressed file 2 corresponds to the file ID 2, the difference file 3 corresponds to the compressed file 3, and the compressed file 3 corresponds to the file ID 3. Therefore, it can be determined that the correspondence between the difference file name and the file identifier of the compressed file corresponding to the snapshot difference file is: the first difference file name corresponds to file identifier 1, the second difference file name corresponds to file identifier 2, and the third difference file The name corresponds to the file ID 3. Therefore, the second mapping list may be established according to the correspondence between the difference file name and the file identifier.

在具体实现中,在目标差异文件名称为第二差异文件名称时,可从第二映射类表中查找与第二差异文件名称对应的文件标识2,将文件标识2作为与目标差异文件名称对应的目标文件标识。In a specific implementation, when the name of the target difference file is the name of the second difference file, the file identifier 2 corresponding to the name of the second difference file can be searched from the second mapping class table, and the file identifier 2 is used as the name corresponding to the name of the target difference file. The target file ID for .

进一步地,由于文件调用指令可能是为了调用完整的文件,而非差量文件,因此,所述对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件之后,还包括:Further, since the file calling instruction may be for calling a complete file instead of a differential file, after decompressing the target compressed file to obtain the target snapshot differential file, the method further includes:

根据所述目标snapshot差量文件对所述待调用文件进行数据处理,以获得目标文件。Perform data processing on the file to be called according to the target snapshot difference file to obtain a target file.

可以理解的是,所述数据处理可为数据还原处理,由于snapshot差量文件中存储的是文件的差量数据,因此,在获得目标snapshot差量文件后,可从目标snapshot差量文件中提取目标差量数据,根据目标差量数据对待调用文件进行数据还原处理,得到目标文件,然后将目标文件反馈给调用进程。It can be understood that the data processing can be data restoration processing. Since the snapshot difference file stores the difference data of the file, after obtaining the target snapshot difference file, it can be extracted from the target snapshot difference file. For the target difference data, data restoration processing is performed on the file to be called according to the target difference data to obtain the target file, and then the target file is fed back to the calling process.

本实施例中通过在接收到文件调用指令时,根据所述文件调用指令确定目标文件信息;根据所述目标文件信息确定目标文件标识;根据所述目标文件标识从所述压缩文件系统中获取目标压缩文件,从而可通过为压缩文件分配文件标识的方式,根据调用指令确定目标文件标识,并根据目标文件标识可准确地从压缩文件系统中获取目标压缩文件,并且提高了目标压缩文件获取的效率。In this embodiment, when a file calling instruction is received, the target file information is determined according to the file calling command; the target file identifier is determined according to the target file information; the target is obtained from the compressed file system according to the target file identifier Compressed files, so that the target file ID can be determined according to the call instruction by assigning a file ID to the compressed file, and the target compressed file can be accurately obtained from the compressed file system according to the target file ID, and the efficiency of obtaining the target compressed file is improved. .

在一实施例中,如图5所示,基于第一实施例或第二实施例提出本发明快照差量获取方法第三实施例,在本实施例中,基于第一实施例进行说明,所述步骤S10之前,还包括:In one embodiment, as shown in FIG. 5 , based on the first embodiment or the second embodiment, a third embodiment of the snapshot difference acquisition method of the present invention is proposed. In this embodiment, description is made based on the first embodiment, so Before the step S10, it also includes:

步骤S01,在接收到snapshot文件时,对所述snapshot文件进行检测,以确定所述snapshot文件对应的文件类型。Step S01 , when a snapshot file is received, the snapshot file is detected to determine the file type corresponding to the snapshot file.

应当理解的是,快照大致分为2种,一种叫做即写即拷(copy-on-write)快照,通常也会叫作指针型快照,VSS即属于这一种,另一种叫做分割镜像快照,常叫做镜像型快照。指针型快照占用空间小,对系统性能影响较小,但如果没有备份而原数据盘坏了,数据就无法恢复了;而镜像型快照实际就是当时数据的全镜像,会对系统性能造成一定负荷,但即使原数据损坏也不会有太大影响,不过要占用到相等容量的空间。It should be understood that snapshots are roughly divided into two types, one is called copy-on-write (copy-on-write) snapshot, usually also called pointer snapshot, VSS belongs to this type, and the other is called split mirror Snapshots are often called mirrored snapshots. Pointer-type snapshots take up less space and have little impact on system performance. However, if there is no backup and the original data disk is damaged, the data cannot be recovered; while mirror-type snapshots are actually a full image of the data at that time, which will cause a certain load on system performance. , but even if the original data is damaged, it will not have much impact, but it will take up an equal capacity of space.

因此,在本实施例中可将文件类型分为指针型快照和镜像型快照,在接收到snapshot文件时,可先对snapshot文件进行检测,以判断snapshot文件对应的文件类型是指针型快照和镜像型快照中的哪一种。Therefore, in this embodiment, file types can be divided into pointer snapshots and mirror snapshots. When a snapshot file is received, the snapshot file can be detected first to determine whether the file type corresponding to the snapshot file is a pointer snapshot or a mirror image. Which of the type snapshots.

步骤S02,根据所述文件类型和所述snapshot文件生成snapshot差量文件。Step S02, generating a snapshot difference file according to the file type and the snapshot file.

可以理解的是,在确定snapshot文件的文件类型后,可根据不同的文件类型使用不同的方式来生成snapshot差量文件。It can be understood that, after the file type of the snapshot file is determined, different methods may be used to generate the snapshot difference file according to different file types.

进一步地,所述根据所述文件类型和所述snapshot文件生成snapshot差量文件,包括:Further, said generating a snapshot difference file according to said file type and said snapshot file includes:

判断所述文件类型是否为指针型快照;在所述文件类型为指针型快照时,将所述snapshot文件作为snapshot差量文件。Determine whether the file type is a pointer snapshot; if the file type is a pointer snapshot, use the snapshot file as a snapshot difference file.

应当理解的是,可先判断文件类型是否为指针型快照,在文件类型为指针型快照时,由于在这种情况下snapshot文件本身存储的就是差量,可直接将snapshot文件作为snapshot差量文件。It should be understood that it is possible to first determine whether the file type is a pointer snapshot. When the file type is a pointer snapshot, since the snapshot file itself stores the difference in this case, the snapshot file can be directly used as the snapshot difference file .

进一步地,所述判断所述文件类型是否为指针型快照之后,还包括:Further, after the judging whether the file type is a pointer snapshot, it also includes:

在所述文件类型不为指针型快照时,判断所述文件类型是否为镜像型快照;在所述文件类型为镜像型快照时,查找所述snapshot文件对应的原始文件;根据所述snapshot文件和所述原始文件生成snapshot差量文件。When the file type is not a pointer snapshot, determine whether the file type is a mirror snapshot; when the file type is a mirror snapshot, find the original file corresponding to the snapshot file; according to the snapshot file and The original file generates a snapshot difference file.

应当理解的是,在文件类型不为指针型快照时,可进一步地判断文件类型是否为镜像型快照,在文件类型为镜像型快照时,说明此时snapshot文件中记录的是完整的镜像文件,因此,在这种情况下为了获得snapshot差量,可查找snapshot文件对应的原始文件,将snapshot文件与原始文件进行比较,以生成snapshot差量文件。It should be understood that, when the file type is not a pointer snapshot, it can be further judged whether the file type is a mirror snapshot, and when the file type is a mirror snapshot, it means that the snapshot file records a complete mirror file at this time. Therefore, in this case, in order to obtain the snapshot difference, the original file corresponding to the snapshot file may be searched, and the snapshot file is compared with the original file to generate the snapshot difference file.

可以理解的是,如果进行上述判断步骤后,判定snapshot文件既不为指针型快照也不为镜像型快照,说明可能存在检测失误的情况。因此,在文件类型不为镜像型快照时,返回执行判断所述文件类型是否为指针型快照的步骤,在这种情况重复多次时,则可判定文件类型检测失败,可暂停文件类型检测步骤,并反馈错误信息。It can be understood that, if the snapshot file is determined to be neither a pointer snapshot nor a mirror snapshot after performing the above determination steps, it may indicate that there may be a detection error. Therefore, when the file type is not a mirror snapshot, return to the step of judging whether the file type is a pointer snapshot, and when this situation is repeated many times, it can be determined that the file type detection has failed, and the file type detection step can be suspended , and feedback an error message.

本实施例中通过在接收到snapshot文件时,对所述snapshot文件进行检测,以确定所述snapshot文件对应的文件类型,根据所述文件类型和所述snapshot文件生成snapshot差量文件,从可根据与文件类型适配的方式对snapshot文件进行处理,以得到snapshot差量文件,提高了snapshot差量文件的生成效率。In this embodiment, when the snapshot file is received, the snapshot file is detected to determine the file type corresponding to the snapshot file, and a snapshot difference file is generated according to the file type and the snapshot file, which can be obtained according to The snapshot file is processed in a manner adapted to the file type to obtain a snapshot difference file, which improves the generation efficiency of the snapshot difference file.

在一实施例中,如图6所示,基于第一实施例或第二实施例或第三实施例提出本发明快照差量获取方法第四实施例,在本实施例中,基于第一实施例进行说明,所述步骤S10,包括:In one embodiment, as shown in FIG. 6 , the fourth embodiment of the method for acquiring snapshot difference of the present invention is proposed based on the first embodiment or the second embodiment or the third embodiment. In this embodiment, based on the first embodiment For example, the step S10 includes:

步骤S101,将snapshot差量文件按顺序拆分成多个待压缩文件,并记录所述待压缩文件对应的排列顺序。Step S101, splitting the snapshot difference file into multiple files to be compressed in sequence, and recording the corresponding sequence of the files to be compressed.

应当理解的是,由于snapshot差量文件的文件体量可能较大,直接对其进行压缩的效果可能不太好,而且为了保持差量的顺序,可将snapshot差量文件按顺序拆分成多个待压缩文件。It should be understood that since the file size of the snapshot difference file may be large, the effect of directly compressing it may not be very good, and in order to maintain the order of the difference, the snapshot difference file can be split into multiple files to be compressed.

在具体实现中,在snapshot差量文件为文件2时,可将文件2拆分为5个待压缩文件,分别为:文件21、文件22、文件23、文件24和文件25,然后可记录文件21、文件22、文件23、文件24和文件25的排列顺序为文件21-文件25。In a specific implementation, when the snapshot difference file is file 2, file 2 can be split into five files to be compressed, namely: file 21, file 22, file 23, file 24, and file 25, and then the files can be recorded 21. The arrangement order of file 22, file 23, file 24 and file 25 is file 21-file 25.

步骤S102,根据所述待压缩文件对应的排列顺序对所述待压缩文件进行压缩处理,以生成压缩文件。Step S102, perform compression processing on the file to be compressed according to the corresponding sequence of the file to be compressed, so as to generate a compressed file.

应当理解的是,可根据排列顺序对待压缩文件进行压缩处理,得到多个子压缩文件,然后根据子压缩文件生成压缩文件。It should be understood that the compressed files may be compressed according to the order in which they are arranged to obtain multiple sub-compressed files, and then the compressed files are generated according to the sub-compressed files.

在具体实现中,可对文件21、文件22、文件23、文件24和文件25进行压缩处理,得到子压缩文件21、子压缩文件22、子压缩文件23、子压缩文件24和子压缩文件25,然后对这些子压缩文件进行二次压缩处理,得到压缩文件2。In specific implementation, file 21, file 22, file 23, file 24 and file 25 can be compressed to obtain sub-compressed file 21, sub-compressed file 22, sub-compressed file 23, sub-compressed file 24 and sub-compressed file 25, Then perform secondary compression processing on these sub-compressed files to obtain compressed file 2 .

进一步地,为了准确地获得目标snapshot差量文件,所述对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件,包括:Further, in order to accurately obtain the target snapshot difference file, the decompressing the target compressed file to obtain the target snapshot difference file includes:

对所述目标压缩文件进行解压处理,以获得多个解压文件;检测所述解压文件的排列顺序;根据所述解压文件的排列顺序对所述解压文件进行排序,以获得目标snapshot差量文件。Decompressing the target compressed file to obtain multiple decompressed files; detecting the sequence of the decompressed files; sorting the decompressed files according to the sequence of the decompressed files to obtain the target snapshot difference file.

应当理解的是,可对目标压缩文件进行解压处理,得到多个目标子压缩文件,然后分别对各目标子压缩文件进行解压处理,得到多个解压文件,进而检测解压文件的排列顺序,根据排列顺序对解压文件进行排序,以获得目标snapshot差量文件。It should be understood that the target compressed file can be decompressed to obtain multiple target sub-compressed files, and then each target sub-compressed file can be decompressed to obtain multiple decompressed files, and then the arrangement order of the decompressed files can be detected. Sort the decompressed files sequentially to obtain the target snapshot difference file.

在具体实现中,在目标压缩文件为压缩文件2时,可对压缩文件2进行解压处理,得到子压缩文件、子压缩文件22、子压缩文件23、子压缩文件24和子压缩文件25,然后分别对这些子压缩文件进行解压处理,得到文件21、文件22、文件23、文件24和文件25,将文件21、文件22、文件23、文件24和文件25作为解压文件,并根据排列顺序对解压文件进行排序,以获得目标snapshot差量文件。In a specific implementation, when the target compressed file is the compressed file 2, the compressed file 2 can be decompressed to obtain the sub-compressed file, the sub-compressed file 22, the sub-compressed file 23, the sub-compressed file 24 and the sub-compressed file 25, and then respectively Decompress these sub-compressed files to obtain file 21, file 22, file 23, file 24 and file 25, use file 21, file 22, file 23, file 24 and file 25 as decompressed files, and decompress them according to the order of arrangement Files are sorted to obtain the target snapshot difference file.

本实施例中通过将snapshot差量文件按顺序拆分成多个待压缩文件,并记录所述待压缩文件对应的排列顺序;根据所述待压缩文件对应的排列顺序对所述待压缩文件进行压缩处理,以生成压缩文件,由于可能存在snapshot差量文件较大的情况,因此,可将snapshot差量文件拆分成多个文件进行压缩,提高了压缩的效率,并且进一步地降低了物理磁盘的占用。In this embodiment, the snapshot difference file is split into a plurality of files to be compressed in sequence, and the sequence corresponding to the files to be compressed is recorded; Compression processing to generate a compressed file. Since there may be a large snapshot difference file, the snapshot difference file can be split into multiple files for compression, which improves the compression efficiency and further reduces the physical disk occupancy.

此外,本发明实施例还提出一种存储介质,所述存储介质上存储有快照差量获取程序,所述快照差量获取程序被处理器执行时实现如上文所述的快照差量获取方法的步骤。In addition, an embodiment of the present invention also proposes a storage medium, on which a snapshot difference acquisition program is stored, and when the snapshot difference acquisition program is executed by a processor, the above-mentioned snapshot difference acquisition method is implemented. step.

由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。Since the storage medium adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.

此外,参照图7,本发明实施例还提出一种快照差量获取装置,所述快照差量获取装置包括:In addition, referring to FIG. 7 , an embodiment of the present invention also proposes a snapshot difference acquisition device, the snapshot difference acquisition device includes:

文件压缩模块10,用于对快照snapshot差量文件进行压缩处理,以生成压缩文件。The file compression module 10 is configured to compress the snapshot difference file to generate a compressed file.

文件存储模块20,用于通过压缩文件系统对所述压缩文件进行存储。The file storage module 20 is configured to store the compressed file through a compressed file system.

文件调用模块30,用于在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件。The file calling module 30 is configured to obtain the target compressed file from the compressed file system according to the file calling instruction when receiving the file calling instruction.

文件解压模块40,用于对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。The file decompression module 40 is configured to decompress the target compressed file to obtain the target snapshot difference file.

本实施例中通过对snapshot差量文件进行压缩处理,以生成压缩文件;通过压缩文件系统对所述压缩文件进行存储;在接收到文件调用指令时,根据所述文件调用指令从所述压缩文件系统中获取目标压缩文件;对所述目标压缩文件进行解压处理,以获得目标snapshot差量文件。在本实施例中,对snapshot差量文件进行压缩处理生成压缩文件并存储在压缩文件系统中,进而在需要调用文件时,从压缩文件系统获取目标压缩文件并解压得到目标snapshot差量文件,降低了存储snapshot差量文件的物理磁盘占用,从而降低了获取snapshot差量文件时的性能开销。In this embodiment, the snapshot difference file is compressed to generate a compressed file; the compressed file is stored through the compressed file system; The target compressed file is obtained in the system; the target compressed file is decompressed to obtain the target snapshot difference file. In this embodiment, the snapshot difference file is compressed to generate a compressed file and stored in the compressed file system, and then when the file needs to be called, the target compressed file is obtained from the compressed file system and decompressed to obtain the target snapshot difference file, reducing the The physical disk occupation for storing snapshot difference files is reduced, thereby reducing the performance overhead when obtaining snapshot difference files.

在一实施例中,所述文件调用模块30,还用于获取各snapshot差量文件的差异文件名称;根据所述差异文件名称和与所述snapshot差量文件对应的压缩文件的文件标识建立第二映射列表,所述第二映射列表中记录有所述差异文件名称与所述文件标识之间的对应关系。In one embodiment, the file invoking module 30 is further configured to obtain the difference file name of each snapshot difference file; and establish the first step according to the difference file name and the file identifier of the compressed file corresponding to the snapshot difference and a mapping list, the correspondence between the difference file names and the file identifiers is recorded in the second mapping list.

在一实施例中,所述文件调用模块30,还用于根据所述目标文件信息确定待调用文件,并检测所述待调用文件是否存在差异文件;在所述待调用文件存在差异文件时,查找所述待调用文件对应的差异文件信息。In one embodiment, the file calling module 30 is further configured to determine the file to be called according to the target file information, and detect whether there is a difference file in the file to be called; when there is a difference file in the file to be called, Find the difference file information corresponding to the file to be called.

在一实施例中,所述文件调用模块30,还用于根据所述目标snapshot差量文件对所述待调用文件进行数据处理,以获得目标文件。In an embodiment, the file calling module 30 is further configured to perform data processing on the file to be called according to the target snapshot difference file, so as to obtain a target file.

在一实施例中,所述快照差量获取装置还包括差量文件模块,用于在接收到snapshot文件时,对所述snapshot文件进行检测,以确定所述snapshot文件对应的文件类型;根据所述文件类型和所述snapshot文件生成snapshot差量文件。In an embodiment, the snapshot difference acquisition device further includes a difference file module, configured to detect the snapshot file when receiving the snapshot file, so as to determine the file type corresponding to the snapshot file; according to the The above file type and the above snapshot file generate a snapshot difference file.

在一实施例中,所述差量文件模块,还用于判断所述文件类型是否为指针型快照;在所述文件类型为指针型快照时,将所述snapshot文件作为snapshot差量文件。In an embodiment, the differential file module is further configured to determine whether the file type is a pointer snapshot; if the file type is a pointer snapshot, use the snapshot file as a snapshot differential file.

在一实施例中,所述差量文件模块,还用于在所述文件类型不为指针型快照时,判断所述文件类型是否为镜像型快照;在所述文件类型为镜像型快照时,查找所述snapshot文件对应的原始文件;根据所述snapshot文件和所述原始文件生成snapshot差量文件。In an embodiment, the differential file module is further configured to determine whether the file type is a mirror snapshot when the file type is not a pointer snapshot; when the file type is a mirror snapshot, Find the original file corresponding to the snapshot file; generate a snapshot difference file according to the snapshot file and the original file.

在一实施例中,所述文件压缩模块10,还用于将snapshot差量文件按顺序拆分成多个待压缩文件,并记录所述待压缩文件对应的排列顺序;根据所述待压缩文件对应的排列顺序对所述待压缩文件进行压缩处理,以生成压缩文件。In one embodiment, the file compression module 10 is further configured to sequentially split the snapshot difference file into a plurality of files to be compressed, and record the sequence corresponding to the files to be compressed; according to the file to be compressed Perform compression processing on the to-be-compressed files in the corresponding sequence to generate compressed files.

在一实施例中,所述文件解压模块40,还用于对所述目标压缩文件进行解压处理,以获得多个解压文件;检测所述解压文件的排列顺序;根据所述解压文件的排列顺序对所述解压文件进行排序,以获得目标snapshot差量文件。In one embodiment, the file decompression module 40 is further configured to decompress the target compressed file to obtain a plurality of decompressed files; detect the arrangement order of the decompressed files; Sorting the decompressed files to obtain target snapshot difference files.

在本发明所述快照差量获取装置的其他实施例或具体实现方法可参照上述各方法实施例,此处不再赘述。For other embodiments or specific implementation methods of the apparatus for obtaining snapshot difference in the present invention, reference may be made to the above-mentioned method embodiments, which will not be repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该估算机软件产品存储在如上所述的一个估算机可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台智能设备(可以是手机,估算机,快照差量获取设备,或者网络快照差量获取设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium as described above (such as ROM/RAM, magnetic disk, optical disk), including several instructions to make a smart device (which can be a mobile phone, an estimator, a snapshot difference acquisition device, or a network snapshot difference acquisition device, etc.) execute each method of the present invention. The method described in the examples.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.

Claims (17)

1. A snapshot delta acquisition method is characterized by comprising the following steps:
compressing the snapshot delta file to generate a compressed file;
storing the compressed file through a compressed file system;
when a file calling instruction is received, acquiring a target compressed file from the compressed file system according to the file calling instruction;
decompressing the target compressed file to obtain a target snapshot differential file;
before compressing the snapshot delta file to generate a compressed file, the method further includes:
when a snapshot file is received, detecting the snapshot file to determine a file type corresponding to the snapshot file;
generating a snapshot difference quantity file according to the file type and the snapshot file;
the generating a snapshot delta file according to the file type and the snapshot file comprises:
judging whether the file type is a pointer type snapshot or not;
when the file type is a pointer snapshot, the snapshot file is used as a snapshot difference file;
after the step of judging whether the file type is the pointer type snapshot, the method further comprises the following steps:
when the file type is not the pointer snapshot, judging whether the file type is the mirror snapshot or not;
when the file type is a mirror image type snapshot, searching an original file corresponding to the snapshot file;
and generating a snapshot difference file according to the snapshot file and the original file.
2. The snapshot delta acquisition method as recited in claim 1, wherein said acquiring a target compressed file from said compressed file system according to a file call instruction when receiving said file call instruction comprises:
when a file calling instruction is received, determining target file information according to the file calling instruction;
determining a target file identifier according to the target file information;
and acquiring a target compressed file from the compressed file system according to the target file identifier.
3. The snapshot delta acquisition method as recited in claim 2 wherein said acquiring a target compressed file from said compressed file system based on said target file identification comprises:
matching the target file identification with the file identification in the first mapping list;
determining a target compressed file corresponding to the target file identifier according to the matching result;
and searching a target file address corresponding to the target compressed file, and acquiring the target compressed file from the compressed file system according to the target file address.
4. The snapshot delta acquisition method as recited in claim 3, wherein prior to said matching said target file identification with a file identification in a first mapping list, further comprising:
distributing file identifications for each compressed file, and establishing a first mapping list according to the file identifications and the compressed files, wherein the first mapping list records the corresponding relation between the file identifications and the compressed files.
5. The snapshot delta acquisition method as recited in claim 4 wherein said determining a target file identification based on said target file information comprises:
determining difference file information according to the target file information, and extracting a target difference file name from the difference file information;
matching the target differential file name with the differential file name in a second mapping list;
and determining a target file identifier corresponding to the target difference file name according to the matching result.
6. The snapshot delta acquisition method as recited in claim 5 wherein prior to said matching said target differential file name to a differential file name in a second mapping list, further comprising:
acquiring a difference file name of each snapshot difference quantity file;
and establishing a second mapping list according to the difference file name and the file identifier of the compressed file corresponding to the snapshot difference amount file, wherein the second mapping list records the corresponding relation between the difference file name and the file identifier.
7. The snapshot delta acquisition method as recited in claim 5 wherein said determining differential file information based on said target file information comprises:
determining a file to be called according to the target file information, and detecting whether the file to be called has a difference file;
and when the file to be called has a difference file, searching the difference file information corresponding to the file to be called.
8. The snapshot delta acquisition method according to claim 7, wherein after said decompressing the target compressed file to obtain the target snapshot delta file, further comprising:
and carrying out data processing on the file to be called according to the target snapshot difference file so as to obtain a target file.
9. The snapshot delta acquisition method according to any one of claims 1 to 8, wherein said compressing the snapshot delta file to generate a compressed file comprises:
splitting the snapshot difference file into a plurality of files to be compressed according to a sequence, and recording a corresponding arrangement sequence of the files to be compressed;
and compressing the files to be compressed according to the arrangement sequence corresponding to the files to be compressed to generate compressed files.
10. The snapshot delta acquisition method as claimed in claim 9, wherein said decompressing said target compressed file to obtain a target snapshot delta file comprises:
decompressing the target compressed file to obtain a plurality of decompressed files;
detecting the arrangement sequence of the decompressed files;
and sequencing the decompressed files according to the arrangement sequence of the decompressed files to obtain a target snapshot differential file.
11. A snapshot delta acquisition device, comprising:
the file compression module is used for compressing the snapshot difference quantity file to generate a compressed file;
the file storage module is used for storing the compressed file through a compressed file system;
the file calling module is used for acquiring a target compressed file from the compressed file system according to a file calling instruction when the file calling instruction is received;
the file decompression module is used for decompressing the target compressed file to obtain a target snapshot differential file;
wherein, the snapshot delta obtaining device further comprises:
the snapshot file detection module is used for detecting the snapshot file when the snapshot file is received so as to determine a file type corresponding to the snapshot file; generating a snapshot difference quantity file according to the file type and the snapshot file;
the delta file module is also used for judging whether the file type is a pointer snapshot or not; when the file type is a pointer snapshot, taking the snapshot file as a snapshot differential file;
the delta file module is further used for judging whether the file type is a mirror image snapshot or not when the file type is not a pointer snapshot; when the file type is a mirror image type snapshot, searching an original file corresponding to the snapshot file; and generating a snapshot difference file according to the snapshot file and the original file.
12. The snapshot delta acquisition device as recited in claim 11, wherein the file call module is further configured to determine target file information according to a file call instruction when receiving the file call instruction; determining a target file identifier according to the target file information; and acquiring a target compressed file from the compressed file system according to the target file identifier.
13. The snapshot delta acquisition device as recited in claim 12 wherein said file call module is further configured to match said target file identifier with a file identifier in a first mapping list; determining a target compressed file corresponding to the target file identifier according to the matching result; and searching a target file address corresponding to the target compressed file, and acquiring the target compressed file from the compressed file system according to the target file address.
14. The snapshot delta acquisition device as recited in claim 13, wherein the file calling module is further configured to allocate a file identifier for each compressed file, and establish a first mapping list according to the file identifier and the compressed file, where a corresponding relationship between the file identifier and the compressed file is recorded in the first mapping list.
15. The snapshot delta acquisition device as claimed in claim 14, wherein said file calling module is further configured to determine difference file information according to said target file information, and extract a target difference file name from said difference file information; matching the target differential file name with the differential file name in a second mapping list; and determining a target file identifier corresponding to the target difference file name according to the matching result.
16. A snapshot delta acquisition device, comprising: a memory, a processor, and a snapshot delta acquisition program stored on the memory and executable on the processor, the snapshot delta acquisition program configured with steps to implement the snapshot delta acquisition method of any of claims 1-10.
17. A storage medium having stored thereon a snapshot delta acquisition program which, when executed by a processor, implements the steps of the snapshot delta acquisition method as recited in any one of claims 1 to 10.
CN202011522534.2A 2020-12-23 2020-12-23 Snapshot difference obtaining method, device, equipment and storage medium Active CN112579357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522534.2A CN112579357B (en) 2020-12-23 2020-12-23 Snapshot difference obtaining method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522534.2A CN112579357B (en) 2020-12-23 2020-12-23 Snapshot difference obtaining method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112579357A CN112579357A (en) 2021-03-30
CN112579357B true CN112579357B (en) 2022-11-04

Family

ID=75136505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522534.2A Active CN112579357B (en) 2020-12-23 2020-12-23 Snapshot difference obtaining method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579357B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116701238A (en) * 2022-09-14 2023-09-05 荣耀终端有限公司 Drive file processing method and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714089A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Method for installing external member and method for making external member mapping file
CN103999034A (en) * 2011-12-20 2014-08-20 Netapp股份有限公司 System, method and computer program product for providing sparse snapshots
CN104781791A (en) * 2011-12-05 2015-07-15 持续电信解决方案公司 Universal pluggable cloud disaster recovery system
CN105162869A (en) * 2015-09-18 2015-12-16 久盈世纪(北京)科技有限公司 Data backup management method and equipment
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
US20170357551A1 (en) * 2016-06-08 2017-12-14 Red Hat Israel, Ltd. Snapshot version control
CN108959614A (en) * 2018-07-17 2018-12-07 郑州云海信息技术有限公司 A kind of snapshot management method, system, device, equipment and readable storage medium storing program for executing
CN110114751A (en) * 2017-01-06 2019-08-09 甲骨文国际公司 The ZFS cloud storage of the End to End Encryption of compression and safety

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714089A (en) * 2008-10-07 2010-05-26 英业达股份有限公司 Method for installing external member and method for making external member mapping file
CN104781791A (en) * 2011-12-05 2015-07-15 持续电信解决方案公司 Universal pluggable cloud disaster recovery system
CN103999034A (en) * 2011-12-20 2014-08-20 Netapp股份有限公司 System, method and computer program product for providing sparse snapshots
CN105162869A (en) * 2015-09-18 2015-12-16 久盈世纪(北京)科技有限公司 Data backup management method and equipment
US20170357551A1 (en) * 2016-06-08 2017-12-14 Red Hat Israel, Ltd. Snapshot version control
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
CN110114751A (en) * 2017-01-06 2019-08-09 甲骨文国际公司 The ZFS cloud storage of the End to End Encryption of compression and safety
CN108959614A (en) * 2018-07-17 2018-12-07 郑州云海信息技术有限公司 A kind of snapshot management method, system, device, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112579357A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN109034993B (en) Account checking method, account checking equipment, account checking system and computer readable storage medium
US10452376B2 (en) Method for identifying file and mobile terminal
CN107943841A (en) Stream data processing method, system and computer-readable recording medium
CN109408507B (en) Multi-attribute data processing method, device, equipment and readable storage medium
CN113127125B (en) Page automatic adaptation method, device, equipment and storage medium
CN112084199B (en) General parameter maintenance method and device based on scene
CN113806301B (en) Data synchronization method, device, server and storage medium
CN112115105A (en) Service processing method, device and equipment
CN110808738A (en) Data compression method, device, equipment and computer readable storage medium
CN112579357B (en) Snapshot difference obtaining method, device, equipment and storage medium
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
WO2023020187A1 (en) Data obtaining methods and apparatuses, electronic device and storage medium
CN111444200A (en) Data updating method and storage medium
CN109325057B (en) Middleware management method, device, computer equipment and storage medium
CN114547030B (en) Multi-level time series data compression method, device, electronic equipment and storage medium
CN104965786A (en) Debugging method for application program, debugging host and running host
CN106855816B (en) Resource file loading method and device of application program in terminal
CN110908958B (en) File processing method, device, terminal and storage medium
JP6178119B2 (en) Data migration system and data migration method
CN114860295A (en) Resource file updating method, apparatus, device and readable storage medium
CN110413603B (en) Method and device for determining repeated data, electronic equipment and computer storage medium
CN114238264B (en) Data processing method, device, computer equipment and storage medium
CN112541182B (en) Kernel VFS layer system repairing method, device, equipment and storage medium
CN112257106A (en) Data detection method and device
KR20210016944A (en) An electronic device for performing media scan and media scan method thereof

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
GR01 Patent grant
GR01 Patent grant