Method for backing up and restoring a file system and communication device therefor

The method addresses the inefficiencies of conventional file system backup by using processing units to detect corruption and execute restoration or backup processes, ensuring data integrity and reducing costs through flexible, automated restoration.

JP7564904B2Active Publication Date: 2024-10-09WISTRON NEWEB CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023029399
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-03-16
Filing Date
2023-02-28
Publication Date
2024-10-09
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

Conventional backup and restore techniques for embedded file systems are unsafe, inflexible, and costly due to the inability to determine the integrity of backup data, leading to potential data loss and system corruption.

Method used

A method that uses two processing units to detect file system destruction and execute restoration or backup confirmation processes based on detection results, ensuring the presence of valid backup data and optimizing restoration for specific hardware configurations.

Benefits of technology

The method effectively restores corrupted file systems, ensures backup data integrity, and reduces maintenance costs by avoiding unnecessary data loss and manual intervention, supporting multiple devices with flexible backup strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564904000001
    Figure 0007564904000001
  • Figure 0007564904000002
    Figure 0007564904000002
  • Figure 0007564904000003
    Figure 0007564904000003
Patent Text Reader

Abstract

To provide a backing up and recovering method of a file system.SOLUTION: In the backing up and recovering method, a detection step is performed to drive a first arithmetic processing unit to detect whether a file system is damaged and then generate a detection result. A storage unit is used to access a plurality of backup lists and backup data corresponding to the file system. A transmission step is performed to drive the first arithmetic processing unit to transmit the detection result to a second arithmetic processing unit. When the file system is damaged as the detection result, the second arithmetic processing unit executes a system recovering step that includes recovering the file system according to the backup data, When the file system is not damaged as the detection result, the second arithmetic processing unit executes a backup confirmation step of confirming whether the backup data is stored in the storage unit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for backing up and restoring a file system and a communication device thereof, and more particularly to a method for backing up and restoring an embedded file system and a communication device thereof. [Background technology]

[0002] Embedded File System (EFS) is a module that realizes file access in an embedded system. Embedded file system also provides file input / output management functions and file system support for embedded systems and devices. Embedded systems are prone to repeated power off and restart when they are exposed to high temperatures, unstable power supplies, insufficient voltage load capacity, or insufficient battery power. During the restart process, the system's internal parameters may be lost, causing the system to return to factory settings, resulting in the loss of all data and the system being unable to start normally. In addition, most product defect reports indicate that the embedded file system is corrupted or incomplete, so backing up and restoring the embedded file system is a very important function.

[0003] In the conventional backup and restore technology, the decision to perform backup and restore is made based on the backup data only depending on the previous startup status of the system. However, the backup data may be lost or artificially altered after being stored for a long period of time, making it unsafe. Therefore, the conventional backup and restore technology still cannot determine whether the backup data exists or is complete and uncorrupted, and has low flexibility and requires manual maintenance, which further increases the maintenance cost.

[0004] In view of this, how to construct a file system backup and restoration method and communication device capable of detecting whether the system has been destroyed and checking whether a backup exists is something that is truly desired by people, and is also a goal and direction that related parties should vigorously research, develop, and break through. Summary of the Invention [Problem to be solved by the invention]

[0005] Therefore, an object of the present invention is to provide a file system backup and restoration method and a communication device thereof, which can determine whether a file system is destroyed by a first arithmetic processing unit, restore the file system by a second arithmetic processing unit, and check whether backup data exists, and further reduce losses incurred by returns due to the destruction of the file system. Also, according to the file system backup and restoration method and communication device of the present invention, the destroyed file system can be restored immediately as soon as the device detects the destruction. [Means for solving the problem]

[0006] According to one embodiment of the present invention, a method for backing up and restoring a file system is provided, the method comprising: a detection step in which a first computing unit detects whether a file system stored in a storage unit for accessing a plurality of backup lists corresponding to the file system and the backup data has been destroyed, and then drives the first computing unit to generate a detection result; and a transmission step in which the first computing unit drives the first computing unit to transmit the detection result to a second computing unit; if the detection result shows that the file system has been destroyed, the second computing unit executes a system restoration step including restoring the file system based on the backup data; if the detection result shows that the file system has not been destroyed, the second computing unit executes a backup confirmation step in which the second computing unit confirms whether backup data has been stored in the storage unit; the backup lists each correspond to a plurality of hardware identification codes, and each list a plurality of dynamic object tags, and one hardware identification code and a plurality of dynamic object parameters are stored in the backup data.

