Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A deleted file recovery method, device, equipment and readable storage medium

A file recovery and deleted technology, applied in the direction of file system, file access structure, file/folder operation, etc., can solve the problems of difficult file recovery, no recycle bin, loss, etc.

Active Publication Date: 2022-04-22
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the Unix / Linux system, it is difficult to recover after the terminal executes the command to delete the file. If an important file is deleted by mistake, it will undoubtedly increase the workload and cause great losses.
On the Unix / Linux system, there is no recycle bin similar to that in the Windows system, making it difficult to recover files

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
  • A deleted file recovery method, device, equipment and readable storage medium
  • A deleted file recovery method, device, equipment and readable storage medium
  • A deleted file recovery method, device, equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Please refer to figure 1 , figure 1 It is a flow chart of a deleted file recovery method in the embodiment of the present invention, and the method can be applied to Unix / Linux systems.

[0048] The data is finally saved in the form of data blocks on the disk divided into individual data blocks. The operating system manages these data through the file system. In the operating system, the file system is represented in a hierarchical form, which can usually be represented as an inverted tree. All files and subdirectories are located by looking up their parent directory entries. The corresponding inode number (inode) can be found by matching the file name in the directory entry, and the file can be found on the disk by searching the inode table (inode table). position on the On Unix / Linux systems, a directory is just a special kind of file. A directory and a file are distinguished by the file_type field. Specifically, a value of 1 indicates a normal file, and a value ...

Embodiment 2

[0088] Corresponding to the above method embodiment, the embodiment of the present invention also provides a device for restoring deleted files. The device for restoring deleted files described below and the method for restoring deleted files described above can be referred to in correspondence with each other.

[0089] see figure 2 As shown, the device includes the following modules:

[0090] The free directory traversal module 101 is used to traverse the free directory in the cache of the metadata server to obtain the directory entry and the index node of the deleted file;

[0091] A pathname acquisition module 102, configured to utilize the index node to acquire the pathname of the deleted file;

[0092] The renaming module 103 is used for renaming the path name in the directory entry to a path name;

[0093] The file restoration module 104 is configured to restore the state of the directory entry and the index node to the state before deletion.

[0094] Apply the devic...

Embodiment 3

[0106]Corresponding to the above method embodiment, the embodiment of the present invention also provides a device for restoring deleted files. The device for restoring deleted files described below and the method for restoring deleted files described above can be used for mutual reference.

[0107] see image 3 As shown, the deleted file recovery equipment includes:

[0108] memory D1 for storing computer programs;

[0109] The processor D2 is configured to implement the steps of the deleted file recovery method in the above method embodiment when executing the computer program.

[0110] Specifically, please refer to Figure 4 , Figure 4 A specific structural diagram of a deleted file recovery device provided in this embodiment, the deleted file recovery device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (eg, one or more processors) and memory 332, and on...

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

The invention discloses a deleted file recovery method, device, equipment and readable storage medium. The method comprises the following steps: traversing the free directory in the cache of the metadata server to obtain the directory entry and the index node of the deleted file; using the index The node gets the pathname of the deleted file; renames the pathname in the directory entry to the pathname; restores the state of the directory entry and inode to the state before deletion. With this method, the deleted files in the Unix / Linux system can be recovered, and the data content of the deleted files can be continued to be accessed.

Description

technical field [0001] The invention relates to the field of computer application technology, in particular to a method, device, equipment and readable storage medium for restoring deleted files. Background technique [0002] The Windows system has a recycle bin function. Usually deleted files are placed in the recycle bin, and can be restored from the recycle bin when you want to restore. [0003] However, in the Unix / Linux system, it is difficult to recover after the terminal executes the command to delete the file. If an important file is deleted by mistake, it will undoubtedly increase the workload and cause great losses. However, the Unix / Linux system does not have a recycle bin similar to that in the Windows system, making it difficult to recover files. [0004] In summary, how to effectively solve problems such as file recovery in the Unix / Linux system is a technical problem urgently needed by those skilled in the art. Contents of the invention [0005] The purpos...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/16G06F16/13G06F11/14
CPCG06F16/16G06F16/13G06F11/1423G06F11/1458
Inventor 赵培文张立强
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products