Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for file recovery

A file recovery and file technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problems of impractical one-time verification and recovery, waste of memory, etc., to reduce consumption and improve recovery speed Effect

Active Publication Date: 2012-10-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Open the entire file first, read it into the computer memory, and then verify and restore the entire file at one time. This is especially a waste of memory when the file is large, especially for wired devices such as embedded devices. As far as the device is concerned, it is not practical to verify and restore the entire file at one time; in addition, it is not necessary to verify and restore the entire file at one time only when the content of a small part of the file is unreliable.

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
  • Method and device for file recovery
  • Method and device for file recovery
  • Method and device for file recovery

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] see figure 1 , a file recovery method, the execution subject of the method includes user terminals such as computers and mobile phones, of course, the execution subject of the method can also be a server such as a file server, specifically including:

[0025] Step 101: Divide the file into blocks to obtain N file blocks, where N is an integer greater than or equal to 1;

[0026] Step 102: Add redundant information to each file block, the redundant information includes the logical relationship information between the current file block and the previous file block and the subsequent file block, and the recovery domain information of the current file block;

[0027] Step 103: Obtain the specific file block according to the logical relationship information in the file block before the specific file block or the logical relationship information in the file block after the specific file block;

[0028] Step 104: Recover the specific file block according to the recovery domai...

Embodiment 2

[0031] see figure 2 , a file recovery method, the execution subject of the method includes user terminals such as computers and mobile phones, of course, the execution subject of the method may also be a server such as a file server, and the embodiment of the present invention does not specifically limit this, the specific steps as follows:

[0032] Step 201: dividing the file into N file blocks, where N is an integer greater than or equal to 1;

[0033] Specifically, divide the file into N file blocks, including:

[0034] Step 201-1: Set the file block size in advance according to the file size;

[0035] Step 201-2: divide the file into N file blocks according to the size of the file block;

[0036] For example, if the size of the file is m bytes, and the set file block size is k bytes, then the file can be divided into n file blocks; when m / k has a remainder, n=m / k+1, at this time, finally The size of a file block c=m-k*(n-1); when m / k is divisible, n=m / k; wherein m, c ...

Embodiment 3

[0098] see image 3 , a file recovery device, the device is specifically consistent with the execution subject described in the method embodiment 2, including: a block module 301, an addition module 302, an acquisition module 303 and a recovery module 304;

[0099] A block module 301, configured to block the file to obtain N file blocks, where N is an integer greater than or equal to 1;

[0100] The adding module 302 is used to add redundant information to each file block obtained by the block module 301, wherein the redundant information includes the logical relationship information between the current file block and the previous file block and the subsequent file block and the recovery of the current file block domain information;

[0101] An obtaining module 303, configured to obtain the specific file block according to the logical relationship information in the file block before the specific file block or the logical relationship information in the file block after the s...

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 method and a device for file recovery and belongs to the field of file processing. The method comprises the steps that: files are divided into blocks to obtain N file blocks, and the N is an integer greater than 1; redundant information is added to each file block, and the redundant information comprises logic relation information and recovery domain information of the current file block, wherein the logic relation information comprises logic relation information between the current file block and a previous file block of the current file block and logic relation information between the current file block and a next file block of the current file block; a specific file block is obtained according to logic relation information in a previous file block of the specific file block or logic relation information in a next file block of the specific file block; and recovery of the specific file block is carried out according to recovery domain information of the specific file block and a preset recovery algorithm. By realizing a technical scheme in the invention, when recovery of a file is carried out, the file blocks in the file can be recovered one by one, and complete traditional recovery of a whole file for one time is no longer necessary, and file recovery speed is improved, and memory consumption of a system is reduced.

Description

technical field [0001] The invention relates to the field of file processing, in particular to a file recovery method and device. Background technique [0002] A file is an ordered sequence of related data elements, usually stored on carriers such as computer disks, CDs, and U disks. [0003] As an emerging information transmission channel, computer network has been widely favored by users based on its advantages of convenient use and high transmission speed. The computer network can make the file transfer more convenient and timely, but the existence of hackers and viruses makes the files transferred in the network have certain security risks, such as malicious changes, additions or deletions of the file content by hackers and viruses during the transfer process. Intrusion, etc., causing the content of the files received by the user to be no longer reliable, bringing certain economic and spiritual losses to the user. [0004] In addition, even if the file is stored on the...

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 于涛
Owner TENCENT TECH (SHENZHEN) CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More