[0007] As a result, the file system backup and restoration method of the present invention drives the second processing unit to execute a system restoration process or a backup verification process based on the detection result generated by the first processing unit, which not only can restore the destroyed file system, but also can ensure that the backup data is stored in the storage unit if the file system is destroyed in the future, and further avoid a situation where restoration is impossible due to the loss of backup data.

[0008] According to another embodiment of the present invention, there is provided a communication device including: a storage unit for accessing a file system and a plurality of backup lists and backup data corresponding to the file systems; a first arithmetic processing unit connected to the storage unit and configured to detect whether the file system is destroyed and generate a detection result; and a second arithmetic processing unit connected to the storage unit and the first arithmetic processing unit and configured to receive the detection result, wherein if the detection result shows that the file system is destroyed, the second arithmetic processing unit executes a system restoration step including restoring the file system based on the backup data; and if the detection result shows that the file system is not destroyed, the second arithmetic processing unit executes a backup confirmation step of confirming whether backup data is stored in the storage unit, wherein the backup lists respectively correspond to a plurality of hardware identification codes and each list a plurality of dynamic object tags, and one hardware identification code and a plurality of dynamic object parameters are stored in the backup data. Effect of the Invention

[0009] As a result, the communication device of the present invention has the second arithmetic processing unit execute a system restoration process or a backup verification process based on the detection result generated by the first arithmetic processing unit, which not only makes it possible to restore a destroyed file system, but also ensures that backup data is stored in the storage unit if the file system is destroyed in the future, and further avoids a situation where restoration is impossible due to the loss of backup data. [Brief description of the drawings]

[0010] [Figure 1] 2 is a flowchart illustrating a method for backing up and restoring a file system according to a first embodiment of the present invention. [Diagram 2] FIG. 11 is a schematic diagram showing a communication device according to a second embodiment of the present invention. [Diagram 3]10 is a flowchart illustrating a method for backing up and restoring a file system according to a third embodiment of the present invention. [Figure 4] 3 is a schematic diagram showing two backup lists and backup data of the file system of the first storage block and the file system of the second storage block in FIG. 2; FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, several embodiments of the present invention will be described with reference to the drawings. For the sake of clarity, many practical details are described in the following description. However, it should be understood that these practical details are not applied to limit the present invention. That is, in some embodiments of the present invention, these practical details are not necessary. In addition, in order to simplify the drawings, some conventional structures and elements are simply and diagrammatically shown in the drawings, and overlapping elements may be represented by the same reference numerals.

[0012] In this specification, when an element (or a unit, module, etc.) is "connected / coupled" to another element, this may mean that the element is directly connected / coupled to the other element, or that the element is indirectly connected / coupled to the other element, i.e., that another element is interposed between the element and the other element. Only when it is clearly indicated that an element is "directly connected / coupled" to another element, this indicates that no other element is interposed between the element and the other element. The terms "first", "second", "third", etc. are used merely to describe different elements and do not limit the elements themselves, so that the first element may be replaced with the second element. In addition, the combinations of elements / units / circuits in this specification are not ordinary or conventional combinations generally known in this field, and whether the elements / units / circuits themselves are conventional should not be used to determine whether the combination relationship can be easily completed by a person skilled in the art.

[0013] Please refer to Fig. 1, which is a flowchart illustrating a file system backup and restoration method 100 according to a first embodiment of the present invention. As shown in Fig. 1, the file system backup and restoration method 100 includes a detection step S02 and a transmission step S04.

[0014] In the detection step S02, the first arithmetic processing unit detects whether a file system stored in a storage unit for accessing a plurality of backup lists corresponding to the file system and the backup data has been destroyed, and then drives the first arithmetic processing unit to generate a detection result 110. In the transmission step S04, the first arithmetic processing unit drives the second arithmetic processing unit to transmit the detection result 110 to the second arithmetic processing unit.

