File life cycle management method and device, electronic equipment and storage medium

A life cycle, file storage technology, applied in file system management, file system, file/folder operations, etc., can solve the problems of wrong file deletion and unreasonable file life cycle management, so as to reduce wrong file deletion and increase reasonable sexual effect

Pending Publication Date: 2022-07-05
NEW H3C TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with this method, file deletion depends entirely on the length of the life cycle, and it is prone to wrong deletion of files. For example, in the case of early deletion of "popular" files, the file life cycle management is unreasonable.

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File life cycle management method and device, electronic equipment and storage medium
  • File life cycle management method and device, electronic equipment and storage medium
  • File life cycle management method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0090] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art based on the present application fall within the protection scope of the present application.

[0091] In order to avoid file life cycle management based solely on the life cycle duration and improve the rationality of file life cycle management, an embodiment of the present application provides a file life cycle management method, see figure 1 , the method includes:

[0092] S11: Obtain the file creation time, file life cycle duration, and file storage path of the file to be managed.

[0093] The file life cycle management meth...

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

PUM

No PUM Login to view more

Abstract

Embodiments of the invention provide a file life cycle management method and apparatus, an electronic device and a storage medium. The method comprises the steps of obtaining a file creation moment, a file life cycle duration and a file storage path of a to-be-managed file; according to the file creation moment and the file life cycle duration, whether the to-be-managed file is expired at the current moment is judged; if the to-be-managed file is expired, obtaining a preset fault-tolerant duration of the to-be-managed file; calculating a pre-deletion moment of the to-be-managed file according to a preset fault-tolerant duration, a file creation moment and a file life cycle duration; and according to the pre-deletion moment and the file storage path, executing deletion operation of the to-be-managed file. In the file life cycle management process, by introducing a fault-tolerant mechanism, the situation that the file is deleted by mistake due to the fact that the file completely depends on a deletion rule is avoided.

Description

technical field [0001] The present application relates to the technical field of file life cycle management, and in particular, to a file life cycle management method, apparatus, electronic device and storage medium. Background technique [0002] During the operation of the business system, many temporary files, such as offline downloaded cache files and backup files, will be generated. These files occupy storage resources. If they are not deleted regularly, the storage of business data will be greatly affected as the number of files increases. At present, most business systems run on the Linux operating system, but the Linux operating system does not have the capability of file life cycle management. [0003] In the prior art, the life cycle duration of the file is stored in the database through configuration, and the file information (such as creation time, etc.) of the file and the life cycle duration of the file are written into the database when the file is created; W...

Claims

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

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F16/11G06F16/16G06F16/172
CPCG06F16/113G06F16/162G06F16/172
Inventor 郝向东
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products