Tape library backup archiving method and device, computing equipment and storage medium
Through incremental backup policies and archive policies, the problem of insufficient flexibility in existing tape library backup methods is solved, efficient data management and storage is achieved, and user control is enhanced.
Patent Information
- Application Number
- CN202411137234.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-10
AI Technical Summary
Existing library backup methods lack flexibility and cannot meet specific needs or customization requirements in environments, limiting users' choices and control over backup and archive policies.
The incremental backup strategy is used to back up the changed files to the tape, and the backup data is archived into the tape according to the archive strategy. By obtaining tape loading instructions, positioning instructions, backup instructions and recovery instructions, efficient data management and storage are achieved.
Improve backup efficiency, optimize storage management, improve data management efficiency, and provide more flexible backup and archive strategy selection.
Smart Images

Figure CN119105910A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of tape library backup, and more specifically to a tape library backup archiving method, device, computing equipment and storage medium. Background Art
[0002] Tape library backup is a data backup method that uses a tape library as a storage medium. The tape library usually contains multiple tape drives and an automatic loading mechanism that can automatically load and unload tapes. The basic idea of this backup method is to write the data to be backed up to tapes and store the tapes in a tape library. By using a tape library, large-scale data backup and storage management can be easily performed without manually changing tapes. Existing tape library backup methods lack flexibility and cannot meet certain specific needs or customization requirements in the environment, limiting or preventing users from having the choice and control when implementing backup / archiving strategies. Summary of the invention
[0003] The embodiments of the present application provide a tape library backup and archiving method, apparatus, computing device and storage medium, which back up changed files to tape according to an incremental backup strategy, and archive backup data to tape according to an archiving strategy, thereby improving backup efficiency, optimizing storage management, and improving data management efficiency.
[0004] In a first aspect, an embodiment of the present application provides a tape library backup and archiving method, comprising: obtaining a tape loading instruction, loading a target tape into a tape drive; rewinding the target tape to the starting position of the target tape; obtaining a positioning instruction, positioning the target tape to the target position through the positioning instruction; traversing each file in the backed-up data in the target tape, comparing the data to be backed up with the backed-up data, and obtaining target incremental data, wherein the target incremental data includes newly added files, modified files, and deleted files; obtaining a tape backup instruction, and backing up the target incremental data to the target position of the target tape through the tape backup instruction.
[0005] In one embodiment, the obtaining of the tape backup instruction, and backing up the target incremental data to the target location of the target tape by the tape backup instruction, includes:
[0006] Writing all files in the target incremental data into a magnetic tape, and updating metadata indexes of newly added files and modified files in the target incremental data;
[0007] Mark the metadata index of the deleted file in the target incremental data.
[0008] In one embodiment, the method further comprises:
[0009] Obtaining a tape recovery instruction, obtaining a target recovery data sequence through the tape recovery instruction, and determining the target tape according to the target recovery data sequence, wherein the target tape stores the target recovery data;
[0010] loading the target tape into the tape drive;
[0011] rewinding the target tape to the starting position of the target tape;
[0012] Locate the target recovery data at the target location of the target tape according to the tape recovery instruction;
[0013] The target recovery data is restored from the target location to a specified directory.
[0014] In one embodiment, the method further comprises:
[0015] Get create archive request;
[0016] Displaying an archive creation interface, wherein the archive creation interface includes an archive name input item, a data type input item, and an archive object input item;
[0017] Obtaining the data type selected by the user in the archive creation interface, determining the file agent to be archived and the storage type where the archived backup data is located, and obtaining the archive information;
[0018] Get multiple archive strategies that are set;
[0019] Get multiple archive plans that are set;
[0020] The backup data is archived according to the archiving information, the multiple archiving strategies and the multiple archiving plans.
[0021] In one embodiment, the acquiring and setting multiple archiving strategies includes:
[0022] Get archive policy setting request;
[0023] Displaying an archiving strategy setting interface, the archiving strategy setting interface including a first archiving strategy setting and a second archiving strategy setting item, the first archiving strategy being a single backup plan, the first archiving strategy being used to archive all unarchived backup sets to a tape, the second archiving strategy being a scheduled backup plan within a preset period, and being used to back up unarchived backup sets after the preset time with the time when the second archiving strategy was created as the preset time;
[0024] Get the first archiving strategy and the second archiving strategy set in the archiving strategy interface.
[0025] In one embodiment, before obtaining the multiple set filing plans, the method includes:
[0026] Creating an archiving plan, wherein the archiving plan includes multiple archiving tasks, and each archiving task corresponds to setting an archiving strategy and a time strategy;
[0027] Execute the multiple archiving tasks according to the archiving strategy and time strategy corresponding to the archiving tasks to archive the archive set;
[0028] When executing the plurality of archiving tasks, generating an archiving log for each archiving task;
[0029] After the multiple archiving tasks are completed, the archiving results of the multiple archiving tasks are displayed in a list form, wherein the archiving results include the archiving status, archiving identifier, archiving log, archiving start time and archiving end time of the archiving task;
[0030] Display the archiving status statistics results of the multiple archiving tasks.
[0031] In one embodiment, the archiving plan includes a plurality of archiving tasks, and the method further includes:
[0032] Displaying a job management page, the job management page including a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar, and a backup skip icon bar;
[0033] Obtaining a drag instruction from a first backup icon bar to a second backup icon bar, wherein the first backup icon bar and the second backup icon bar are any two of a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation icon bar, a backup pause icon bar, and a backup skip icon bar;
[0034] The backup task in the first backup icon column is switched to the second backup icon column and processed as the backup task in the second backup icon column.
[0035] In a second aspect, an embodiment of the present application provides a tape library backup and archiving device, which has the function of implementing the tape library backup and archiving method provided in the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware. In one embodiment, the tape library backup and archiving device includes:
[0036] Loading module: used to obtain tape loading instructions and load the target tape into the tape drive;
[0037] Initial positioning module: used for rewinding the target tape to the starting position of the target tape;
[0038] Target positioning module: used for obtaining positioning instructions, and positioning to the target position of the target magnetic tape according to the positioning instructions;
[0039] Acquisition module: used for traversing each file in the backed-up data in the target tape, comparing the data to be backed up with the backed-up data, and acquiring target incremental data;
[0040] Backup module: used for obtaining tape backup instructions, and backing up the target incremental data to the target position of the target tape through the tape backup instructions.
[0041] In one embodiment, the backup module is specifically used to:
[0042] Writing all files in the target incremental data into a magnetic tape, and updating metadata indexes of newly added files and modified files in the target incremental data;
[0043] Mark the metadata index of the deleted file in the target incremental data.
[0044] In one embodiment, the device is further specifically used for:
[0045] Obtaining a tape recovery instruction, obtaining a target recovery data sequence through the tape recovery instruction, and determining the target tape according to the target recovery data sequence, wherein the target tape stores the target recovery data;
[0046] loading the target tape into the tape drive;
[0047] rewinding the target tape to the starting position of the target tape;
[0048] Locate the target recovery data at the target location of the target tape according to the tape recovery instruction;
[0049] The target recovery data is restored from the target location to a specified directory.
[0050] In one embodiment, the device is further specifically used for:
[0051] Get create archive request;
[0052] Displaying an archive creation interface, wherein the archive creation interface includes an archive name input item, a data type input item, and an archive object input item;
[0053] Obtaining the data type selected by the user in the archive creation interface, determining the file agent to be archived and the storage type where the archived backup data is located, and obtaining the archive information;
[0054] Get multiple archive strategies that are set;
[0055] Get multiple archive plans that are set;
[0056] The backup data is archived according to the archiving information, the multiple archiving strategies and the multiple archiving plans.
[0057] In one embodiment, the device is further specifically used for:
[0058] Get archive policy setting request;
[0059] Displaying an archiving strategy setting interface, the archiving strategy setting interface including a first archiving strategy setting and a second archiving strategy setting item, the first archiving strategy being a single backup plan, the first archiving strategy being used to archive all unarchived backup sets to a tape, the second archiving strategy being a scheduled backup plan within a preset period, and being used to back up unarchived backup sets after the preset time with the time when the second archiving strategy was created as the preset time;
[0060] Get the first archiving strategy and the second archiving strategy set in the archiving strategy interface.
[0061] In one embodiment, the device is further specifically used for:
[0062] Creating an archiving plan, wherein the archiving plan includes multiple archiving tasks, and each archiving task corresponds to setting an archiving strategy and a time strategy;
[0063] Execute the multiple archiving tasks according to the archiving strategy and time strategy corresponding to the archiving tasks to archive the archive set;
[0064] When executing the plurality of archiving tasks, generating an archiving log for each archiving task;
[0065] After the multiple archiving tasks are completed, the archiving results of the multiple archiving tasks are displayed in a list form, wherein the archiving results include the archiving status, archiving identifier, archiving log, archiving start time and archiving end time of the archiving task;
[0066] Display the archiving status statistics results of the multiple archiving tasks.
[0067] In one embodiment, the device is further specifically used for:
[0068] Displaying a job management page, the job management page including a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar, and a backup skip icon bar;
[0069] Obtaining a drag instruction from a first backup icon bar to a second backup icon bar, wherein the first backup icon bar and the second backup icon bar are any two of a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation icon bar, a backup pause icon bar, and a backup skip icon bar;
[0070] The backup task in the first backup icon column is switched to the second backup icon column and processed as the backup task in the second backup icon column.
[0071] In a third aspect, an embodiment of the present application provides a computing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the tape library backup and archiving method described in the first aspect when executing the computer program.
[0072] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the computer executes the tape library backup and archiving method as described in the first aspect.
[0073] This application backs up changed files to tapes according to the incremental backup strategy, and archives the backup data to tapes according to the archiving strategy, thereby improving backup efficiency, optimizing storage management, and improving data management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0075] Figure 1 This is a scenario diagram of a tape library backup and archiving device provided in an embodiment of the present application;
[0076] Figure 2 It is a schematic diagram of an embodiment of the process flow of a tape library backup and archiving method provided in an embodiment of the present application;
[0077] Figure 3 It is a schematic diagram of an archive creation interface of the tape library backup archive method provided in an embodiment of the present application;
[0078] Figure 4 It is a schematic diagram of an archived backup set display interface of the tape library backup and archiving method provided in an embodiment of the present application;
[0079] Figure 5 This is a structural schematic diagram of a tape library backup and archiving method device according to an embodiment of the present application;
[0080] Figure 6 A schematic diagram of the structure of a tape library backup and archiving device according to an embodiment of the present application;
[0081] Figure 7 A schematic diagram of the structure of a mobile phone in an embodiment of the present application;
[0082] Figure 8 A schematic diagram of the structure of a server in an embodiment of the present application.
[0083] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0084] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0085] In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols performed by one or more computers, unless otherwise specified. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
[0086] The terms "module" or "unit" used herein may be considered as software objects executed on the computing system. The different components, modules, engines and services described herein may be considered as implementation objects on the computing system. The devices and methods described herein are preferably implemented in software, but may also be implemented in hardware, all within the scope of protection of this application.
[0087] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0088] Embodiments of the present application provide a tape library backup and archiving method, device, and storage medium.
[0089] See also Figure 1 , Figure 1 The schematic diagram of the scenario of the tape library backup and archiving device provided in the embodiment of the present application is as follows. The tape library backup and archiving device may include a tape library backup and archiving system 100 and a user terminal 200. The tape library backup and archiving system 100 is connected via a network, and the tape library backup and archiving device is integrated in the tape library backup and archiving system 100. In the embodiment of the present application, the tape library backup and archiving system 100 may be a terminal device or a server, and the tape library backup and archiving system 100 may send a backup plan to the user terminal 200.
[0090] In the embodiment of the present application, when the tape library backup archiving system 100 is a server, the server can be an independent server, or a server network or server cluster composed of servers, for example, the server described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a plurality of servers. The cloud server is composed of a large number of computers or network servers based on cloud computing (Cloud Computing). In the embodiment of the present application, communication can be realized by any communication mode between the server and the client, including but not limited to, based on the mobile communication of the third generation partnership project (3rd Generation Partnership Project, 3GPP), long term evolution (Long Term Evolution, LTE), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, WiMAX), or based on the computer network communication of TCP / IP protocol suite (TCP / IP Protocol suite, TCP / IP), user datagram protocol (User Datagram Protocol, UDP) protocol, etc.
[0091] It is understandable that when the tape library backup and archiving system 100 used in the embodiment of the present application is a terminal device, the terminal device can be a device that includes both receiving hardware and transmitting hardware, that is, a device with receiving and transmitting hardware that can perform two-way communication on a two-way communication link. Such terminal devices may include: cellular or other communication devices, which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific tape library backup and archiving system 100 can be a desktop terminal or a mobile terminal, and the tape library backup and archiving system 100 can be one of a mobile phone, a tablet computer, a laptop computer, etc.
[0092] The terminal device involved in the embodiments of the present application may also refer to a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. For example, a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges voice and / or data with a wireless access network. For example, personal communication service (English full name: Personal Communication service, English abbreviation: PCs) phone, cordless phone, session initiation protocol (sIP) phone, wireless local loop (Wireless Local Loop, English abbreviation: WLL) station, personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA) and other devices.
[0093] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer computing devices, or computing device network connection relationships, such as Figure 1 Only one computing device is shown. It can be understood that the tape library backup and archiving device can also include one or more other computing devices, or / and one or more other computing devices connected to the tape library backup and archiving system 100 network, which is not specifically limited here.
[0094] In addition, if Figure 1 As shown, the tape library backup and archiving device may also include a tape library 300, which is used as a physical medium for storing data, such as storing data to be backed up and backed up data.
[0095] It should be noted that Figure 1 The scenario diagram of the tape library backup and archiving device shown is merely an example. The tape library backup and archiving device and the scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art will appreciate that with the evolution of tape library backup and archiving devices and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.
[0096] This application backs up changed files to tapes according to the incremental backup strategy, and archives the backup data to tapes according to the archiving strategy, thereby improving backup efficiency, optimizing storage management, and improving data management efficiency.
[0097] In this embodiment, the method for backing up and archiving a tape library is described from the perspective of the method. The method for backing up and archiving a tape library can be integrated into the tape library backing up and archiving system 100 .
[0098] The present application provides a tape library backup and archiving method, which includes: obtaining a tape loading instruction, loading a target tape into a tape drive; rewinding the target tape to the starting position of the target tape; obtaining a positioning instruction, and positioning the target tape to the target position through the positioning instruction; traversing each file in the backed-up data in the target tape, comparing the data to be backed up with the backed-up data, and obtaining target incremental data, wherein the target incremental data includes newly added files, modified files, and deleted files; obtaining a tape backup instruction, and backing up the target incremental data to the target position of the target tape through the tape backup instruction.
[0099] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of a tape library backup and archiving method in an embodiment of the present application. The tape library backup and archiving method includes the following steps 201 to 205:
[0100] 201. Obtain a tape loading instruction and load a target tape into a tape drive.
[0101] Specifically, the tape loading instruction is an instruction for loading the tape where the data to be backed up is stored into the drive when data backup is required. It is an instruction triggered when data backup is required. Optionally, when the tape library backup and archiving method is applied to the tape backup and archiving system, the tape loading instruction can be triggered by the "backup" label on the user terminal interface. Optionally, there can be multiple instructions triggered by the "backup" label, including tape loading instructions, positioning instructions, and tape backup instructions. The specific trigger label can have other forms, which are only used as examples and are not limited here. Optionally, the tape library usually includes multiple tape drives and an automatic loading mechanism. Optionally, after the user terminal triggers the tape loading instruction by clicking the corresponding label or other means, according to the data such as the tape serial number contained in the tape loading instruction, the automatic loading mechanism of the tape library is used to load the target tape with the tape serial number that matches the tape serial number into the tape drive.
[0102] 202. Rewind the target tape to the starting position of the target tape.
[0103] Specifically, after the target tape with the matching tape serial number is loaded into the tape drive by the automatic loading mechanism, the tape is rewound to the starting position before the backup task is executed, and the target position of the tape is located according to the target position identifier of the target tape included in the positioning instruction.
[0104] 203. Obtain a positioning instruction, and locate the target position of the target magnetic tape according to the positioning instruction.
[0105] Specifically, the positioning instruction includes an identifier of the target position of the target tape. For example, the position of the target position n files after the starting position is obtained through the positioning instruction. Then, the positioning instruction can be used to skip n files at the starting position of the target tape and then locate the target position of the target tape. Specifically, the target position of the target tape is the location of the backup data. Optionally, when the tape library backup and archiving method is applied to the tape library backup and archiving system, the user can view the usage status of each tape in the tape library on the user terminal. The usage status includes "writing", "to be written", "full" and "unused", etc. Optionally, the user can select a tape with a status of "unused" as the target tape, triggering the corresponding "backup" label, thereby triggering the tape loading instruction and the corresponding positioning instruction, which is convenient for the subsequent execution of the backup task.
[0106] 204. Traverse each file in the backed-up data in the target tape, compare the data to be backed up with the backed-up data, and obtain target incremental data.
[0107] Optionally, the target incremental data includes newly added files, modified files, and deleted files. Specifically, the data backup process involves multiple backup methods, including full backup, incremental backup, and differential backup. Specifically, full backup refers to the complete backup of data. For example, one tape is used to back up the entire business system on Monday, and another tape is used to back up the entire business system on Tuesday, and so on. Full backup will cause a large amount of duplicate backup data, and the duplicate data will occupy a large amount of tape space, which means increased costs. When the amount of backup data is large, the time required for backup will also be longer. Specifically, incremental backup is a backup method based on the last backup, that is, only the newly added or modified data is backed up every day. For example, a full backup is performed on Monday, and the data added between Monday and Tuesday is backed up on Tuesday, and the data added between Tuesday and Wednesday is backed up on Wednesday, and so on. The advantage of the incremental backup strategy is that only the data updated or added on the day is backed up. Because the amount of data is small, tape space is saved and the backup time is shortened. However, the disadvantage is that the data recovery process is more cumbersome. For example: on Friday, the system fails and data is lost. The data needs to be restored to the state on Thursday. The user must first find Monday's full backup to restore, then find Tuesday's backup to restore Tuesday's data, and then find Wednesday's backup to restore Wednesday's data, until Thursday's data is restored. This type of backup has poor reliability. Once an error occurs in a backup, the data of the entire system will be incorrect. Specifically, differential backup is another backup method based on full backup. For example: a full backup is performed on Monday, and data added (deleted or modified) between Monday and Tuesday is backed up on Tuesday. Data added (deleted or modified) between Monday and Wednesday is backed up on Wednesday, and so on. Differential backup does not require a full backup of the system every day, and is also simpler and more convenient during the recovery process. Only the full backup and the data backed up on that day are needed to restore the data of a certain day.
[0108] Optionally, the tape library backup archiving method can adopt any one of the above backup strategies or a combination of the three backup strategies. Taking incremental backup as an example, after obtaining the data to be backed up, traverse each file in the backed up data in the target tape, compare the data to be backed up with the backed up data to obtain the target incremental data, so as to subsequently back up the target incremental data. Optionally, the backed up data can be the data stored in a backup before this backup.
[0109] 205. Obtain a tape backup instruction, and back up the target incremental data to a target position of the target tape using the tape backup instruction.
[0110] Specifically, the tape backup instruction can also be triggered through the "backup" label on the user terminal interface. After obtaining the target incremental data, the tape backup instruction is obtained, and the target incremental data is backed up to the target location of the target tape through the tape backup instruction. Optionally, after the backup is completed, the target tape is unloaded from the automatic loading mechanism and returned to the specified slot by obtaining the tape unloading instruction.
[0111] The embodiment of the present application backs up the changed files to the tape according to the incremental backup strategy, and archives the backup data to the tape according to the archiving strategy, thereby improving the backup efficiency, optimizing the storage management, and improving the data management efficiency.
[0112] In one embodiment of the present application, the obtaining of the tape backup instruction, backing up the target incremental data to the target location of the tape by the tape backup instruction, includes:
[0113] All files in the target incremental data are written into a magnetic tape, and metadata indexes of newly added files and modified files in the target incremental data are updated; and metadata indexes of deleted files in the target incremental data are marked.
[0114] Specifically, the target incremental data includes newly added files, modified files, and deleted files. Incremental backup requires comparison of newly added, modified, and deleted files in the data to be backed up and the full backup data. Optionally, in order to realize the backup of the target incremental data to the target location of the tape, a full backup, i.e., a full backup, can be performed in a preset time period, and all files in all data can be written to the tape and numbered. During the writing process, a metadata index is generated, and the metadata of each file is recorded. Optionally, the metadata of the file can include the file name, size, modification time, etc., as well as the location in the tape. The backup file stored in the tape can be quickly found through the metadata index. The metadata index and the metadata are stored in the tape together, so that the incremental data can be backed up later. Optionally, the storage format of the metadata index can be in the form of a simple key-value pair, such as a hash table or a database format. For each metadata, its unique identifier is recorded, which can be a file path or a hash value. The metadata index and the metadata are stored in the tape to ensure that the unique identifier, size, modification time, and location in the tape of each metadata are stored in the tape.
[0115] Optionally, when performing an incremental backup, the current tape library system status is compared with the status at the time of the last backup through a traversal operation, and new files, modified files, and deleted files are determined through traversal search and comparison. For example: when the tapes used for the last file backup are numbered 1-100, new files and modified files are obtained after traversal, and the new files and modified files are written to tapes numbered 101-150. Optionally, the metadata index of new files and modified files is updated at the same time. For deleted files in the target incremental data, the location of the deleted files is found according to the metadata index, and the status of the deleted files is marked as deleted, so as to facilitate cleanup operations during subsequent backups.
[0116] The embodiment of the present application determines the newly added files, modified files and deleted files in the target incremental data through traversal comparison, and backs up the incremental data to the target location of the tape to update the backup data.
[0117] In one embodiment of the present application, the method further includes:
[0118] Obtain a tape recovery instruction, obtain a target recovery data sequence through the tape recovery instruction, determine the target tape according to the target recovery data sequence, wherein the target tape stores the target recovery data; load the target tape into the tape drive; rewind the target tape to the starting position of the target tape; locate the target recovery data at a target position on the target tape according to the tape recovery instruction; and restore the target recovery data from the target position to a specified directory.
[0119] Specifically, after the backup is completed, when the file system needs a part of the backup data, the data must be restored. Optionally, when the tape library backup archiving method is applied to the tape backup archiving system, the tape recovery instruction can be triggered through the "Restore" label on the user terminal interface. Optionally, the tape recovery instruction includes a target recovery data sequence. After obtaining the tape recovery instruction, the target recovery data sequence can be obtained, and the target tape is determined according to the target recovery data sequence. The target tape stores the target recovery data. Similarly, the target recovery data sequence can be used to know the location of the target recovery data n files after the starting position of the tape, and the recovery instruction can be used to locate the location. After skipping n files at the starting position of the target tape, the target location of the target recovery data is located, thereby restoring the target recovery data from the target location to the specified directory. Specifically, the tape recovery instruction can include a specified directory for tape recovery. When the tape recovery instruction is obtained, the specified directory can be obtained, thereby restoring the target recovery data to the instruction directory. Optionally, in the tape backup and archiving system, the user interface has a specified directory input item and a target recovery data serial number selection item. Through the user's input, the tape library backup and archiving system can obtain the target recovery data serial number and the specified directory input by the user. Optionally, after the backup is completed, the user can also create an immediate recovery task or recovery plan in the tape library backup and archiving system. Optionally, when the user chooses to create an immediate recovery task, the Create Immediate Recovery page is displayed. The Create Immediate Recovery page includes a tape name input item, a storage selection item, and a restore to storage path input item. The restore to storage path input item is the specified directory, which is the path for the target recovery data to be restored. Optionally, the Create Immediate Recovery page also includes a recovery content display item. After the user enters the tape name input item, the recovery content display item will display the path, backup time, and archive time of the recovery file in a graphical form.
[0120] Optionally, when the user chooses to create a recovery plan, the Create Recovery Plan page is displayed. The Create Recovery Plan page includes a tape name input item, a storage selection item, and a restore to storage path input item, wherein the restore to storage path input item is the specified directory, i.e., the path to restore the target data. Optionally, the Create Immediate Restore page also includes a recovery content display item. After the user enters the tape name input item, the recovery content display item will display the path, backup time, and archive time of the restored file in a graphical form. Optionally, the right side of the recovery content display item of the Create Recovery Plan page also includes a view icon and a delete icon. The lower right corner of the Create Recovery Plan page also includes a next icon. The next icon displays the Select Backup Set page. The Display Backup Set page displays the backup path, backup type, backup plan name, backup time, and archive time in a tabular form.
[0121] The embodiment of the present application obtains tape recovery instructions and restores target recovery data to a specified directory, thereby achieving data recovery and improving data storage security.
[0122] In one embodiment of the present application, the method further includes:
[0123] Obtain a request to create an archive; display an interface for creating an archive, wherein the interface includes an archive name input item, a data type input item, and an archive object input item; obtain the data type selected by the user in the interface for creating an archive, determine the file agent to be archived and the storage type where the archived backup data is located, and obtain the archive information; obtain multiple archive strategies that are set; obtain multiple archive plans that are set; and archive the backup data according to the archive information, the multiple archive strategies, and the multiple archive plans.
[0124] Specifically, before displaying the create archive page, the archive management interface is displayed. The archive management page includes a tape name display item, a serial number display item, an archive quantity display item, a tape library display item, and a creation time display item. The archive management page also includes a search input item. When the user clicks the search tag, the search instruction is obtained, the input content of the search input item is obtained, and the tape name, serial number, archive quantity, tape library, and creation time of the search input item are displayed in a table. Optionally, the search input item includes a tape name input item, a serial number input item, and a tape library input item, and the user can select one of them to input.
[0125] Optionally, the archive management page also includes a new label item. When the new label item is clicked by the user, a new tape media set request is obtained, and the add tape media set interface is displayed. The add tape media set interface includes a media set name input item, a tape library selection input item, and a tape input item. The tape input item includes a tape serial number and a tape status. The tape status includes: writing, waiting to be written, and full.
[0126] Specifically, when a create archive request is obtained in the archive management interface, the create archive interface is displayed. Figure 3 As shown, Figure 3 It is a schematic diagram of the archive creation interface, which includes an archive name input item, a data type input item, and an archive object input item. When the user inputs in the archive creation interface, the data type selected by the user in the archive creation interface is obtained, the file agent to be archived and the storage type of the archived backup data are determined, and the archive information is obtained. Optionally, the storage type of the archived backup data can be NFS storage. Get multiple pre-set archive strategies, get multiple pre-set archive plans, and archive the archive information. Archive the backup data according to the archive plan and the archive strategy.
[0127] The embodiment of the present application obtains the input items of the user's archiving request to create an archiving strategy and an archiving plan, and archives the backup data according to the archiving strategy and the archiving plan, thereby improving the selectivity of archiving.
[0128] In one implementation of the present application, the acquiring and setting multiple archiving strategies includes:
[0129] Obtain an archiving policy setting request; display an archiving policy setting interface, the archiving policy setting interface including a first archiving policy setting and a second archiving policy setting item, the first archiving policy being a single backup plan, the first archiving policy being used to archive all unarchived backup sets to tape, the second archiving policy being a scheduled backup plan within a preset period, and being used to back up unarchived backup sets after the preset time with the time when the second archiving policy was created as the preset time; obtain the first archiving policy and the second archiving policy set in the archiving policy interface.
[0130] Specifically, an archiving strategy refers to a method for archiving unarchived backup sets. In the archiving strategy setting interface, you can select the first archiving strategy setting and the second archiving strategy setting. Optionally, the first archiving strategy is a single backup plan, which archives all unarchived backup sets to tape and executes them immediately. The second archiving strategy is a scheduled backup plan within a preset period. The second archiving strategy will create a scheduled plan for periodic execution, with the time point of creating the strategy as the boundary, and back up the backup sets that have not been archived after that time point. For example: create a second archiving strategy with a creation time of 9 am on Monday and a preset period of week. The second archiving strategy will archive all unarchived backup sets at the current time at 9 am every Monday.
[0131] Optionally, when the user selects the first archiving strategy, that is, it is executed immediately to archive all unarchived backup sets, then a first archiving strategy setting request is obtained, and an archiving information confirmation interface is displayed. The archiving information confirmation interface displays the archive name, file system, archive location, archive backup set, and archive strategy in a table. That is, in the archiving information confirmation interface, the user can view the specific information of the archiving task being executed. Optionally, the archiving information confirmation interface includes a View Archive Backup Sets tab. When the user clicks on the View Archive Backup Sets tab, a View Archive Backup Sets request is obtained, and the Archive Backup Sets display interface is displayed. Figure 4 As shown, Figure 4 This is a schematic diagram of the archive backup set display interface. The archive backup set display interface includes a backup plan name display item, a backup set display item, a creation time display item, and a last backup data display item.
[0132] The embodiment of the present application sets an archiving strategy in combination with the first archiving strategy and the second archiving strategy, thereby improving the user's selectivity of the archiving strategy.
[0133] In one implementation of the present application, before obtaining the multiple set filing plans, the following steps are included:
[0134] Create an archiving plan, the archiving plan includes multiple archiving tasks, each archiving task corresponds to an archiving strategy and a time strategy; execute the multiple archiving tasks according to the archiving strategy and time strategy corresponding to the archiving tasks to archive the archive set; when executing the multiple archiving tasks, generate an archiving log for each archiving task; after completing the multiple archiving tasks, display the archiving results of the multiple archiving tasks in a list form, the archiving results include the archiving status of the archiving task, the archiving identifier, the archiving log, the archiving start time and the archiving end time; display the archiving status statistics of the multiple archiving tasks.
[0135] Specifically, a filing plan is created, and the filing plan includes multiple filing tasks. Each filing task corresponds to a filing strategy and a time strategy. Optionally, the filing strategy and time strategy of each filing task can be different. The filing strategy can be the first filing strategy and the second filing strategy mentioned above, or it can be other filing strategies newly created by the user. The time strategy can include immediate execution and periodic execution, etc., or there can be other forms of practical strategies. Each filing task is executed according to the filing strategy and time strategy corresponding to each filing task. Optionally, when executing multiple filing tasks, corresponding filing logs are generated. After completing multiple filing tasks, the filing results of multiple filing tasks are displayed in the form of a list, including the filing status, filing identifier, filing log, filing start time and filing end time of the filing tasks, and the filing task status statistics of multiple filing tasks are displayed. Optionally, the status of the filing task can be successful completion, filing failure, etc., and the number of successfully completed filing tasks can be displayed, and the information of the filing tasks that failed to be filed can be listed. Optionally, in the displayed list, the user can also choose to view the filing log of the corresponding filing task to check whether there are any abnormal events.
[0136] The embodiment of the present application creates an archiving plan to display the completion status of multiple archiving tasks in a list, which more clearly shows the completion status of the archiving tasks and facilitates users to view failed archiving tasks in a timely manner.
[0137] In one embodiment of the present application, the archiving plan includes multiple archiving tasks, and the method further includes:
[0138] Display a job management page, the job management page including a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar and a backup skip icon bar; obtain a drag instruction from a first backup icon bar to a second backup icon bar, the first backup icon bar and the second backup icon bar are any two of the backup in progress statistics icon bar, the backup execution success icon bar, the backup execution failure statistics bar, the backup creation icon bar, the backup pause icon bar and the backup skip icon bar; switch the backup task in the first backup icon bar to the second backup icon bar and process it as the backup task in the second backup icon bar.
[0139] Optionally, when the tape library backup archiving system executes multiple archiving tasks, the job management page can be displayed by triggering a job management request. Optionally, the user can trigger the job management request by clicking the "job management" icon in the system, and the system displays the job management page after receiving the job management request. Optionally, the job management page includes a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar, and a backup skip icon bar. When the user's action of dragging from the first backup icon bar to the second backup icon bar is obtained, the drag instruction is obtained. Optionally, the first backup icon bar and the second backup icon bar are any two of the backup in progress statistics icon bar, the backup execution success icon bar, the backup execution failure statistics bar, the backup creation icon bar, the backup pause icon bar, and the backup skip icon bar. After the drag instruction is obtained, the backup task in the first backup icon bar is processed as a task in the second backup icon bar. For example, if a user drags the backup execution failure icon bar to the backup in progress icon bar, the backup task that failed to execute will be re-executed as a backup task.
[0140] In the embodiment of the present application, the backup task that failed to be backed up is obtained and dragged to the task bar to restart the backup task by a drag instruction, thereby improving the efficiency of restarting the backup task.
[0141] In order to facilitate better implementation of the tape library backup and archiving method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the tape library backup and archiving method. The meanings of the terms are the same as those in the tape library backup and archiving method, and the specific implementation details can refer to the description in the tape library backup and archiving method embodiment.
[0142] The tape library backup and archiving device in the embodiment of the present application has the function of implementing the tape library backup and archiving method provided in the above embodiment. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, and the modules can be software and / or hardware.
[0143] See also Figure 5 , Figure 5 The structure diagram of the tape library backup and archiving device provided in the embodiment of the present application is as follows. The tape library backup and archiving device can be applied to a computing device in a scenario where content push is required. Specifically, the tape library backup and archiving method device 500 may include a loading module 501, an initial positioning module 502, a target positioning module 503, an acquisition module 504 and a backup module 505, which are as follows:
[0144] Loading module: used to obtain tape loading instructions and load the target tape into the tape drive;
[0145] Initial positioning module: used for rewinding the target tape to the starting position of the target tape;
[0146] Target positioning module: used for obtaining positioning instructions, and positioning to the target position of the target magnetic tape according to the positioning instructions;
[0147] Acquisition module: used for traversing each file in the backed-up data in the target tape, comparing the data to be backed up with the backed-up data, and acquiring target incremental data;
[0148] Backup module: used for obtaining tape backup instructions, and backing up the target incremental data to the target position of the target tape through the tape backup instructions.
[0149] In one embodiment, the backup module is specifically used to:
[0150] Writing all files in the target incremental data into a magnetic tape, and updating metadata indexes of newly added files and modified files in the target incremental data;
[0151] Mark the metadata index of the deleted file in the target incremental data.
[0152] In one embodiment, the device is further specifically used for:
[0153] Obtaining a tape recovery instruction, obtaining a target recovery data sequence through the tape recovery instruction, and determining the target tape according to the target recovery data sequence, wherein the target tape stores the target recovery data;
[0154] loading the target tape into the tape drive;
[0155] rewinding the target tape to the starting position of the target tape;
[0156] Locate the target recovery data at the target location of the target tape according to the tape recovery instruction;
[0157] The target recovery data is restored from the target location to a specified directory.
[0158] In one embodiment, the device is further specifically used for:
[0159] Get create archive request;
[0160] Displaying an archive creation interface, wherein the archive creation interface includes an archive name input item, a data type input item, and an archive object input item;
[0161] Obtaining the data type selected by the user in the archive creation interface, determining the file agent to be archived and the storage type where the archived backup data is located, and obtaining the archive information;
[0162] Get multiple archive strategies that are set;
[0163] Get multiple archive plans that are set;
[0164] The backup data is archived according to the archiving information, the multiple archiving strategies and the multiple archiving plans.
[0165] In one embodiment, the device is further specifically used for:
[0166] Get archive policy setting request;
[0167] Displaying an archiving strategy setting interface, the archiving strategy setting interface including a first archiving strategy setting and a second archiving strategy setting item, the first archiving strategy being a single backup plan, the first archiving strategy being used to archive all unarchived backup sets to a tape, the second archiving strategy being a scheduled backup plan within a preset period, and being used to back up unarchived backup sets after the preset time with the time when the second archiving strategy was created as the preset time;
[0168] Get the first archiving strategy and the second archiving strategy set in the archiving strategy interface.
[0169] In one embodiment, the device is further specifically used for:
[0170] Creating an archiving plan, wherein the archiving plan includes multiple archiving tasks, and each archiving task corresponds to setting an archiving strategy and a time strategy;
[0171] Execute the multiple archiving tasks according to the archiving strategy and time strategy corresponding to the archiving tasks to archive the archive set;
[0172] When executing the plurality of archiving tasks, generating an archiving log for each archiving task;
[0173] After the multiple archiving tasks are completed, the archiving results of the multiple archiving tasks are displayed in a list form, wherein the archiving results include the archiving status, archiving identifier, archiving log, archiving start time and archiving end time of the archiving task;
[0174] Display the archiving status statistics results of the multiple archiving tasks.
[0175] In one embodiment, the device is further specifically used for:
[0176] Displaying a job management page, the job management page including a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar, and a backup skip icon bar;
[0177] Obtaining a drag instruction from a first backup icon bar to a second backup icon bar, wherein the first backup icon bar and the second backup icon bar are any two of a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation icon bar, a backup pause icon bar, and a backup skip icon bar;
[0178] The backup task in the first backup icon column is switched to the second backup icon column and processed as the backup task in the second backup icon column.
[0179] The embodiment of the present application backs up the changed files to the tape according to the incremental backup strategy, and archives the backup data to the tape according to the archiving strategy, thereby improving the backup efficiency, optimizing the storage management, and improving the data management efficiency.
[0180] The tape library backup and archiving device in the embodiment of the present application is described above from the perspective of modular functional entities. The tape library backup and archiving device in the embodiment of the present application is described below from the perspective of hardware processing.
[0181] It should be noted that Figure 5 The physical device corresponding to the acquisition module 504 shown may be a transceiver, a radio frequency circuit, a communication module, an input / output (I / O) interface, etc., and the physical device corresponding to the target positioning module 503 may be a processor.
[0182] Figure 6 The devices shown can all have Figure 5 The structure shown, when Figure 5 The tape library backup archiving method device shown has the following features: Figure 6 When the structure shown is Figure 6 The processor and transceiver in the device can realize the same or similar functions as the target positioning module 503 and the acquisition module 504 provided in the device embodiment corresponding to the device described above, Figure 6 The memory storage processor in the embodiment of the present invention executes the computer program that needs to be called when the tape library backup and archiving method is executed.
[0183] When the computing device in the embodiment of the present application is a terminal device, the embodiment of the present application also provides a terminal device, such as Figure 7 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal device can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POs), a car computer, etc., taking the terminal device as a mobile phone as an example:
[0184] Figure 7 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal device provided in an embodiment of the present application. Figure 7 The mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art will understand that Figure 7 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0185] Combine the following Figure 7 A detailed introduction to the various components of the mobile phone:
[0186] The RF circuit 1010 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1080 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global system of mobile communication (Global system of mobile communication, GSM), General Packet Radio service (General Packet Radio service, GPRs), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, short messaging service (sMs), etc.
[0187] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1020 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0188] The input unit 1030 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1031 or near the touch panel 1031 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0189] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in Figure 7 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.
[0190] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0191] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can transmit the received audio data to the speaker 1061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
[0192] Wi-Fi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 1070. It provides users with wireless broadband Internet access. Figure 7 A Wi-Fi module 1070 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.
[0193] The processor 1080 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, so as to monitor the mobile phone as a whole. Optionally, the processor 1080 may include one or more processing units; optionally, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1080.
[0194] The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Optionally, the power supply can be logically connected to the processor 1080 through a power management system, thereby managing functions such as charging, discharging, and power consumption management through the power management system.
[0195] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0196] In the embodiment of the present application, the processor 1080 included in the mobile phone also has the function of controlling and executing the tape library backup archiving method process executed by the tape library backup archiving method device.
[0197] The present application also provides a server. Figure 8 , Figure 8 1 is a schematic diagram of a server structure provided in an embodiment of the present application. The server 1100 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (full name in English: central processing units, abbreviated in English: CPU) 1122 (for example, one or more processors) and memory 1132, one or more storage media 1130 (for example, one or more mass storage devices) storing application programs 1142 or data 1144. Among them, the memory 1132 and the storage medium 1130 can be short-term storage or permanent storage. The program stored in the storage medium 1130 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1122 can be configured to communicate with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.
[0198] The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1158, and / or one or more operating systems 1141, such as Windows server, Mac Os X, Unix, Linux, FreeBsD, etc.
[0199] The steps in the tape library backup and archiving method in the above embodiment can be based on the Figure 8 The structure of the server 1100 is shown.
[0200] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0201] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0202] In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0203] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0204] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0205] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0206] The computer program product includes one or more computer instructions. When the computer program is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DsL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard disk solid state Disk (ssD)), etc.
[0207] The technical solutions provided in the embodiments of the present application are introduced in detail above. The principles and implementation methods of the embodiments of the present application are explained by using specific examples in the embodiments of the present application. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of the present application. At the same time, for those skilled in the art, according to the ideas of the embodiments of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of the present application.
Claims
1. A tape library backup and archiving method, characterized in that: The tape library backup and archiving method is applied to a tape library archiving system, and the tape library backup and archiving method comprises: Get the tape loading instruction and load the target tape into the tape drive; rewinding the target tape to the starting position of the target tape; Obtaining a positioning instruction, and positioning the target position of the target magnetic tape according to the positioning instruction; Traversing each file in the backed-up data in the target tape, comparing the data to be backed up with the backed-up data, and obtaining target incremental data, wherein the target incremental data includes newly added files, modified files, and deleted files; A tape backup instruction is obtained, and the target incremental data is backed up to a target position of the target tape through the tape backup instruction.
2. The tape library backup and archiving method according to claim 1, characterized in that: The obtaining of the tape backup instruction, backing up the target incremental data to the target location of the target tape by means of the tape backup instruction, comprises: Writing all files in the target incremental data into a magnetic tape, and updating metadata indexes of newly added files and modified files in the target incremental data; Mark the metadata index of the deleted file in the target incremental data.
3. The tape library backup and archiving method according to claim 1, characterized in that: The method further comprises: Obtaining a tape recovery instruction, obtaining a target recovery data sequence through the tape recovery instruction, and determining the target tape according to the target recovery data sequence, wherein the target tape stores the target recovery data; loading the target tape into the tape drive; rewinding the target tape to the starting position of the target tape; Locate the target recovery data at the target location of the target tape according to the tape recovery instruction; The target recovery data is restored from the target location to a specified directory.
4. The tape library backup and archiving method according to claim 1, characterized in that: The method further comprises: Get create archive request; Displaying an archive creation interface, wherein the archive creation interface includes an archive name input item, a data type input item, and an archive object input item; Obtaining the data type selected by the user in the archive creation interface, determining the file agent to be archived and the storage type where the archived backup data is located, and obtaining the archive information; Get multiple archive strategies that are set; Get multiple archive plans that are set; The backup data is archived according to the archiving information, the multiple archiving strategies and the multiple archiving plans.
5. The tape library backup and archiving method according to claim 4, characterized in that: The multiple archiving strategies that are set include: Get archive policy setting request; Displaying an archiving strategy setting interface, the archiving strategy setting interface including a first archiving strategy setting and a second archiving strategy setting item, the first archiving strategy being a single backup plan, the first archiving strategy being used to archive all unarchived backup sets to a tape, the second archiving strategy being a scheduled backup plan within a preset period, and being used to back up unarchived backup sets after the preset time with the time when the second archiving strategy was created as the preset time; Get the first archiving strategy and the second archiving strategy set in the archiving strategy interface.
6. The tape library backup and archiving method according to claim 4, characterized in that: Before obtaining the multiple archive plans that are set, include: Creating an archiving plan, wherein the archiving plan includes multiple archiving tasks, and each archiving task corresponds to setting an archiving strategy and a time strategy; Execute the multiple archiving tasks according to the archiving strategy and time strategy corresponding to the archiving tasks to archive the archive set; When executing the plurality of archiving tasks, generating an archiving log for each archiving task; After the multiple archiving tasks are completed, the archiving results of the multiple archiving tasks are displayed in a list form, wherein the archiving results include the archiving status, archiving identifier, archiving log, archiving start time and archiving end time of the archiving task; Display the archiving status statistics results of the multiple archiving tasks.
7. The tape library backup and archiving method according to claim 4, characterized in that: The archiving plan includes a plurality of archiving tasks, and the method further includes: Displaying a job management page, the job management page including a backup start statistics icon bar, a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation failure icon bar, a backup pause icon bar, and a backup skip icon bar; Obtaining a drag instruction from a first backup icon bar to a second backup icon bar, wherein the first backup icon bar and the second backup icon bar are any two of a backup in progress statistics icon bar, a backup execution success icon bar, a backup execution failure statistics bar, a backup creation icon bar, a backup pause icon bar, and a backup skip icon bar; The backup task in the first backup icon column is switched to the second backup icon column and processed as the backup task in the second backup icon column.
8. A tape library backup and archiving device, characterized in that: It comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the tape library backup and archiving method as claimed in any one of claims 1 to 7 when executing the computer program.
9. A computing device, characterized in that It comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the tape library backup and archiving method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, enable the computer to execute the tape library backup and archiving method according to any one of claims 1 to 7.
Citation Information
Cited By
Storage backup optimization method for long-term storage of large-scale digital literature
CN121349766A
Storage backup optimization method for long-term preservation of large-scale digital literature
CN121349766B