[0015] In detail, if the detection result 110 indicates that the file system is destroyed (i.e., the detection result 110 is "yes"), the second arithmetic processing unit executes a system restoration step S062. The system restoration step S062 includes restoring the file system based on the backup data in the storage unit, and specifically, the file system is restored based on the backup data backed up by one backup list. If the detection result indicates that the file system is not destroyed (i.e., the detection result 110 is "no"), the second arithmetic processing unit executes a backup confirmation step S064. In the backup confirmation step S064, it is confirmed whether the backup data is stored in the storage unit. Thus, the file system backup and restoration method 100 of the present invention drives the second arithmetic processing unit to execute the system restoration step S062 or the backup confirmation step S064 based on the detection result 110 generated by the first arithmetic processing unit, and not only can it restore the destroyed file system, but also ensure that the backup data is stored in the storage unit when the file system is destroyed in the future, and further avoid a situation where restoration is not possible due to the loss of the backup data.

[0016] Please refer to Figures 1 and 2 together, and Figure 2 is a schematic diagram of a communication device 200 according to a second embodiment of the present invention. As shown in Figures 1 and 2, the communication device 200 may be used to implement the file system backup and restoration method 100 of the first embodiment, and includes a storage unit 300, a first processing unit 400 and a second processing unit 500.

[0017] The storage unit 300 includes a first storage block 310 and a second storage block 320. The first storage block 310 is used to access a file system 311. The second storage block 320 is used to access another file system 321, which is used to access two backup lists 3211, 3212 and backup data 3213.

[0018] The first arithmetic processing unit 400 is connected to the storage unit 300, and detects whether the file system 311 is destroyed to generate a detection result 110. The second arithmetic processing unit 500 is connected to the storage unit 300 and the first arithmetic processing unit 400, and receives the detection result 110 from the first arithmetic processing unit 400. Specifically, the communication device 200 may be a modem (Modem) or a communication module inside another electronic device, or may be a communication module provided in a vehicle, but the present invention is not limited thereto. The storage unit 300 may be a memory (Memory). The first arithmetic processing unit 400 may be a modem (Modulator-demodulator; Modem) processor. The second arithmetic processing unit 500 may be an application processor (Application Processor; AP). File system 311 may be an Embedded File System (EFS) and file system 321 may be an Unsorted Block Image File System (UBIFS), although the present invention is not limited thereto.

[0019] If the detection result 110 indicates that the file system 311 is destroyed, the second arithmetic processing unit 500 executes a system restoration step S062. If the detection result 110 indicates that the file system 311 is not destroyed, the second arithmetic processing unit 500 executes a backup confirmation step S064. In this way, the communication device 200 of the present invention allows the second arithmetic processing unit 500 to execute the system restoration step S062 or the backup confirmation step S064 based on the detection result 110 generated by the first arithmetic processing unit 400, and not only can the destroyed file system 311 be restored, but also ensure that the backup data 3213 is stored in the storage unit 300 when the file system 311 is destroyed in the future, and further avoid a situation in which restoration is not possible due to the loss of the backup data 3213.

[0020] 2, 3 and 4, FIG. 3 is a flow chart showing a file system backup and restoration method 600 according to a third embodiment of the present invention, and FIG. 4 is a schematic diagram showing two backup lists 3211, 3212 and backup data 3213 of the file system 311 in the first storage block 310 and the file system 321 in the second storage block 320 in FIG. 2. As shown in FIG. 3, the file system backup and restoration method 600 of the third embodiment may be implemented by the communication device 200 of the second embodiment, and includes a detection step S12, a transmission step S14, a system restoration step S162 and a backup confirmation step S164, where the detection step S12, the transmission step S14 and the backup confirmation step S164 are all the same as the corresponding steps of the file system backup and restoration method 100 in the first embodiment, and will not be described separately.

