Computing devices in a system may include any number of internal components such as processors, memory, and persistent storage. The storage of data across multiple computing devices may require significant use of such internal components. Performing deduplication on such data prior to storage may improve the overall operation of such computing devices.
In general, in one aspect, the invention relates to a method for managing file based backups (FBBs). The method includes obtaining, by a FBB metadata file manager, a FBB mount request for a FBB mount of a FBB from an application, wherein the application is executing in a production host environment, in response to the FBB mount request, the FBB metadata file manager: identifies a FBB in a backup storage system, obtains a FBB metadata file corresponding to the FBB from the backup storage system, performs an attribute analysis to identify the storage location attributes in the FBB metadata file, stores a FBB virtual file system in the production host environment using the storage location attributes, and enables access to the FBB virtual file system by the application.
In general, in one aspect, the invention relates to a non-transitory computer readable medium that includes computer readable program code, which when executed by a computer processor enables the computer processor to perform a method for managing file based backups (FBBs). The method includes obtaining, by a FBB metadata file manager, a FBB mount request for a FBB mount of a FBB from an application, wherein the application is executing in a production host environment, in response to the FBB mount request, the FBB metadata file manager: identifies a FBB in a backup storage system, obtains a FBB metadata file corresponding to the FBB from the backup storage system, performs an attribute analysis to identify the storage location attributes in the FBB metadata file, stores a FBB virtual file system in the production host environment using the storage location attributes, and enables access to the FBB virtual file system by the application.
In general, in one aspect, the invention relates to a system that includes a processor and memory that includes instructions, which when executed by the processor, perform a method. The method includes obtaining, by a FBB metadata file manager, a FBB mount request for a FBB mount of a FBB from an application, wherein the application is executing in a production host environment, in response to the FBB mount request, the FBB metadata file manager: identifies a FBB in a backup storage system, obtains a FBB metadata file corresponding to the FBB from the backup storage system, performs an attribute analysis to identify the storage location attributes in the FBB metadata file, stores a FBB virtual file system in the production host environment using the storage location attributes, and enables access to the FBB virtual file system by the application.
Certain embodiments of the invention will be described with reference to the accompanying drawings. However, the accompanying drawings illustrate only certain aspects or implementations of the invention by way of example and are not meant to limit the scope of the claims.
Specific embodiments will now be described with reference to the accompanying figures. In the following description, numerous details are set forth as examples of the invention. It will be understood by those skilled in the art that one or more embodiments of the present invention may be practiced without these specific details and that numerous variations or modifications may be possible without departing from the scope of the invention. Certain details known to those of ordinary skill in the art are omitted to avoid obscuring the description.
In the following description of the figures, any component described with regard to a figure, in various embodiments of the invention, may be equivalent to one or more like-named components described with regard to any other figure. For brevity, descriptions of these components will not be repeated with regard to each figure. Thus, each and every embodiment of the components of each figure is incorporated by reference and assumed to be optionally present within every other figure having one or more like-named components. Additionally, in accordance with various embodiments of the invention, any description of the components of a figure is to be interpreted as an optional embodiment, which may be implemented in addition to, in conjunction with, or in place of the embodiments described with regard to a corresponding like-named component in any other figure.
In general, embodiments of the invention relate to a method and system for managing file based backups. Embodiments of the invention relate to a system for utilizing a file based backup (FBB) metadata file of a FBB stored in a backup storage system to enable access to the data of the FBB by an application managing the file system corresponding to the FBB. The application may operate from a production host environment that is operatively connected to the backup storage system. The FBB metadata file may be utilized by obtaining attributes corresponding to the data in the FBB, including the storage location, file name, and file size, and allowing access to those attributes by the applications. A FBB metadata file manager executing on the production host environment may utilize the obtained attributes to enable access to the data (e.g., the files) in the FBB by the applications. For example, the FBB metadata file manager may implement a virtual file system that specifies the files in the file based backup and the storage location in the backup storage system.
Embodiments of the invention further may include a method for managing the data accessed by the applications by generating temporary storage devices. A backup agent would manage the generation and execution of the temporary storage devices. The storage devices may be executed in the production host environment, in the backup storage system, or in an additional entity without departing from the invention. A temporary storage device manager may generate the temporary storage devices and populate them with requested data from a FBB stored in the backup storage device. The temporary storage device manager may store a copy of the requested data in the temporary storage device. The application requesting the data may read and/or write to the data in the temporary storage device. The temporary storage device may be used in the generation of future FBBs of the file system used by the application.
Embodiments of the invention further include methods for generating and storing the FBBs in target backup storage devices regardless of the storage protocol implemented by the backup storage systems. Embodiments of the invention include generating the FBB backup, identifying the target backup system to which the FBB is to be stored, identifying the target exposed API(s) provided by the identified backup storage system, and generating an API command based on the identified exposed API(s).
In one or more embodiments of the invention, the backup agent (100) manages backup operations of data in the production host environment (130). The backup operations may include generating, storing, and/or recovering file based backups (FBBs) stored in the backup storage system (150). In one or more embodiments of the invention, a FBB is a backup of a file system that has been updated, modified, and/or otherwise accessed by the applications (132) in the production host environment (130). The backup agent (100) may perform the method of
In one or more embodiments of the invention, the backup agent (100) further includes a FBB temporary storage device manager (102) (also referred to as a temporary storage device manager). The temporary storage device manager (102) generates one or more temporary storage devices. Each temporary storage devices may include at least a portion of data in a FBB. The data may be copied from the FBB and stored in the temporary storage device such that the data in the temporary storage devices is accessible by the applications (132). The generation of the temporary storage devices may be performed in accordance with
In one or more embodiments of the invention, the backup agent (100) is implemented as a computing device (see e.g.,
In one or more embodiments of the invention, the backup agent (100) is implemented as a logical device. The logical device may utilize the computing resources of any number of computing devices and thereby provide the functionality of the backup agent (100) described throughout this application and/or all, or a portion thereof, of the methods illustrated in
While the backup agent (100) is illustrated in
In one or more embodiments of the invention, the production host environment (130) hosts applications (132). The applications (132) may be logical entities executed using computing resources (not shown) of the production host environment (130). Each of the applications may be performing similar or different processes. In one or more embodiments of the invention, the applications (132) provide services to users, e.g., clients (not shown). For example, the applications (132) may host components. The components may be, for example, instances of databases, email servers, and/or other components. The applications (132) may host other types of components without departing from the invention.
In one or more embodiments of the invention, the applications (132) generate application data to be utilized for the servicing of the users. The application data may be organized in accordance with a file system. The file system may include any number of files organized into directories. For example, the directories may include paths for accessing the files. The file system may be stored in a container stored in the persistent storage (134) of the production host environment (130).
In one or more of embodiments of the invention, the applications (132) are implemented as computer instructions, e.g., computer code, stored on a persistent storage (e.g., 134) that when executed by a processor(s) of the production host environment (130) cause the production host environment (130) to provide the functionality of the applications (132) described throughout this application.
In one or more embodiments of the invention, the production host environment (130) further includes a FBB metadata file manager (136). In one or more embodiments of the invention, the FBB metadata file manager (136) obtains FBB metadata files, obtains the relevant metadata attributes, and prepares a FBB virtual file system for the applications (132) to use when accessing data in the FBBs stored in the backup storage system (150). The FBB metadata file manager (136) may perform the method of
In one or more embodiments of the invention, the production host environment (130) is implemented as a computing device (see e.g.,
In one or more embodiments of the invention, the production host environment (130) is implemented as a logical device. The logical device may utilize the computing resources of any number of computing devices and thereby provide the functionality of the production host environment (130) described throughout this application.
In one or more embodiments of the invention, each of the backup storage systems (150) stores FBBs. The FBBs may be backups for file systems. The file systems may be based on files used by the applications (132). The FBBs may each correspond to a point in time of the file system. The FBBs may be used to restore the file system to such corresponding point in time.
In one or more embodiments of the invention, the backup storage system (150) is implemented as a computing device (see e.g.,
In one or more embodiments of the invention, the backup storage system (150) is implemented as a logical device. The logical device may utilize the computing resources of any number of computing devices and thereby provide the functionality of the backup storage system (150) described throughout this application.
In one or more embodiments of the invention, the file system data includes data for one or more files (202A, 202B). Each file data (202A, 202B) may correspond to a file in the file system. The file data (also referred to as file system data) may further include data tags. In one or more embodiments of the invention, the data tags may be associated with the storage format of the file data (202A, 202B). For example, the file data (202A, 202B) may be stored in a common data streaming format (CDSF). In one or more embodiments of the invention, the CDSF may be a format that includes the data tags that may correspond to a portion of data and may specify the FBB corresponding to the portion of data. In this manner, the file data (202A, 202B) may include: (i) the data of the files and/or file system and (ii) the data tags that specify the metadata of one or more portions of data of the file data (202A, 202B).
In one or more embodiments of the invention, the FBB metadata file (204) is a data structure that includes metadata corresponding to the files in the file system data (202). The metadata may include attributes (204A, 204N) of a file. Each attribute may describe an aspect of a file. Examples of attributes (204A, 204N) include, but are not limited to: a file identifier, a parent file identifier, a container identifier, a file size, a hash value of the file data, a checksum value of the file data, a header size, and an offset of the file in which is stored.
In one or more embodiments of the invention, the attributes in the FBB metadata file (204) are grouped into attribute regions. The attribute regions may be groupings of the metadata attributes. The attribute regions may be grouped based on a likelihood of an attribute changing between various iterations of a FBB (e.g., 200).
For example, consider a scenario in which a first attribute (e.g., a file size) changes from a first iteration of a file system of a first FBB to a second iteration of the file system of a second FBB. In contrast, a second attribute (e.g., a file name) may remain the same between the two iterations of the file system. In such scenario, based on their likelihood to change in future iterations of the file system, the first attribute may correspond to a first attribute region, and the second attribute may correspond to a second attribute region.
Turning to
In step 302, a FBB in a backup storage system is identified. In one or more embodiments of the invention, the FBB is identified based on the specified point in time in the FBB mount request. Further, the FBB may be identified based on the specified file system. The FBB metadata file manager (or other entity) may analyze the FBBs stored in the backup storage system to identify a FBB that corresponds to the requested file system and/or point in time.
In step 304, a FBB metadata file corresponding to the FBB is obtained from the backup storage system. In one or more embodiments of the invention, the FBB metadata file manager may send a request (e.g., as an API command) to the backup storage system that specifies the FBB metadata file of the identified FBB.
In step 306, an attribute analysis is performed on attributes specified in the FBB metadata file to identify storage location attributes in the FBB metadata file. In one or more embodiments of the invention, the attribute analysis is a process for analyzing the attributes specified in the FBB metadata file that specify the storage location of the data and enable access to the data. Such attributes may include, but are not limited to: an offset of a portion of data in a storage device, a size of the portion of data, a file name corresponding to the portion of data, and a file path based on the file system.
In step 308, a FBB virtual file system is stored in the production host environment based on the attribute analysis. In one or more embodiments of the invention, the FBB virtual file system is an organization of the storage attributes such that the application may access (e.g., read) data of the file system from the FBB. The FBB virtual file system would be organized on a file-storage basis such that the FBB virtual file system would specify each file in the file system of the FBB and the storage of the data corresponding to each file.
In step 310, access to the FBB virtual file system by the application is enabled. In one or more embodiments of the invention, the access includes establishing the organization of the FBB virtual file system so that the application may send read requests for the data (e.g., one or more files) in the FBB. The entity servicing the read request (e.g., a driver in the production host environment) may utilize the FBB virtual file system to identify the file(s), the storage location of the data corresponding to the file(s), and send API requests to the backup storage system to obtain the specified data.
In one or more embodiments of the invention, the access to the FBB virtual file system may include obtaining a read request for the file system data in the FBB. The file system data may include files. The entity (e.g., the FBB metadata file manager) managing the FBB virtual file system may identify a file path corresponding to the requested data. The file path may specify the portions of data corresponding to the requested files. Based on the identified file path, the requested data may be obtained from the backup storage system. For example, a copy of the requested data may be generated and provided to the application.
In one or more embodiments of the invention, the read request may be serviced in accordance with
In step 320, a file request for a set of one or more files stored in a FBB is obtained from an application. The file request may specify a desire to write, read from, and/or otherwise access the set of files from the FBB.
In step 322, the storage of the set of files is identified in the backup storage system. In one or more embodiments of the invention, the storage of the set of files is identified using a FBB virtual file system. The FBB virtual file system may specify each of the set of files and the storage locations of the set of files in the backup storage system.
In step 324, generation of a temporary storage device is initiated that includes a copy of the set of files of the FBB. In one or more embodiments of the invention, the temporary storage device is generated by partitioning a portion of the storage of the backup agent (or other entity managing the temporary storage devices) to be reserved for the set of files. The temporary storage device may be populated with a copy of the data from the FBB. The copy may be generated without the data tags of the file system data. In this manner, the data corresponding to the set of files may be organized to enable access to the data by the application without the data tags interrupting the access to the data.
In step 326, access to the temporary storage device is initiated by the application. In one or more embodiments of the invention, the generation of the temporary storage device results in an update to the FBB virtual file system such that the application may access the data in the temporary storage device via the FBB virtual file system. In one or more embodiments of the invention, the access includes allowing the application to read from, write to, and/or otherwise modify the data in the temporary storage device via the FBB virtual file system. Any modifications to the data by the application may be stored and tracked in the temporary storage device.
In one or more embodiments of the invention, the temporary storage device may be deleted following a generation of a FBB of the file system to which the data in the temporary storage device corresponds to. The FBB may be generated in accordance with
In step 340, a FBB request is obtained for a file system at a point in time. The FBB request may specify generating and storing a FBB of the file system at the point in time. The FBB request may specify the backup storage system in which the FBB is to be stored.
In step 342, a set of temporary storage devices associated with the file system. In one or more embodiments of the invention, the set of temporary storage devices that are identified are those that have been generated based on the file system. The temporary storage devices may be identified based on temporary storage device identifiers of the temporary storage devices. Each of the temporary storage devices may specify the file system and/or a set of data corresponding to the file system.
In step 344, generating a FBB using data in the production host environment and the set of temporary storage devices. In one or more embodiments of the invention, the FBB is generated by generating a copy of the data in the production host environment, generating a copy of the data in the set of temporary storage devices, replacing any data in the production host environment with the corresponding data in the set of temporary storage devices.
In step 346, generating a FBB metadata file corresponding to the FBB. In one or more embodiments of the invention, the FBB metadata file is generated by generating metadata attributes corresponding to each file in the file system. The metadata file may be populated based on the corresponding attributes of the copy of the data generated in step 344 (e.g., file name identifiers, file size, etc.). The storage location attributes of the FBB metadata file may be generated based on the storage of the FBB in the backup storage system as performed in step 348.
In step 348, the FBB and the FBB metadata file is stored in the backup storage system. In one or more embodiments of the invention, the storage includes storing the FBB in a CDSF. The storage of the FBB may include generating data tags for portions of the data in the FBB, storing the data tags with the portions of the data, and tracking the storage of the data in the FBB metadata file.
In step 360, a FBB generation request for a file system at a point in time is obtained. The FBB generation request may specify generating and storing a FBB of the file system at the point in time. The FBB request may specify the backup storage system in which the FBB is to be stored. Alternatively, the backup storage system may not be specified in the FBB generation request.
In step 362, a target backup storage system in which to store the FBB is identified. In such embodiments in which the FBB generation request does not specify the target backup storage system, the backup agent may identify the target backup storage system by identifying the connection to one or more backup storage systems, determining one of the backup storage systems that may store the FBB in a CDSF. The backup agent may select, from the determined backup storage systems, a target storage system.
In step 364, a target exposed API associated with the target backup storage system is identified. In one or more embodiments of the invention, following the selection and/or identification of the target backup storage system, the backup agent may identify a target exposed API of the target backup storage system by establishing a connection with the target backup storage system, sending a request of the API protocol implemented by the target backup storage system, and obtaining a response from the target backup storage system.
In step 366, a FBB is generated corresponding to the FBB generation request. In one or more embodiments of the invention, the FBB is generated by generating a copy of the data in the production host environment, generating a copy of the data in a set of temporary storage devices, replacing any data in the production host environment with the corresponding data in the set of temporary storage devices.
In step 368, an API command is generated based on the FBB. In one or more embodiments of the invention, the API command specifies the storage of the FBB in the CDSF. The API command may be generated based on the exposed API identified for the target backup storage system.
In step 370, storage of the FBB is initiated using the API command. In one or more embodiments of the invention, the API command is sent to the target backup storage system. The API command may include, or otherwise reference, the FBB. The target backup storage system may perform the storage of the FBB in the CDSF.
The following section describes an example. The example, illustrated in
Application A (432) sends a FBB mount request to the FBB metadata file manager (434) that specifies the mounting of FBB A (452) for access by application A (432) [1].
The FBB metadata file manager (434) performs the method of
The FBB temporary storage device manager (462) utilizes the obtained information to generate a temporary storage device (464) [6]. The FBB temporary storage device manager (462) populates the temporary storage device (464) with a copy of the requested file generated from FBB A (452) in the backup storage system (450) [7]. The storage of the copy of the file in the temporary storage device (464) is provided to the FBB virtual file system (436).
Following the generation of the temporary storage system (464), application A (432) sends write requests using the FBB A virtual file system (436) that specify writing to the file in the temporary storage device (464). The file may be written to in accordance with the write request in the temporary storage device (464) [8].
As discussed above, embodiments of the invention may be implemented using computing devices.
In one embodiment of the invention, the computer processor(s) (402) may be an integrated circuit for processing instructions. For example, the computer processor(s) may be one or more cores or micro-cores of a processor. The computing device (400) may also include one or more input devices (410), such as a touchscreen, keyboard, mouse, microphone, touchpad, electronic pen, or any other type of input device. Further, the communication interface (412) may include an integrated circuit for connecting the computing device (400) to a network (not shown) (e.g., a local area network (LAN), a wide area network (WAN) such as the Internet, mobile network, or any other type of network) and/or to another device, such as another computing device.
In one embodiment of the invention, the computing device (400) may include one or more output devices (408), such as a screen (e.g., a liquid crystal display (LCD), a plasma display, touchscreen, cathode ray tube (CRT) monitor, projector, or other display device), a printer, external storage, or any other output device. One or more of the output devices may be the same or different from the input device(s). The input and output device(s) may be locally or remotely connected to the computer processor(s) (402), non-persistent storage (404), and persistent storage (406). Many different types of computing devices exist, and the aforementioned input and output device(s) may take other forms.
One or more embodiments of the invention may be implemented using instructions executed by one or more processors of the data management device. Further, such instructions may correspond to computer readable instructions that are stored on one or more non-transitory computer readable mediums.
One or more embodiments of the invention may improve the operation of one or more computing devices. More specifically, embodiments of the invention improve the operation of the storage and access of data for file systems stored in backups stored in a backup storage system. Embodiments of the invention provide a use of a virtual file system that is tailored to access data for a file based backup that is stored in a format that would otherwise make access to such data difficult.
Embodiments of the invention further include providing temporary storage devices for requested data in the file based backup to be accessed by applications. The use of the temporary storage devices prevent modifications to the data in the file based backups, which would be undesirable when restoring the file system to a previous point in time. Further, the data in the temporary storage device may be used for future backups of the file system.
While the invention has been described above with respect to a limited number of embodiments, those skilled in the art, having the benefit of this disclosure, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Accordingly, the scope of the invention should be limited only by the attached claims.
Number | Date | Country | Kind |
---|---|---|---|
202141025663 | Jun 2021 | IN | national |