Method for copying and archiving data of storage device

By using the backup system in the cloud storage host to automatically detect and execute data copy and archive jobs, the problem of complicated backup data operations is solved, which improves backup efficiency and enhances data access stability.

CN112988665BActive Publication Date: 2025-04-25安全数据有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911304531.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-17
Publication Date
2025-04-25
Estimated Expiration
2039-12-17

AI Technical Summary

Technical Problem

In cloud storage hosts, backup data is complicated and time-consuming, especially when maintaining and disassembling storage devices, manual backup is required to avoid data loss.

Method used

Through the backup system, data replication and archiving operations are uniformly detected and automatically performed, reducing labor costs and improving the execution efficiency of data backup.

Benefits of technology

The automated data backup process is realized, which improves backup efficiency, reduces manual operation time, and enhances the data access stability of the backup system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112988665B_ABST
    Figure CN112988665B_ABST
Patent Text Reader

Abstract

The present invention is a method for copying and archiving data of a storage device. After confirming that a storage device has been mounted on a carrier device, it detects that the storage device contains a file system. Then, all data of the storage device with the file system is copied to a folder to continue the archiving operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for organizing data, and more particularly to a method for copying and archiving data in a storage device. Background Art

[0002] The file system of computer software is a method of storing and organizing data in a storage device, making it easy to access and find data in the storage device. The file system uses the abstract logical concept of files and tree directories instead of the concept of data blocks used by physical storage devices such as hard disks and optical disks. The file system is generally established under the operating system as a subsystem of the operating system, for example: The file system under the operating system or The file system under the operating system. When users store data under the operating system, they use the file system to store data, without having to consider the actual address of the storage device where the data is stored or how many data blocks it occupies. The file system will provide the directory and file name to which the data is stored. Before writing new data, users do not have to worry about whether an address on the hard disk is used, or consider the storage space management (allocation and release) on the hard disk. This part of the function will be automatically completed by the file system. Users only need to understand which file the data read from the storage device is written to. Therefore, the file system is an indispensable system for storage devices.

[0003] Furthermore, storage devices have been evolving from local storage to cloud storage through the rapid development of network technology. Therefore, storage devices are no longer limited to the user's location. As long as the user can connect to the Internet, they can use cloud storage devices to access data anytime and anywhere. Moreover, even if storage devices are developed to cloud access methods and even remote backup is developed, the file system is still required to manage and access data to a specific address of the storage device, and to generate directories and folders accordingly to access data.

[0004] However, no matter how storage devices evolve, they still need to be maintained, or even disassembled and replaced. Generally speaking, when a server host is being maintained, it is necessary to first go offline and back up data to prevent the server host from being in an abnormal state and having no other data to restore. Therefore, backing up data is an inseparable action for storage devices. In terms of backing up data, a cloud storage host mounts multiple storage devices, such as traditional hard drives and solid-state drives. Therefore, backing up data for a cloud storage host is very complicated and trivial in operation, and it is very time-consuming to operate one by one.

[0005] Based on the above problems, the present invention provides a method for copying and archiving data of a storage device, which is detected and automatically executed by a backup system, thereby reducing labor costs and increasing the efficiency of data backup. Furthermore, the present invention not only copies data but also archives the copied data to enhance the data access stability of the backup system. Summary of the invention

[0006] The main purpose of the present invention is to provide a method for copying and archiving data of a storage device, which performs data copying and subsequent data archiving by sensing that a load-bearing device has completed the mounting operation of the storage device, so as to increase the execution efficiency of data backup and enhance the data access stability of the backup system.

[0007] In order to achieve the above-mentioned purpose, the present invention discloses a method for copying and archiving data of a storage device, which is applied to a backup system. The backup system includes a host and at least one load device. The host is electrically connected to the at least one load device. The method first electrically connects at least one storage device to the at least one load device; then, the host will create a temporary folder to copy at least one data of the file system in the storage device, and the host will display the corresponding copy progress during the data copying process; then after the copying is completed, the host will continue to perform the data archiving operation, thereby archiving the temporary folder to a backup folder of the backup system according to a file attribute of the at least one file system. By sensing the status of the storage device and archiving the data, the execution efficiency of the data backup is increased and the data access stability of the backup system is enhanced.