[0021] The difference between the third embodiment and the first embodiment is that the system restoration step S162 may further include an object reset step S1622, an object restoration step S1624, and a system restart step S1626. In the object reset step S1622, the second arithmetic processing unit 500 is driven to delete the destroyed file system 311 and reset the static object parameter set 3112 of the file system 311. The object restoration step S1624 includes driving the second arithmetic processing unit 500 to restore the dynamic object parameter set 3113 to the file system 311 based on the backup data 3213 in the file system 321. In the system restart step S1626, the second arithmetic processing unit 500 is driven to restart the restored file system 311.

[0022] 4 may include a hardware identification code 3111, a static object parameter set 3112, and a dynamic object parameter set 3113, where the hardware identification code 3111 is an identification code string defined by a manufacturer for each product device and is recorded in the file system 311, in other words, the file system 311 stores the hardware identification code 3111 of the product device corresponding to itself. The static object parameter set 3112 is mainly related to firmware and can be created by firmware, so it does not need to be restored to the file system 311 by the backup data 3213. In the object reset step S1622, the second processing unit 500 first deletes the static object parameter set 3112 and the dynamic object parameter set 3113 of the destroyed file system 311, and then creates a new static object parameter set 3112 by the firmware of the second processing unit 500 itself.

[0023] Also, as can be seen from FIG. 2, the file system 321 accesses backup lists 3211, 3212 and backup data 3213, and the backup lists 3211, 3212 may correspond to two hardware identification codes (Hardware Identification; HWID), and each may list two dynamic object tags L1, L2. For example, the backup list 3211 in FIG. 4 corresponds to the hardware identification code 3111, and lists the dynamic object tag L1. The backup list 3212 corresponds to another hardware identification code (not shown), and lists another dynamic object tag L2. The backup data 3213 in FIG. 4 stores one hardware identification code 3111 and three dynamic object parameters P1, P2, P3. The object restoration process S1624 may further include driving the second processing unit 500 to restore the dynamic object parameters P1, P2, and P3 stored in the backup data 3213 to the file system 311, and the dynamic object parameter set 3113 consists of the dynamic object parameters P1, P2, and P3.

[0024] In detail, since the dynamic object parameter set 3113 has already been written in the file system 311 during the factory calibration, the tags (i.e., the dynamic object tag L1) corresponding to all the parameters of the dynamic object parameter set 3113 are recorded in one backup list (i.e., the backup list 3211) of the file system 321. In the present invention, since the dynamic object parameter set selected during the calibration is different according to different hardware identification codes, each hardware identification code corresponds to one backup list. In other embodiments, the number of backup lists may be multiple, and the number of dynamic object parameters may be multiple, and the present invention is not limited thereto. Subsequently, when the second arithmetic processing unit 500 finishes creating the new static object parameter set 3112 and finishing restoring the new dynamic object parameter set 3113 to the file system 311, the second arithmetic processing unit 500 executes a system restart step S1626 to completely restore the file system 311. Thus, compared with the conventional backup and restoration technology, the file system backup and restoration method 600 of the present invention can perform optimal restoration of the dynamic object parameter set 3113 for a specific product device by the backup data 3213 backed up by the backup list 3211 corresponding to the hardware identification code 3111 when restoring the file system 311, and further, it is not necessary to restore all the dynamic object parameters of other product devices to the file system 311, so that it is highly flexible, does not require manual maintenance, and further reduces maintenance costs. In addition, since a plurality of backup lists 3211, 3212 are stored in the file system 321 of the second storage block 320, it is possible to support various product devices for backup and restoration of the file system 311 of the first storage block 310.

[0025] Meanwhile, since the backup data 3213 has been stored for a long time, the data is easily lost or becomes incomplete due to human modification and product device updates. Still referring to FIG. 3, if the backup data 3213 is not stored in the second memory block 320 of the storage unit 300 in the backup confirmation step S164, the second processing unit 500 executes a data backup step S182. If the backup data 3213 is stored in the second memory block 320 of the storage unit 300 and the backup data 3213 is incomplete or destroyed, the second processing unit 500 executes a backup update step S184. When the backup data 3213 is stored in the second memory block 320 of the storage unit 300, and the backup data 3213 is complete and normal, the second computing unit 500 or the first computing unit 400 executes the detection process S12 again, in other words, continuously executes the detection process S12 in the background during system operation, and can immediately repair and restore the file system 311 if any further damage is detected.

