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

File backup method and device

A file backup and backup technology, which is applied in the field of computer systems, can solve the problems of not supporting the full path name analysis of unlinked files, failing to obtain the full path name of unlinked files, and unable to realize the backup of unlinked files, so as to improve the integrity of functions Effect

Inactive Publication Date: 2012-01-25
HUAWEI TECH CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when the prior art is backing up, for the unlinked file that the above-mentioned process is using, because the current kernel does not support the analysis of the full path name of the unlinked file, it is impossible to obtain the full path name of the unlinked file, so the prior art cannot realize the full path name of the unlinked file. Backup of unlinked 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
  • File backup method and device
  • File backup method and device
  • File backup method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] The embodiment of the present invention provides a method for file backup, see figure 1 , the method flow includes:

[0030] 101: parsing the full path name of the unlinked file currently used by the process;

[0031] 102: Create a temporary directory entry of the unlinked file, and mark the full path name of the temporary directory entry with an identifier;

[0032] 103: Establish the corresponding relationship between the full path name of the marked temporary directory entry and the index node of the copy of the unlinked file in memory, and the full path name of the marked temporary directory entry and the full path name of the unlinked file Correspondence between;

[0033] 104: Save the full path name of the marked temporary directory item into the image file, and complete the backup of the unlinked file.

[0034] The method provided by the embodiment of the present invention correctly parses out the full path name of the unlinked file, and creates a temporary di...

Embodiment 2

[0036] The embodiment of the present invention provides a method for backing up and restoring files, which is used for backing up and restoring unlinked files being used by a process. When backing up, see figure 2 , the methods of file backup include:

[0037] 201: the full path name of the unlinked file currently used by the parsing process;

[0038] Specifically, when the existing application backup and restoration system is backing up, the full path name resolution algorithm d_path of the file does not support the resolution of the full path name of the unlinked file. This is because the algorithm will make an unlinked judgment for the file to be parsed. When it is determined that the file to be parsed is an unlinked file, the algorithm will consider that the pathname resolution of the unlinked file is meaningless, and then refuse to parse the full pathname of the unlinked file. The method provided by the embodiment of the present invention can customize a set of full pa...

Embodiment 3

[0066] An embodiment of the present invention provides a device for backing up files, which can implement the method steps in the first and second embodiments above. The device includes a backup module 401, see Figure 4 , optionally, the device may further include a restoring module 402;

[0067] see Figure 5 , the backup module 401 includes:

[0068] The parsing unit 401a is used for parsing the full path name of the unlinked file currently used by the process;

[0069] Creating unit 401b, used to create the temporary directory entry of the unlinked file, and mark the full path name of the temporary directory entry with an identifier;

[0070] The correspondence management unit 401c is configured to establish the correspondence between the full path name of the temporary directory entry marked by the creation unit 401b and the index node of the copy of the unlinked file in memory, and the temporary directory entry marked by the creation unit 401b Correspondence between ...

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 file backup method and device and belongs to the field of a computer system. The method comprises the following steps: analyzing an entire path name of an unlinked file which is used by a process currently; establishing a temporary directory entry of the unlinked file and marking the entire path name of the temporary directory entry with an identifier; establishing a congruent relationship between the marked entire path name of the temporary directory entry and an index node of a copy of the unlinked file in an internal memory and a congruent relationship between themarked entire path name of the temporary directory entry and the entire path name of the unlinked file; and storing the marked entire path name of the temporary directory entry into an image file, thereby finishing the back-up of the unlinked file. According to the method, the back-up of the unlinked file is realized by correctly analyzing the entire path name of the unlinked file and establishing the temporary directory entry of the unlinked file.

Description

technical field [0001] The invention relates to the field of computer systems, in particular to a file backup method and device. Background technique [0002] In the Linux operating system, operations on files are managed through operation permissions, and basic operation permissions include read (read), write (write) and execute (execute). For files on the disk, they are not used in an exclusive manner. Even if a file is being used, as long as a certain process has the write permission and execution permission of the directory where the file is located, then the file and its directory entries are can be deleted by this process. The source file and its directory entry on this disk have been deleted, but the copy in memory is still used by the process. It is called an unlinked file. For an unlinked file, although it can still be used by the process in memory, it can no longer be accessed through its full path name. For example, in a network file system (Network File System...

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/30G06F11/14
CPCG06F17/30G06F11/14G06F11/1458
Inventor 顾政
Owner HUAWEI TECH 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