Thermal magnetic storage data automatic backup method and device
By setting the association policy table and transition threshold in the S3 space, automatically filtering and backing up objects, the problem of automatic filtering and incremental backup in the existing technology is solved, and an efficient automatic backup process is achieved.
Patent Information
- Application Number
- CN202210186350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The existing technology cannot automatically filter and incremental backup of objects in S3 space that need to be backed up. The manual backup process is cumbersome, and it is impossible to effectively filter cold data and avoid duplicate backups.
By setting the association policy table and the thermal magnetic storage space, detecting the backup cycle and filtering data according to the archive policy, using transition thresholds to distinguish archive types, realizing automatic filtering and incremental backups.
It realizes automatic filtering of objects that need to be backed up, periodically executes archive strategies, simplifies user operations, avoids duplicate backups, and improves backup efficiency.
Smart Images

Figure CN114546727B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data communication, and in particular relates to a method and device for automatic backup of thermal magnetic storage data. Background Art
[0002] In an archiving project, when users archive S3 space objects to ordinary Blu-ray, they can select some objects from S3, or select an entire space to create an archiving task. Only by executing the archiving task can the objects be archived to ordinary Blu-ray.
[0003] In the related art, when a user chooses to archive all objects in an S3 space into a Blu-ray space, a manual backup method is currently used. Whenever a new object is added to the S3 space during use, a backup task needs to be manually created, and manually selecting and filtering the newly added objects is a cumbersome process. Secondly, if it is necessary to perform some simple filtering on the objects in the S3 space, such as how to filter cold data, how to filter by prefix, how to perform incremental backup, how to avoid duplicate backups, etc. In summary, there is currently a problem that objects in S3 that need to be backed up cannot be automatically filtered, such as filtering objects by prefix or modification time, and incremental backup cannot be automatically performed. Summary of the invention
[0004] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a method and device for automatic backup of thermal magnetic storage data to solve the problems in the prior art that objects in S3 that need to be backed up cannot be automatically filtered and incremental backup cannot be automatically performed.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: a method for automatic backup of thermal magnetic storage data, comprising:
[0006] Setting an association strategy table to associate a preset archiving strategy with the thermal magnetic storage space, and detecting the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes the last association execution time;
[0007] Obtaining a time period from the execution time of the last backup to the current time, determining whether the time period reaches a backup execution cycle, and determining whether to perform archiving according to the archiving strategy when the backup execution cycle is reached, and when determining to perform archiving, filtering the data in the thermal magnetic storage space according to the associated strategy table to obtain filtered data;
[0008] Determine whether the transition threshold in the archiving strategy is greater than zero. When the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, add the filtered data to the archiving task, otherwise filter; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, add the filtered data to the archiving task, otherwise filter; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated;
[0009] The data added to the archiving task is backed up and archived according to the archiving strategy.
[0010] Furthermore, before associating the preset archiving strategy with the thermal magnetic storage space, the method further includes:
[0011] The archiving strategy is preset and stored in the database. The archiving strategy is used to determine whether the object needs to be compressed, merged and / or the transmission speed needs to be limited during the archiving process, and archived to the corresponding Blu-ray storage space and strategy status; the strategy status is enabled or disabled according to the preset operation cycle.
[0012] Further, judging whether to archive according to the archiving strategy includes:
[0013] Determine whether the policy status is an enabled state, and archive when the policy status is an enabled state.
[0014] Furthermore, backing up and archiving the data added to the archiving task according to the archiving strategy includes:
[0015] The data added to the archiving task is judged according to whether the object needs to be compressed, merged and / or the transmission speed limit conditions in the archiving strategy, and the data is backed up and archived after corresponding processing according to the judgment result.
[0016] Furthermore, the setting of the association strategy table to associate the preset archiving strategy with the thermal magnetic storage space includes:
[0017] configuring a prefix of at least one of the thermal magnetic storage space objects when filtering;
[0018] When filtering, filter the data that matches the prefix configuration.
[0019] Furthermore, the prefix is an arbitrary character string.
[0020] Furthermore, the unit of the transition threshold is day.
[0021] The present application provides a device for automatically backing up thermal magnetic storage data, comprising:
[0022] An association module, used to set an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detect the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes an association execution time;
[0023] a screening module, used for obtaining a time period from the execution time of the last backup to the current time, judging whether the time period reaches a backup execution cycle, and judging whether to perform archiving according to the archiving strategy when the backup execution cycle is reached, and when it is determined to perform archiving, filtering the data in the thermal magnetic storage space according to the associated strategy table to obtain screening data;
[0024] A judgment module, used to judge whether the transition threshold in the archiving strategy is greater than zero. When the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, the filtered data is added to the archiving task, otherwise it is filtered; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, the filtered data is added to the archiving task, otherwise it is filtered; wherein the transition threshold is a time period during which the data in the thermal magnetic storage space is not updated;
[0025] The backup module is used to back up and archive the data added to the archiving task according to the archiving strategy.
[0026] An embodiment of the present application provides a computer device, characterized in that it includes: a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the automatic backup of the thermal magnetic storage data provided in any of the above embodiments.
[0027] Furthermore, an embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the automatic backup method for thermal magnetic storage data provided in any of the above embodiments.
[0028] The present invention adopts the above technical solution, and the beneficial effects that can be achieved include:
[0029] The present invention provides a method and device for automatic backup of thermal magnetic storage data. The present invention creates an archiving strategy to automatically screen objects that need to be archived in S3 space and periodically executes the archiving strategy, which greatly facilitates user use. The transition threshold parameter in the strategy distinguishes the archiving type. When the threshold is 0, it is a full backup; when the threshold is greater than 0, it is a cold data backup. The definition of the transition threshold simplifies the code and user use. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A schematic diagram of the steps of the automatic backup method of thermal magnetic storage data of the present invention;
[0032] Figure 2 A schematic diagram of the automatic backup method of thermal magnetic storage data of the present invention;
[0033] Figure 3 It is a schematic diagram of the structure of the automatic backup device for thermal magnetic storage data of the present invention. DETAILED DESCRIPTION
[0034] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0035] The thermal magnetic storage in this application uses S3 storage. S3 is theoretically a global storage area network (SAN), which is presented as an oversized hard disk in which digital assets can be stored and retrieved. The assets stored and retrieved by S3 are called objects. Objects are stored in buckets, which can be compared to hard disks: objects are like files, and buckets are like folders (or directories). Like hard disks, objects and buckets can also be found through Uniform Resource Identifiers (URIs).
[0036] Blu-ray or blue disc uses a shorter wavelength blue laser to read and write data, hence the name. Blu-ray has greatly increased the storage capacity of optical discs, and for optical storage products, Blu-ray provides an opportunity for leapfrogging development. The Blu-ray storage space in this application is a storage space of an object storage structure, which is used to store file objects.
[0037] A specific method and device for automatic backup of thermal magnetic storage data provided in an embodiment of the present application will be described below in conjunction with the accompanying drawings.
[0038] like Figure 1 As shown, the automatic backup method of thermal magnetic storage data provided in the embodiment of the present application includes:
[0039] S101, setting an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detecting the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes the last association execution time;
[0040] An association strategy table is set, and the association strategy table is used to associate a pre-built archiving strategy with the thermal magnetic storage space, and detect the execution time of the last backup of the thermal magnetic storage space in a preset operation cycle, wherein the association strategy table also has an association execution time. The association execution time includes the execution time of each association, and the association execution time in this application refers to the last association execution time.
[0041] S102, obtaining a time period from the execution time of the last backup to the current time, determining whether the time period reaches a backup execution cycle, and when the backup execution cycle is reached, determining whether to perform archiving according to the archiving strategy, and when it is determined to perform archiving, filtering the data in the thermal magnetic storage space according to the associated strategy table to obtain filtered data;
[0042] The backup execution cycle is pre-set, wherein when the time period from the execution time of the last backup to the current time reaches the backup execution cycle, the conditions set in the archiving strategy are used to determine whether the current data can be archived. If it is determined to be archived, the data in the thermal magnetic storage space is screened according to the settings in the associated policy table. This application checks the periodicity of policy execution through the periodic execution of the policy engine.
[0043] S103, judging whether the transition threshold in the archiving strategy is greater than zero, when the transition threshold is zero, and the last modification time of the filtered data is greater than the associated execution time, adding the filtered data to the archiving task, otherwise filtering; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, adding the filtered data to the archiving task, otherwise filtering; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated;
[0044] The time is verified based on the last modification time and the transition threshold set in the archiving policy. If the transition threshold is 0, it is considered a backup operation, so all objects that meet the prefix filter will be backed up. If the transition threshold is not 0, only objects with a modification time interval greater than the threshold will be archived to the Blu-ray space, and can be determined through configuration to ultimately create a task.
[0045] S104: Back up and archive the data added to the archiving task according to the archiving strategy.
[0046] Multiple archiving conditions are set in the archiving strategy. In this application, the archiving conditions of the data added to the archiving task are first judged. When the conditions are met, conditional processing is required first. For example, whether the data is eligible for compression or speed limit processing, compression or speed limit will be performed before backup.
[0047] Preferably, the unit of the transition threshold is day.
[0048] To summarize, this application automatically filters and backs up data in the S3 space. The technical solution provided by this application can automatically filter the objects in S3 that need to be backed up, such as filtering objects by prefix and modification time. It can also realize automatic incremental backup, and only back up the newly added data each time.
[0049] The archiving strategy provided in this application will be executed periodically. First, all the policy-related information is retrieved from the database. The related information is the information bound to the S3 space that needs to be archived and a certain policy, including the prefix information of whether the object needs to be filtered according to the prefix and the time when the associated S3 space last executed the backup strategy. Based on this time, it is determined whether the execution cycle has arrived and whether the policy is enabled. If the above conditions are met, the information of the S3 space and the Blu-ray space is obtained according to the policy. In the S3 space, the objects that meet the prefix conditions are first filtered out by the prefix in the associated policy table, and then the time is verified according to the last modification time of the object and the threshold set in the policy. If the threshold is 0, it is considered to be a backup operation, so all objects that meet the prefix filtering will be backed up. If the threshold is not 0, only objects with a modification time interval greater than the threshold will be archived to the Blu-ray space, and can be determined by configuration to finally create a task.
[0050] In some embodiments, before associating the preset archiving strategy with the thermal magnetic storage space, the method further includes:
[0051] The archiving strategy is preset and stored in the database. The archiving strategy is used to determine whether the object needs to be compressed, merged and / or the transmission speed needs to be limited during the archiving process, and archived to the corresponding Blu-ray storage space and strategy status; the strategy status is enabled or disabled according to the preset operation cycle.
[0052] Preferably, judging whether to archive according to the archiving strategy includes:
[0053] Determine whether the policy status is an enabled state, and archive when the policy status is an enabled state.
[0054] It is understandable that this application requires the user to first establish an archiving strategy, which can specify whether objects need to be compressed, small objects need to be merged, and the transmission speed needs to be limited during the archiving process, and specify which Blu-ray space to archive to. The archiving strategy has its own status, and the user can configure the policy status of the strategy by himself. The policy status includes enabling or disabling, and the policy status can be modified at any time. After the backup execution cycle is reached, it is necessary to determine whether the policy status is enabled. Only when it is enabled can the next step of archiving be performed.
[0055] In some embodiments, the setting of the association strategy table to associate the preset archiving strategy with the thermal magnetic storage space includes:
[0056] configuring a prefix of at least one of the thermal magnetic storage space objects when filtering;
[0057] When filtering, filter the data that matches the prefix configuration.
[0058] Preferably, the prefix is an arbitrary string.
[0059] Specifically, periodically check the last execution time of the associated policy table. The policy has an operation cycle for backing up S3 space objects. It does not detect space objects all the time, but only once in a period of time. The operation cycle can be configured by the user. If the last execution time meets the configuration of the operation cycle, proceed to the next step, which is to detect the policy status. When the policy status is on, proceed to the next step, otherwise skip and wait for the next cycle detection.
[0060] When archiving, the prefix condition in the association tag filters the objects in S3. Specifically, only objects whose prefixes meet the settings will be selected for archiving by the policy (multiple prefixes can be configured, and the prefix can be any string. For example, there are three objects named test_1, test_2, and analysis in the S3 space. If the prefix is configured as test, the analysis object will be filtered out. If it is a, test_1 and test_2 will be filtered out. If it is c, all three objects will be filtered out).
[0061] After obtaining the filtered data, if the transition threshold is 0 and the last modification time of the object is greater than the last execution time of the associated table policy record, the object is added to the archiving task, otherwise it is filtered out; if the transition threshold is greater than 0, the last modification time of the object - transition threshold > the execution time of the current archiving policy, and the last modification time of the object > the last execution time of the associated table policy record - transition threshold, then the object is added to the archiving task, otherwise it is filtered out. The transition threshold is set according to how long the user wants to back up the data that has not been modified for 60 days. For example, if the user wants to back up objects that have not been modified in the S3 space for 60 days to the Blu-ray space, then the transition threshold is set to 60.
[0062] In some embodiments, backing up and archiving the data added to the archiving task according to the archiving strategy includes:
[0063] The data added to the archiving task is judged according to whether the object needs to be compressed, merged and / or the transmission speed limit conditions in the archiving strategy, and the data is backed up and archived after corresponding processing according to the judgment result.
[0064] Finally, this application creates an archiving task according to the conditions configured by the policy, compression, merging, speed limit and other conditions as well as the filtered objects. Modify the last execution time of the associated policy to the current time.
[0065] As a specific implementation method, the periodicity of policy execution is checked through the periodic execution of the policy engine; filtering is achieved through prefixes and transition thresholds, and the transition threshold and the last modification time together solve the problem of duplicate archiving. When the user needs an incremental backup, if the increment is large, the user cannot filter manually and can only choose to back up the objects of the entire space again, so the objects in the non-incremental part are repeated. In this application, whether it is a prefix, a transition threshold, or a periodic execution, it is a screening method that can effectively avoid repeated selection of archived objects. In this application, whether to archive is determined by comparing the transition threshold, the last execution time of the associated policy table, and the last modification time of the object. After the policy association table executes the policy, the last execution time will be updated to the time of this execution, and the last modification time of the object will also be updated to the time of this execution after being archived.
[0066] Specific as Figure 2 As shown, if the current time is 3, each grid represents the interval of one cycle time of the strategy engine;
[0067] When the transition threshold is 0, the first cycle will filter out all objects before 3. When the time reaches 4, it reaches the next cycle. The second cycle will filter out objects between 3 and 4. In this way, the spatial objects can be added.
[0068] When the transition threshold is 1, the first cycle will back up objects before 3-1, that is, before 2. When the time reaches 4, it arrives at the next cycle, and the second cycle will filter out objects between 2 and 3. In this way, incremental backup of cold data is achieved.
[0069] like Figure 3 As shown, the embodiment of the present application provides a thermal magnetic storage data automatic backup device, comprising:
[0070] The association module 301 is used to set an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detect the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes an association execution time;
[0071] The screening module 302 is used to obtain the time period from the execution time of the last backup to the current time, determine whether the time period reaches the backup execution cycle, and when the backup execution cycle is reached, determine whether to archive according to the archiving strategy, and when it is determined to archive, filter the data in the thermal magnetic storage space according to the associated strategy table to obtain filtered data;
[0072] The judgment module 303 is used to judge whether the transition threshold in the archiving strategy is greater than zero. When the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, the filtered data is added to the archiving task, otherwise it is filtered; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, the filtered data is added to the archiving task, otherwise it is filtered; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated;
[0073] The backup module 304 is used to back up and archive the data added to the archiving task according to the archiving strategy.
[0074] The working principle of the automatic backup device for thermal magnetic storage data provided by the present application is as follows: the association module 301 sets an association strategy table to associate a preset archiving strategy with the thermal magnetic storage space, and detects the execution time of the last backup of the associated thermal magnetic storage space with a preset operation cycle; the association strategy table includes the association execution time; the screening module 302 obtains the time period from the execution time of the last backup to the current time, determines whether the time period reaches the backup execution cycle, and when the backup execution cycle is reached, determines whether to archive according to the archiving strategy, and when it is determined to archive, the data in the thermal magnetic storage space is screened according to the association strategy table to obtain the screened data; the judgment module 303 determines whether the archiving strategy is excessive Whether the transition threshold is greater than zero, when the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, the filtered data is added to the archiving task, otherwise it is filtered; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving policy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, the filtered data is added to the archiving task, otherwise it is filtered; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated; the backup module 304 backs up and archives the data added to the archiving task according to the archiving policy.
[0075] The embodiment of the present application provides a computer device, comprising: a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes to set an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detects the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes the last association execution time; obtains a time period from the execution time of the last backup to the current time, determines whether the time period reaches the backup execution cycle, and when the backup execution cycle is reached, determines whether to archive according to the archiving strategy, and when it is determined to archive, filters the data in the thermal magnetic storage space according to the association strategy table to obtain Filter data; determine whether the transition threshold in the archiving strategy is greater than zero, when the transition threshold is zero, and the last modification time of the filtered data is greater than the associated execution time, add the filtered data to the archiving task, otherwise filter; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, add the filtered data to the archiving task, otherwise filter; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated; back up and archive the data added to the archiving task according to the archiving strategy.
[0076] The embodiment of the present application provides a computer storage medium storing a computer program. When the computer program is executed by a processor, the processor executes to set an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detects the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; the association strategy table includes the last association execution time; obtains a time period from the execution time of the last backup to the current time, determines whether the time period reaches the backup execution cycle, and when the backup execution cycle is reached, determines whether to archive according to the archiving strategy, and when it is determined to archive, filters the data in the thermal magnetic storage space according to the association strategy table to obtain filtered data; determines whether to Whether the transition threshold in the archiving strategy is greater than zero, when the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, the filtered data is added to the archiving task, otherwise it is filtered; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, the filtered data is added to the archiving task, otherwise it is filtered; wherein the transition threshold is the time period in which the data in the thermal magnetic storage space is not updated; the data added to the archiving task is backed up and archived according to the archiving strategy.
[0077] In summary, the present invention provides a method and device for automatic backup of thermal magnetic storage data. The present application realizes automatic screening of objects that need to be archived in S3 space by creating an archiving strategy and periodically executes the strategy, which greatly facilitates user use. The strategy uses the transition threshold parameter to distinguish the archiving type. When the threshold is 0, it is a full backup; when the threshold is greater than 0, it is a cold data backup. The definition of the transition threshold simplifies the code and user use.
[0078] It can be understood that the method embodiment provided above corresponds to the device embodiment described above, and the corresponding specific contents can be referenced to each other and will not be repeated here.
[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0081] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction method, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0083] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for automatic backup of thermal magnetic storage data, characterized in that: include: Setting an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detecting the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; The association strategy table includes the last association execution time; Obtaining a time period from the execution time of the last backup to the current time, determining whether the time period reaches a backup execution cycle, and determining whether to perform archiving according to the archiving strategy when the backup execution cycle is reached, and when determining to perform archiving, filtering the data in the thermal magnetic storage space according to the associated strategy table to obtain filtered data; Determine whether the transition threshold in the archiving strategy is greater than zero. When the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, add the filtered data to the archiving task, otherwise filter; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, add the filtered data to the archiving task, otherwise filter; wherein the transition threshold is the time period during which the data in the thermal magnetic storage space is not updated; The data added to the archiving task is backed up and archived according to the archiving strategy.
2. The method according to claim 1, characterized in that Before associating the preset archiving strategy with the thermal magnetic storage space, it also includes: The archiving strategy is preset and stored in the database. The archiving strategy is used to determine whether the object needs to be compressed, merged and / or the transmission speed needs to be limited during the archiving process, and archived to the corresponding Blu-ray storage space and strategy status; the strategy status is enabled or disabled according to the preset operation cycle.
3. The method according to claim 2, characterized in that The determining whether to archive according to the archiving strategy includes: Determine whether the policy status is an enabled state, and archive when the policy status is an enabled state.
4. The method according to claim 2, characterized in that: The backing up and archiving the data added to the archiving task according to the archiving strategy includes: The data added to the archiving task is judged according to whether the object needs to be compressed, merged and / or the transmission speed limit conditions in the archiving strategy, and the data is backed up and archived after corresponding processing according to the judgment result.
5. The method according to claim 1, characterized in that The setting association strategy table associates the preset archiving strategy with the thermal magnetic storage space, including: configuring a prefix of at least one of the thermal magnetic storage space objects when filtering; When filtering, filter the data that matches the prefix configuration.
6. The method according to claim 5, characterized in that The prefix is an arbitrary string.
7. The method according to claim 1, characterized in that The unit of the transition threshold is day.
8. A thermal magnetic storage data automatic backup device, comprising: An association module, used for setting an association strategy table to associate a preset archiving strategy with a thermal magnetic storage space, and detecting the execution time of the last backup of the associated thermal magnetic storage space in a preset operation cycle; The association strategy table includes an association execution time; a screening module, used for obtaining a time period from the execution time of the last backup to the current time, judging whether the time period reaches a backup execution cycle, and judging whether to perform archiving according to the archiving strategy when the backup execution cycle is reached, and when it is determined to perform archiving, filtering the data in the thermal magnetic storage space according to the associated strategy table to obtain screening data; A judgment module, used to judge whether the transition threshold in the archiving strategy is greater than zero. When the transition threshold is zero and the last modification time of the filtered data is greater than the associated execution time, the filtered data is added to the archiving task, otherwise it is filtered; if the transition threshold is greater than zero, and the difference between the last modification time of the filtered data and the transition threshold is greater than the execution time of the current archiving strategy, and the last modification time of the filtered data is greater than the difference between the associated execution time and the transition threshold, the filtered data is added to the archiving task, otherwise it is filtered; wherein the transition threshold is a time period during which the data in the thermal magnetic storage space is not updated; The backup module is used to back up and archive the data added to the archiving task according to the archiving strategy.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method for automatic backup of thermal magnetic storage data according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor executes the automatic backup method for thermal magnetic storage data according to any one of claims 1 to 7.