[0026] In the data backup step S182, the second processing unit 500 constructs backup data 3213 based on the file system 311, and drives the backup data 3213 to be stored in the file system 321 of the second storage block 320 of the storage unit 300. In detail, the file system 311 is not destroyed, and a hardware identification code 3111, a static object parameter set 3112, and a dynamic object parameter set 3113 are stored, and the dynamic object parameter set 3113 consists of three dynamic object parameters P1, P2, and P3. In the data backup step S182, the second processing unit 500 selects a backup list 3211 based on the hardware identification code 3111 of the file system 311, and backs up the hardware identification code 3111 and the dynamic object parameters P1, P2, and P3 based on the dynamic object tag L1 listed in the backup list 3211 to construct the backup data 3213. Subsequently, the second processing unit 500 or the first processing unit 400 executes the detection step S12 again, and continuously detects in the background whether the file system 311 is damaged.

[0027] Similarly, in the backup update step S184, the second processing unit 500 selects the backup list 3211 based on the hardware identification code 3111 of the file system 311, and updates the dynamic object parameters P1, P2, P3 to the backup data 3213 based on the dynamic object tag L1 listed in the backup list 3211, and further drives to replace the previous incomplete or corrupted backup data 3213. Then, the second processing unit 500 executes the detection step S12 again. Thus, compared with the conventional backup and restoration technology, the file system backup and restoration method 600 of the present invention can ensure that the complete and latest backup data 3213 is stored in the storage unit 300 when the file system 311 is destroyed in the future, and can also avoid the situation where restoration is impossible due to the loss of the backup data 3213.

[0028] As can be seen from the above embodiment, the present invention has the following advantages. First, by performing a system restoration process and a backup verification process according to different detection results, it is not only possible to restore the destroyed file system, but also ensure that the backup data is stored in the storage unit when the file system is destroyed in the future, and avoid the situation where restoration is not possible due to the loss of backup data. Second, it is not necessary to perform the optimization restoration of the dynamic object parameter set for a specific product device, and restore all the dynamic object parameters of all the product devices to the file system, so that it is highly flexible, does not require manual maintenance, and further reduces maintenance costs. Third, since multiple backup lists are stored in the file system of the second storage block, it is possible to support various product devices for the backup and restoration of the file system of the first storage block.

[0029] Although the present invention has been disclosed above by way of the embodiments, the embodiments do not limit the present invention, and those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention is based on the contents specified in the following claims. [Explanation of symbols]

[0030] How to backup and restore 100, 600 file systems 110 Detection Results 200 Communication equipment 300 storage units 310 First Memory Block 311, 321 File Systems 3111 Hardware Identification Code 3112 Static Object Parameter Set 3113 Dynamic Object Parameter Set 320 Second Memory Block 3211, 3212 Backup List 3213 Backup Data 400 First arithmetic processing unit 500 Second Processing Unit S02, S12 Detection process S04, S14 Transmission process S062, S162 System recovery process S1622 Object reset process S1624 Object restoration process S1626 System restart procedure S064, S164 Backup confirmation process S182 Data backup process S184 Backup update process L1, L2 Dynamic Object Tags P1, P2, P3 Dynamic Object Parameters

Claims

1. A detection step in which a first arithmetic processing unit detects whether a file system stored in a storage unit for accessing a plurality of backup lists corresponding to the file system and the backup data is destroyed, and then drives the first arithmetic processing unit to generate a detection result; a transmitting step of driving the first arithmetic processing unit to transmit the detection result to a second arithmetic processing unit; Equipped with When the file system is destroyed as a result of the detection, the second arithmetic processing unit executes a system restoration step including restoring the file system based on the backup data; When the file system is not destroyed as a result of the detection, the second arithmetic processing unit executes a backup confirmation step of confirming whether the backup data is stored in the storage unit; A method for backing up and restoring a file system, wherein the backup lists each correspond to a plurality of hardware identification codes and each list a plurality of dynamic object tags, and the backup data stores one of the hardware identification codes and a plurality of dynamic object parameters.