[0008] The present invention provides an embodiment, wherein before the step of electrically connecting at least one storage device to the at least one carrier device, there is further included a step of detecting whether the at least one carrier device has completed initialization, the host detects whether a connector of the at least one carrier device is initialized, and when the connector initialization is completed, the host proceeds to execute the step of detecting whether at least one storage device is mounted on the at least one carrier device.

[0009] The present invention provides an embodiment, wherein before the host creates a temporary folder and copies at least one data in the at least one storage device to the temporary folder, the host further includes a step of detecting whether at least one storage device is mounted on the at least one carrier device through the host, and the host determines whether the storage device is mounted on the carrier device based on a connection signal generated by the at least one storage device when the mounting is completed.

[0010] The present invention provides an embodiment, wherein after the host displays a mounting completion message according to the location of at least one bearing device, the host detects whether the at least one storage device has at least one file system. When the at least one storage device has at least one file system, the host displays the usage status of the at least one storage device and a plurality of folders of the at least one file system according to the location of the at least one bearing device, thereby allowing the user to know the file system of the storage device and its usage status through the host.

[0011] The present invention provides an embodiment, wherein in the step of sensing that at least one file system is installed in each of the storage devices and displaying the usage status of the storage devices, the host executes a backup program to scan the data in the storage device including at least one file-related data (Metadata) to determine whether the at least one file system exists in the at least one storage device, and the backup program scans the usage status of the at least one storage device to display a scanning result on a display device.

[0012] The present invention provides an embodiment, wherein in the step of copying the data in the at least one storage device to a backup folder, the host creates the temporary folder at a temporary address to access the data, and the host displays the copying progress of the data on a display device.

[0013] The present invention provides an embodiment, wherein in the step of storing at least one data in a backup folder corresponding to the carrier device of the at least one storage device, the host transfers the backup folder from a temporary address to the corresponding backup folder in a backup device.

[0014] The present invention provides an embodiment, wherein the backup system further arranges the folders in the backup system according to a name, a data type, a creation date or a modification date.

[0015] The present invention provides an embodiment, wherein in the steps of sensing that at least one file system is installed in each of the storage devices and displaying the usage status of the storage devices, the host further senses that at least one of the storage devices has at least one hardware error or at least one software error, and displays the at least one hardware error message or the at least one software error message on a display device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 :It is a flow chart of an embodiment of the present invention;

[0017] Figure 2A : It is a schematic diagram of a system for displaying a mount completion message according to an embodiment of the present invention;

[0018] Figure 2B : It is a schematic diagram of a system for displaying an error message according to an embodiment of the present invention;

[0019] Figure 3 : It is a schematic diagram of a folder screen according to an embodiment of the present invention;

[0020] Figure 4 : It is a schematic diagram of a data copying screen according to an embodiment of the present invention; and

[0021] Figure 5 : It is a schematic diagram of an archiving screen according to an embodiment of the present invention.

[0022]

Figure number comparison

[0023] 1. Backup System

[0024] 10 Host

[0025] 12 Processing Units

[0026] 14 Network Unit

[0027] 20 Carrying device

[0028] 22 Connectors

[0029] 30 Display device

[0030] 32 Execution status screen

[0031] 34 Copy progress screen

[0032] 342 Copy progress bar

[0033] 36 Data Archiving Screen

[0034] 40 Storage Devices

[0035] 50 Backup Device

[0036] C Cabinet

[0037] D Data

[0038] ERR Error message

[0039] F Folder

[0040] M Mount completion message

[0041] NET Internet

[0042] P Backup Program

[0043] T Dendrogram

[0044] TF temporary folder

[0045] TP temporary address

[0046] S10-S50 Steps DETAILED DESCRIPTION

[0047] In order to further understand and appreciate the structural features and effects of the present invention, a preferred embodiment and detailed description are provided as follows:

[0048] In view of the impact of conventional technology on the efficiency of data backup, the present invention proposes a method for copying and archiving data in a storage device to solve the problem of complicated conventional backup operations.

[0049] The following will further describe the characteristics of a method for copying and archiving data in a storage device, and the associated system and method of the present invention:

[0050] First, see Figure 1 , which is a flow chart of an embodiment of the present invention. As shown in the figure, a method of copying and archiving data of a storage device of the present invention, wherein the steps include:

[0051] Step S10: initialization;

[0052] Step S15: Detect whether the carrier device has completed initialization;

[0053] Step S20: Detect whether a storage device is mounted on the carrier device;

[0054] Step S25: The host displays a mount completion message of the storage device according to the location of the storage device;

[0055] Step S30: Detect whether there is a file system in the storage device;

[0056] Step S32: Displaying a hardware error message or a software error message;

[0057] Step S35: Displaying the usage status of the storage device and the folders of the file system according to the location of the storage device;

[0058] Step S40: Create a temporary folder and copy the data in the storage device to the temporary folder; and

[0059] Step S50: Performing an archiving operation through the host to store at least one data in a backup folder according to a backup folder corresponding to a load device connected to at least one storage device.

[0060] Please also read Figures 2A to 5, which is a schematic diagram of a system of an embodiment of the present invention and a schematic diagram of a folder screen, a data copying screen and an archiving screen. As shown in the figure, the backup system 1 used in the method of copying and archiving data of a storage device of the present invention comprises a host 10, at least one carrier 20 and a display device 30, wherein the host 10 is a personal computer, a notebook computer or a server host, which is used to connect the at least one carrier 20, and the carrier 20 is set on a cabinet C, so the host 10 of this embodiment is a server host, and the host 10 has a processing unit 12 and a network unit 14, and the processing unit 12 is used to execute a backup program P, and the network unit 14 is connected to the Internet NET, so the host 10 can also receive data or commands from the Internet NET. In this embodiment, the display device 30 is a computer screen or an electronic device with image display capability. In this embodiment, the display device 30 is used to display the execution status of the backup program P and the connection status of the host 10. The host 10 displays through the display device 30 that the load device 20 controlled by the host 10 is connected to a storage device 40 , wherein the storage device 40 stores at least one data D. In this embodiment, the storage device 40 is a hard disk drive (HDD). Furthermore, the host 10 is further connected to a backup device 50 .

[0061] In step S10, if Figure 2A As shown, the host 10 is initialized and initializes the load-bearing device 20. Then, in step S15, the host 10 detects whether the load-bearing device 20 has completed initialization, wherein the host 10 detects whether the connector 22 connecting the host 10 to the load-bearing device 20 has completed initialization. When initialization is not completed, the host 10 returns to step S10 and initializes again. When initialization is completed, the host 10 continues to execute step S20. In step S20, the host 10 senses the load-bearing device 20 according to the backup program P executed by the processing unit 12. When it is sensed that the storage device 40 is mounted on the load-bearing device 20, the host 10 continues to execute step S25. When the storage device 40 is not mounted on the load-bearing device 20, the host 10 re-executes step S20 for re-detection, wherein the backup program P executed by the processing unit 12 detects a connection signal S generated by the storage device 40 after mounting is completed, and determines that the storage device 40 has been mounted on the load-bearing device 20. In step S25, as shown in FIG. 2, the host 10 generates a mount completion message M to the display device 30 based on the connection signal S, so as to display the mount completion message M of the corresponding storage device 40 based on the positioning of the storage device 40, wherein the host 10 detects the connector 22 of the carrier device 20 to which the storage device 40 is connected, so as to refer to the connected storage device 40 in subsequent steps based on the positioning of the connector 22.