2. The system restoration step includes: an object reset step of driving the second processing unit to delete the file system and reset a static object parameter set of the file system; an object restoration step, including driving the second processing unit to restore a dynamic object parameter set to the file system based on the backup data; a system restart step of driving the second processing unit to restart the file system; Further comprising:

2. The method of claim 1, wherein the object restoration step further comprises: driving the second processing unit to restore the dynamic object parameters stored in the backup data to the file system.

3. If the backup data is not stored in the storage unit, the second arithmetic processing unit executes a data backup step; When the backup data is stored in the storage unit and the backup data is incomplete or destroyed, the second arithmetic processing unit executes a backup update step; In the data backup step, the second arithmetic processing unit constructs the backup data based on the file system, and drives the backup data to be stored in the storage unit; one of the hardware identification codes and the dynamic object parameters is stored in the file system, and the second arithmetic processing unit selects one of the backup lists based on the one of the hardware identification codes stored in the file system, and backs up the dynamic object parameters based on the dynamic object tags listed in the one of the backup lists to construct the backup data; 2. The file system backup and restoration method according to claim 1, wherein in the backup update step, the second processing unit selects the one of the backup lists based on the one of the hardware identification codes stored in the file system, and drives the second processing unit to update the dynamic object parameters to the backup data based on the dynamic object tags listed in the one of the backup lists.

4. a storage unit for accessing a file system and a plurality of backup lists and backup data corresponding to the file system; a first arithmetic processing unit connected to the storage unit and configured to detect whether the file system is corrupted and generate a detection result; a second processing unit connected to the storage unit and the first processing unit and configured to receive the detection result; Including, When the file system is destroyed as a result of the detection, the second arithmetic processing unit executes a system restoration step including restoring the file system based on the backup data; When the file system is not destroyed as a result of the detection, the second arithmetic processing unit executes a backup confirmation step of confirming whether the backup data is stored in the storage unit; A communications device, wherein the backup lists each correspond to a plurality of hardware identification codes and each list a plurality of dynamic object tags, and the backup data stores one of the hardware identification codes and a plurality of dynamic object parameters.

5. The system restoration step includes: an object reset step of driving the second processing unit to delete the file system and reset a static object parameter set of the file system; an object restoration step, including driving the second processing unit to restore a dynamic object parameter set to the file system based on the backup data; a system restart step of driving the second processing unit to restart the file system; Further comprising: The communication device according to claim 4 , wherein the object restoring step further comprises driving the second processing unit to restore the dynamic object parameters stored in the backup data to the file system.

6. If the backup data is not stored in the storage unit, the second arithmetic processing unit executes a data backup step; When the backup data is stored in the storage unit and the backup data is incomplete or destroyed, the second arithmetic processing unit executes a backup update step; In the data backup step, the second arithmetic processing unit constructs the backup data based on the file system, and drives the backup data to be stored in the storage unit; one of the hardware identification codes and the dynamic object parameters is stored in the file system, and the second arithmetic processing unit selects one of the backup lists based on the one of the hardware identification codes stored in the file system, and backs up the dynamic object parameters based on the dynamic object tags listed in the one of the backup lists to construct the backup data; 5. The communication device according to claim 4, wherein in the backup update process, the second arithmetic processing unit selects the one of the backup lists based on the one of the hardware identification codes stored in the file system, and drives the second arithmetic processing unit to update the dynamic object parameters to the backup data based on the dynamic object tags listed in the one of the backup lists.

7. The storage unit includes: a first storage block for accessing the file system; a second storage block for accessing a separate file system for accessing the backup list and the backup data; The communication device of claim 4 .

Citation Information

Patent Citations

  • Id data backup method and portable terminal using the backup method

    JP1998049445A

  • System and method of network device setting management, and recording medium with network device setting management program recorded therein

    JP2000209239A

  • Redundant system

    JP2011209834A

  • Monitoring control system, monitoring control device, and setting information backup method

    JP2015088123A

  • Backup server and terminal

    JP2020184265A