[0062] In step S30, if Figure 2AAs shown, the host 10 confirms whether there is a file system in the storage device 40 for executing the application program P. When no file system is detected, step S32 is executed. When a file system is detected, step S35 is executed. In step S32, Figure 2B As shown, the host 10 further senses the existence of at least one hardware error or at least one software error in the storage device 40, and transmits a corresponding error message ERR to the display device 30 to display the at least one hardware error message or the at least one software error message, for example: displaying a hard disk bad track block and a block error message; in step S35, as shown in FIG. Figure 3 As shown, after the host 10 confirms that the storage device 40 has been mounted on the carrier device 20, in this embodiment, the display device 30 displays the execution status screen 32 of the backup program P, in order to detect that there is at least one tree diagram T and a plurality of folders F in the storage device 40. The data D in this embodiment is a text data, which is stored in one of the folders F. Therefore, the backup program P executed by the host 10 determines that a file system corresponding to the tree diagram T and the folders F is installed in the storage device 40, wherein the backup program P scans the tree diagram T and the folders F recorded by at least one file-related data (Metadata) in the data D in the storage device 40, thereby determining that there is at least one file system in the storage device 40. In addition, the execution status screen 32 can also display the usage status of the storage device 40.

[0063] Then, in step S40, Figure 4 As shown, after the backup program P confirms the existence of the file system, the host 10 continues to copy all the data D in the storage device 40 through the backup program P executed by the processing unit 12, wherein the backup program P will compare the copied data D one by one, thereby obtaining the copy progress of the data D, and then displaying the copy progress screen 34 through the display device 30, wherein the copy progress screen 34 includes the system image of the storage device 40 and the backup folder BF, and displays a copy progress bar 342 below the copy progress screen 34, for example: displaying a percentage or a rectangular bar, and this embodiment uses the display of a percentage as an example. In addition, the host 10 creates a temporary folder TF at a temporary address TP through the backup program P executed by the processing unit 12. This embodiment uses the temporary address TP located in a memory MEM of the host 10 as an example. In addition, the temporary address TP can also be located in the backup device 50 (as shown in Figure 2).

[0064] In step S50, if Figure 5As shown, after the host 10 completes the copy operation in the backup program P, that is, after the copy progress bar 342 displayed on the copy progress screen 34 reaches 100% or the rectangular bar is full, the host 10 continues to perform the archiving operation through the backup program P, wherein the host 10 displays a data archiving screen 36 through the display device 30, and the data archiving screen 36 is a temporary folder TF for accessing all data D of the storage device 40 and a system image of the backup device 50, which corresponds to the archiving operation performed by the backup program P, that is, the backup program P archives the temporary folder TF for accessing all data D of the storage device 40 created in step S30 to the backup device 50, and the host 10 archives the temporary folder TF to a specific backup folder BF1 according to the location of the storage device 40, and the data archiving screen 36 shows that there are also a plurality of backup folders BF1 under the backup device 50, and in particular, the backup system 1 further arranges the backup folders BF1 and BF in the backup device 50 according to a name, a data type, a creation date or a modification date through the backup program P executed in the host 10.

[0065] The above is an embodiment of the backup system 1, and the carrier device 20 is an embodiment of the storage device 40 that is actually mounted and the storage device 40 actually has a file system. Based on the confirmation that the storage device 40 is actually mounted on the carrier device 20, the file system is subsequently confirmed to exist in the storage device 40, and the data D is then copied to the backup folder BF at the temporary address TP to be transmitted to the backup device 50. The confirmation of the mounting status of the carrier device 20 and the confirmation of the existence of the file system are to avoid the mounting error affecting the execution efficiency of the backup program P, and the backup folder BF is established using the temporary address TP to avoid affecting the stability of the file system of the backup device 50 during the copying process. In this way, the present invention increases the execution efficiency of data backup and strengthens the data access stability of the backup system. In addition, the present invention can be further applied to debugging when the carrier device 20 is not actually mounted and the storage device 40 does not have a file system, so as to determine what kind of error causes the file system not to exist in the storage device 40.

[0066] The above embodiment is to establish that the file system exists in the storage device before the copy operation and the archiving operation can be performed. In addition, another embodiment of the present invention can skip steps S30 to S35, and after the storage device 40 is mounted, continue to execute step S40 to directly copy the data, and after the copy is completed, continue to execute step S50. In this way, the present invention can further improve the execution efficiency of the copy operation and the archiving operation.

[0067] In summary, the method of copying and archiving data of a storage device of the present invention is to determine the mounting status of the carrier device, so as to continuously detect whether there is a file system on the storage device mounted on the carrier device, so as to facilitate the subsequent determination of whether a copy operation needs to be performed, and display a corresponding copy progress bar, and at the same time store the copied data in a temporary folder to facilitate subsequent archiving operations, thereby increasing the execution efficiency of data backup and enhancing the data access stability of the backup system.

[0068] The above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. All equivalent changes and modifications to the shape, structure, characteristics and spirit described in the claims of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A method for copying and archiving data of a storage device, characterized in that: The method is applied to a backup system, the backup system includes a host and at least one load-bearing device, the host is electrically connected to the at least one load-bearing device, and the steps of the method include: a step of detecting whether the at least one load-bearing device has completed initialization, wherein the host detects whether a connector of the at least one load-bearing device has been initialized. When the connector initialization is completed, the host then proceeds to execute a step of detecting whether at least one storage device is mounted on the at least one load-bearing device; When at least one storage device is electrically connected to the at least one load device, detecting through the host whether the at least one storage device has at least one file system; When the at least one storage device has at least one file system, the host displays the usage status of the at least one storage device and a plurality of folders of the at least one file system according to the location of the at least one load-bearing device; The host creates a temporary folder and copies at least one data in the at least one storage device to the temporary folder; as well as An archiving operation is performed through the host to store the at least one data in a backup folder according to a backup folder corresponding to the carrier device of the at least one storage device.

2. The method for copying and archiving data of a storage device as claimed in claim 1, characterized in that: Before the step of creating a temporary folder on the host and copying at least one data in the at least one storage device to the temporary folder, the method further includes a step of detecting whether at least one storage device is mounted on the at least one carrier device through the host, and the host determines whether the storage device is mounted on the carrier device based on a connection signal generated by the at least one storage device when the mounting is completed.

3. The method for copying and archiving data of a storage device as claimed in claim 1, characterized in that: In the step of sensing that at least one file system is installed in each of the storage devices and displaying the usage status of the storage devices, the host executes a backup program to scan the data in the storage device including at least one file-related data to determine whether the at least one file system exists in the at least one storage device. At the same time, the backup program scans the usage status of the at least one storage device to display a scanning result on a display device.

4. The method for copying and archiving data of a storage device as claimed in claim 1, characterized in that: In the step of sensing that at least one file system is installed in each of the storage devices and displaying the usage status of the storage devices, the host further senses that at least one of the storage devices has at least one hardware error or at least one software error, and displays the at least one hardware error message or the at least one software error message on a display device.

5. The method for copying and archiving data of a storage device as claimed in claim 1, characterized in that: In the step of copying the data in the at least one storage device to a backup folder, the host creates the temporary folder at a temporary address to access the data, and the host displays the copying progress of the data on a display device.

6. The method for copying and archiving data of a storage device as claimed in claim 1, characterized in that: In the step of storing the at least one data in a backup folder corresponding to the carrier device of the at least one storage device, the host transfers the backup folder from a temporary address to the corresponding backup position in a backup device.

7. The method for copying and archiving data of a storage device as claimed in claim 6, characterized in that: The backup system further arranges the folders in the backup system according to a name, a data type, a creation date or a modification date.

Citation Information

Patent Citations

  • Memory system and method for automatically backing up data stored by flash memory

    CN101673229A

  • Memory expanding method, device and terminal based on Android system

    CN102831173A