Data recovery method and electronic equipment
By receiving restore settings data in the conferencing equipment, determining the restore directory and backing up the data, and triggering data restoration using preset time information, the system solves the problems of slow device operation and data leakage caused by users forgetting to delete files, thus improving the efficiency and security of the equipment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
- Filing Date
- 2024-10-15
- Publication Date
- 2026-04-17
AI Technical Summary
Users often forget to delete imported files in their conferencing equipment, leading to excessive data accumulation, slow equipment operation or malfunction, and the risk of important data leakage.
By receiving meeting restore settings data, determining the meeting restore directory, and performing data backup, the system uses preset meeting time information and local time to determine the data restore trigger conditions, and uses the target backup data to restore the data, thereby freeing up device storage space.
It effectively solves the problem of slow operation caused by data accumulation in the equipment, avoids the leakage of important data, and improves the efficiency and security of equipment use.
Smart Images

Figure CN121887946A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a data restoration method and electronic device. Background Technology
[0002] As public equipment in conference rooms, conference equipment is used by different users every day. Users usually import files into the conference equipment via the network or USB flash drive, and then use the conference equipment and imported files to conduct corresponding presentations. After the presentation, users often forget to delete the imported files, causing the data stored in the equipment to continue to increase, eventually leading to equipment lag or even malfunction. Summary of the Invention
[0003] This application provides a data recovery method and an electronic device.
[0004] In a first aspect, embodiments of this application provide a data restoration method applied to a conference device, the method comprising:
[0005] Receive meeting restore settings data and obtain a meeting restore directory based on the meeting restore settings data;
[0006] Data backup processing is performed on the aforementioned meeting restore directory to obtain the target backup data;
[0007] Obtain the preset meeting events of the meeting device, and the preset meeting time information of the preset meeting events;
[0008] Based on the meeting restoration settings data, the data restoration trigger condition corresponding to the preset meeting time information is determined; wherein, the data restoration trigger condition is used to trigger restoration processing for the meeting device;
[0009] Acquire meeting data related to the preset meeting event and store it in the device storage space of the meeting device; wherein, the meeting data includes meeting files displayed and / or generated during the meeting;
[0010] Based on the preset meeting time information and the local time of the meeting device, time association information is determined, and when the data restoration trigger condition is confirmed to be met through the time association information, the meeting device is restored based on the target backup data to release the device storage space of the meeting device.
[0011] Optionally, the preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event; determining the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration setting data includes:
[0012] Based on the meeting restoration settings data, data restoration time information for the preset meeting event is determined, and data restoration triggering conditions are determined based on the data restoration time information. The data restoration time information includes at least one of first time setting information, second time setting information, and third time setting information.
[0013] The first time setting information is the time adjustment information for the meeting start time, the second time setting information is the time adjustment information for the meeting end time, and the third time setting information is the adjustable time adjustment information for the meeting time period.
[0014] Optionally, the step of determining time association information based on the preset meeting time information and the local time of the meeting device, and confirming that the data restoration trigger condition is met through the time association information, includes:
[0015] The time difference information is determined based on the preset meeting time information and the local time of the meeting device, and the time correlation information is obtained based on the time difference information;
[0016] The data restoration timer is set using the time association information and the data restoration trigger conditions;
[0017] The data restoration timer is triggered to determine if the conference device meets the data restoration triggering condition; wherein, when the data restoration timer is triggered, the local time corresponding to the conference device meets the data restoration time information.
[0018] Optionally, after restoring the conference equipment based on the target backup data, the process further includes:
[0019] When the data restoration application in the conference device is confirmed to be started, when the data restoration application receives the next conference restoration setting data, or when the data restoration application receives the next preset conference event, query the current conference restoration setting data and the current preset conference time information;
[0020] The current meeting restore directory is obtained based on the current meeting restore settings data; data backup processing is performed on the current meeting restore directory to obtain the next target backup data, and the next target backup data is used as the target backup data;
[0021] Based on the current meeting restore settings data and the current preset meeting time information, the data restore timer is set, and when the data restore timer is triggered, it is determined that the meeting device meets the current data restore triggering condition;
[0022] Perform the step of restoring the conference equipment based on the target backup data.
[0023] Optionally, the step of setting the data restoration timer based on the current meeting restoration settings data and the current preset meeting time information, and determining that the meeting device meets the current data restoration trigger condition when the data restoration timer is triggered, includes:
[0024] Based on the current meeting restore settings data, the current data restore time information corresponding to the current preset meeting time information is determined, and the current data restore trigger condition is determined based on the current data restore time information; wherein, the current data restore trigger condition is used to trigger the restore process for the meeting device;
[0025] The current time difference information is determined based on the current preset meeting time information and the local time of the meeting device, and the current time association information is obtained based on the current time difference information;
[0026] The data restoration timer is updated using the current time association information and the current data restoration trigger condition;
[0027] The data restoration timer is triggered to determine if the conference device meets the current data restoration triggering condition; wherein, the local time of the conference device meets the current data restoration time information.
[0028] Optionally, the meeting restore directory includes a meeting whitelist directory and a meeting restore list directory; the data backup process for the meeting restore directory to obtain target backup data includes:
[0029] Obtain the target data backup method for the meeting restore directory from the meeting restore settings data;
[0030] Based on the target data backup method, the target data corresponding to the meeting restore list directory is backed up to obtain the target backup data.
[0031] Optionally, the step of restoring the conference device based on the target backup data to release the device storage space of the conference device includes:
[0032] Obtain a first index variable and a second index variable, wherein the first index variable points to the restore list directory in the current meeting restore directory, and the second index variable points to the target backup data;
[0033] Based on the first index variable, the target data corresponding to the restore list directory is traversed to determine the operation time information corresponding to the currently traversed node file; based on the second index variable, the backup node file corresponding to the node file in the target backup data is determined, and the backup time corresponding to the backup node file is determined;
[0034] Based on the operation time information, the backup time, and the backup node file, the node file is restored to free up the device storage space of the conference equipment.
[0035] Optionally, the step of performing file restoration processing on the node file based on the operation time information, the backup time, and the backup node file includes:
[0036] The creation time and modification time of the node file are obtained based on the operation time information;
[0037] If it is confirmed that the creation time is later than the backup time, the node file is determined to be a newly added file and the newly added file is deleted.
[0038] If it is confirmed that the backup time is later than the creation time and the modification time is later than the backup time, the node file is determined to be a modified file, and the modified file is replaced based on the backup node file.
[0039] Optionally, the method further includes:
[0040] Determine the first file list of the traversed data corresponding to the current restore list directory, determine the reference backup data corresponding to the traversed data from the target backup data, and determine the second file list of the reference backup data;
[0041] The target file to be deleted is determined based on the second file list;
[0042] The backup recovery file corresponding to the target deleted file is determined from the reference backup data, and the file recovery process is performed on the traversed data based on the backup recovery file.
[0043] Secondly, embodiments of this application provide a data restoration device applied to a conference device, the device comprising:
[0044] A receiving module is adapted to receive meeting restore setting data and obtain a meeting restore directory based on the meeting restore setting data;
[0045] The backup module is adapted to perform data backup processing on the meeting restore directory to obtain target backup data;
[0046] The acquisition module is adapted to acquire preset meeting events of the conference device and preset meeting time information of the preset meeting events;
[0047] The determining module is adapted to determine the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration setting data; wherein, the data restoration trigger condition is used to trigger restoration processing for the meeting device;
[0048] The storage module is adapted to acquire meeting data related to the preset meeting event and store it in the device storage space of the meeting device; wherein, the meeting data includes meeting files displayed and / or generated during the meeting;
[0049] The restore module is adapted to determine time association information based on the preset meeting time information and the local time of the meeting device, and to perform restore processing on the meeting device based on the target backup data when the data restore triggering condition is confirmed through the time association information, so as to release the device storage space of the meeting device.
[0050] Thirdly, embodiments of this application provide an electronic device, which includes:
[0051] Processor; and
[0052] A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform any of the methods described above.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium that stores one or more programs, which, when executed by a processor, implement the method described in any one of the above-described embodiments.
[0054] The beneficial effects of the technical solution provided in this application embodiment include at least the following: The meeting restoration directory is determined through meeting restoration setting data, thereby enabling the meeting device to perform data backup processing on the meeting restoration directory, and thus obtaining target backup data that can be restored. This allows data in the meeting restoration directory of the meeting device to be restored after being added, deleted, or modified. Simultaneously, the meeting restoration setting data can be used to set data restoration trigger conditions for the meeting device. These trigger conditions are associated with the preset meeting time information of a preset meeting event. During the meeting corresponding to the preset meeting event, relevant meeting data is present, including meeting files displayed and / or generated during the meeting. In the meeting data storage space, the meeting data can be stored in the storage space corresponding to the meeting restoration directory, or in a storage space outside the meeting restoration directory, or partially stored in the storage space corresponding to the meeting restoration directory and partially stored in a storage space outside the meeting restoration directory.
[0055] After determining the data restoration trigger conditions, the time association information is determined using the preset meeting time information and the local time of the meeting device. When the time association information meets the data restoration trigger conditions, the meeting device is used to perform data restoration processing using the target backup data. This allows the meeting device to restore data in the current meeting restoration directory based on the data restoration trigger conditions and the target backup data. This solves the technical problem that users often forget to delete these files after attending a meeting, causing the data in the meeting device to gradually accumulate and eventually lead to functional abnormalities that affect meeting efficiency. At the same time, it also avoids the leakage of important data. Attached Figure Description
[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0057] Figure 1 This is a schematic diagram illustrating a usage scenario of a conference device provided in an embodiment of this application;
[0058] Figure 2 A flowchart illustrating a data restoration method provided in an embodiment of this application;
[0059] Figure 3 A flowchart illustrating a process for determining whether a data restoration trigger condition is met based on a data restoration timer, as provided in an embodiment of this application.
[0060] Figure 4 A flowchart illustrating another data restoration method provided in an embodiment of this application;
[0061] Figure 5 A flowchart illustrating a process for determining whether a conference device meets the current data restoration triggering conditions, provided as an embodiment of this application;
[0062] Figure 6 This application provides a schematic diagram of a process for obtaining target backup data in an embodiment of the present application.
[0063] Figure 7 This is a schematic diagram of a data restoration process provided in an embodiment of this application;
[0064] Figure 8 This application provides a schematic diagram of a process for restoring node files according to a specific embodiment.
[0065] Figure 9This application provides a schematic diagram of a file recovery process according to an embodiment of the present application.
[0066] Figure 10 This is a schematic diagram of the structure of a data restoration device provided in an embodiment of this application;
[0067] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0068] To make the features and advantages of the embodiments of this application more apparent and understandable, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the embodiments of this application.
[0069] In related technologies, conference equipment, as a type of meeting room equipment, is frequently used in meetings and is designed as a public platform for use by different users. The main functions of conference equipment include presenting documents, sharing online content, taking meeting minutes, and conducting remote video calls. In practice, conference equipment is often used to replace traditional projectors and whiteboards, enabling it to more conveniently and efficiently meet various meeting needs.
[0070] In enterprises, conference equipment, as an indispensable shared facility in meeting rooms, often serves the operational needs of various users. These users frequently import various files onto the conference equipment via network transfer or USB drive copying. However, users often neglect to delete these files after attending a meeting. Over time, the data accumulated on the equipment gradually increases, which may not only slow down the equipment but also cause malfunctions, affecting meeting efficiency. More seriously, these leftover files may contain important corporate information, posing a certain security risk.
[0071] To address the existing technical problems, this application provides a data restoration method applied to a conference device. This method determines a conference restoration directory through conference restoration settings data, enabling the conference device to perform data backup processing on the conference restoration directory. This results in target backup data that can be restored, allowing data in the conference restoration directory to be restored after addition, deletion, or modification. Simultaneously, the conference restoration settings data can be used to set data restoration trigger conditions for the conference device. These trigger conditions are associated with preset conference time information for preset conference events. During the conference corresponding to the preset conference event, relevant conference data is present, including conference files displayed and / or generated during the conference. In the conference data storage space, the conference data can be stored in the storage space corresponding to the conference restoration directory, or in a storage space outside the conference restoration directory, or partially stored in the storage space corresponding to the conference restoration directory and partially stored in a storage space outside the conference restoration directory.
[0072] After determining the data restoration trigger conditions, the time association information is determined using the preset meeting time information and the local time of the meeting device. When the time association information meets the data restoration trigger conditions, the meeting device is used to perform data restoration processing using the target backup data. This allows the meeting device to restore data in the current meeting restoration directory based on the data restoration trigger conditions and the target backup data. This solves the technical problem that users often forget to delete these files after attending a meeting, causing the data in the meeting device to gradually accumulate and eventually lead to functional abnormalities that affect meeting efficiency. At the same time, it also avoids the leakage of important data.
[0073] like Figure 1 As shown, Figure 1 This is a schematic diagram illustrating a usage scenario of a conference device provided in an embodiment of this application. The conference device can be an intelligent display device integrating multiple functions. The conference device can be a conference tablet, which may include a display screen, input and output interfaces, a network connection module, a storage module, an operating system, and other tablet hardware and software.
[0074] The display screen in a conference tablet can be a touchscreen integrating display and touch, or a regular display screen that provides display functionality. During meetings, the screen can display documents, images, videos, and other data. Input and output interfaces allow the conference tablet to connect to various external devices, such as projectors, laptops, tablets, and external storage devices, enabling multimedia content sharing and playback, as well as storage capacity expansion. The network connectivity module in the conference tablet supports both wired and wireless connection protocols. Wireless protocols include WiFi (Wireless Fidelity) and Bluetooth, while wired protocols include Ethernet and USB (Universal Serial Bus). Furthermore, the storage module in the conference tablet can be used to save meeting minutes, important documents, and frequently used applications. To meet the needs of different scenarios and users, conference tablets often support compatibility with multiple operating systems, such as Windows, Android, or iOS.
[0075] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a data restoration method provided in an embodiment of this application. The data restoration method is applied to a conferencing device and includes:
[0076] S202: Receive meeting restore settings data and obtain the meeting restore directory based on the meeting restore settings data.
[0077] The meeting restore settings data can be the settings data received by the meeting equipment after a user performs a restore settings operation on the equipment. For example, the meeting equipment may include a data restore application for managing data restore operations on the equipment. Users can perform restore settings operations on the data restore operation page corresponding to the application. Upon receiving the restore settings operation, the data restore operation page generates the corresponding meeting restore settings data, which is then received by the meeting equipment. By allowing users to perform restore settings operations on the data restore operation page of the application, reliance on external devices to send meeting restore settings data can be avoided.
[0078] Of course, meeting reset settings data can also be obtained from external devices (such as servers) via wired or wireless means. For example, the meeting equipment can establish a communication connection with a first external device via wireless communication. After the first external device generates meeting reset settings data, it sends the data to the meeting equipment via wireless communication, and then the meeting equipment receives the data. Alternatively, the meeting equipment can establish a communication connection with a second external device via wired communication. After the second external device generates meeting reset settings data, it sends the data to the meeting equipment via wired communication, and then the meeting equipment receives the data. Since the location of the meeting equipment is usually fixed, obtaining meeting reset settings data from external devices via wired or wireless means avoids the need for users to physically go to the equipment to make the settings, thus providing a more convenient way for users to set up meeting reset settings.
[0079] The conference restore setting data received by the conference equipment is used to configure data restore parameters for the conference equipment. The conference restore setting data may include restore time setting data and conference restore directory setting data. Of course, in some embodiments, the conference restore setting data may also include restore time setting data, conference restore directory setting data, whitelist directory setting data, and backup method setting data.
[0080] For example, the restore time setting data can be a pre-set time point for data restore processing for a preset meeting event. Specifically, this time point can be a certain number of minutes before or after the start of the preset meeting event, so that the meeting device can perform corresponding restore processing before or after the preset meeting event, thereby cleaning up external data imported into the meeting device or data generated in the meeting corresponding to the preset meeting event, and restoring deleted and modified data in the meeting device.
[0081] Furthermore, this time point can also be an adjustable time point, which can be flexibly set. An adjustable time point can be set as a periodic time point, such as a specific time point every day, week, or month. To avoid data restoration time points and interference with users' use of the conferencing equipment, periodic time points can be selected during periods when users use the conferencing equipment less frequently. An adjustable time point can also be set as a specific time point on a specific date, such as a specific time point on a holiday. Since conferencing equipment is usually not used by users on holidays, selecting a specific time point on a holiday for data restoration can effectively avoid interfering with users' use of the conferencing equipment.
[0082] The meeting restore directory settings are used to define the meeting restore directory for the meeting device. Data within this directory is backed up. Typically, the meeting restore directory is a user-accessible file directory. During user use of the meeting device, files are usually added, modified, or deleted. Therefore, if data in the meeting restore directory is tampered with, it can be restored using the target backup data. Specifically, taking Android as an example, the default meeting restore directory is the sdcard directory. Based on the meeting restore directory settings, a specific directory under the sdcard directory can be designated as the meeting restore directory. For example, if the sdcard / Download directory is designated as the meeting restore directory, subsequent backups and data restorations will apply to the Download directory. Furthermore, since users typically do not modify system file directories during normal use of the meeting device, system file directories can be disregarded for the meeting restore directory.
[0083] In some embodiments, the meeting restore settings data may further include whitelist directory settings data. These whitelist directory settings data are used to set a whitelist directory for the meeting restore directory. Data located in the whitelist directory does not need to be backed up or restored. Specifically, if the sdcard / Download directory is used as the meeting restore directory, the application cache directory under sdcard / Download can be set as the meeting whitelist directory to save the application cache data in the application cache directory, thereby preventing the loss of application cache data. Data configured in the meeting whitelist directory can be stored locally on the meeting device, thus preventing data loss.
[0084] In some embodiments, the meeting restore settings data may also include backup method settings data, which is used to set the backup method. The backup method settings data may include backup methods such as local backup, external storage backup (such as backup using an external USB flash drive), and cloud backup (uploading to the cloud for backup).
[0085] S204: Perform data backup processing on the meeting restore directory to obtain the target backup data.
[0086] After receiving the meeting restore settings data, the conferencing equipment can determine the meeting restore directory within the equipment. This directory is typically the user-accessible file directory on the conferencing equipment. Once the meeting restore directory is obtained, data backup is performed on the data within it based on the meeting restore settings data, thus producing the target backup data corresponding to the data in the meeting restore directory.
[0087] S206: Obtain the preset meeting events of the conference equipment, and the preset meeting time information of the preset meeting events.
[0088] Users can pre-schedule and create preset meeting events on the conferencing device. These preset meeting events are essentially meeting events that depend on the conferencing device, such as those created on the device itself. Specifically, preset meeting events can be created based on their preset meeting time information and name. After confirming the existence of a preset meeting event on the conferencing device, the device can retrieve the event information and its preset meeting time to determine the upcoming meeting and the corresponding data restoration trigger conditions.
[0089] S208: Determine the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration settings data; wherein, the data restoration trigger condition is used to trigger the restoration process for the meeting equipment.
[0090] After receiving the meeting restore settings data, the conference equipment determines the data restore trigger condition based on the preset meeting time information and the meeting restore settings data on the conference equipment. The data restore trigger condition is a trigger condition associated with a preset meeting event. The data restore trigger condition is used to trigger the restore process for the conference equipment. When the data restore trigger condition is triggered, the target backup data can be used to restore the data in the current meeting restore directory, thereby restoring the data in the meeting restore directory and freeing up the device storage space of the conference equipment.
[0091] Specifically, when determining the data restoration trigger condition based on the preset meeting time information and meeting restoration settings data on the conference equipment, the preset meeting time information of the preset meeting event on the conference equipment can be obtained, such as the meeting start time, meeting end time, and meeting time period. Then, based on the preset meeting time information and the data restoration time information for the preset meeting event in the meeting restoration settings data, the corresponding data restoration trigger condition can be generated. For example, if the meeting start time is scheduled for 14:00, and the data restoration time information for the meeting event is 30 minutes before the meeting start time, then the data restoration trigger condition can be the time point 30 minutes before the meeting start time of 14:00.
[0092] S210: Acquire meeting data related to preset meeting events and store it in the device storage space of the meeting device; wherein, the meeting data includes meeting files displayed and / or generated during the meeting.
[0093] Step S210 can be performed before, after, or during the restoration process; there are no restrictions on this. The meeting data related to the preset meeting event can be the meeting files displayed and / or generated in the meeting corresponding to the preset meeting event.
[0094] Specifically, the meeting files displayed during the preset meeting events can be obtained by the meeting device from the server, sent by the external device via a LAN connection, or copied to the meeting device via an external storage device. The meeting files generated during the preset meeting events can be files created by the user during the meeting, or files generated after the user edits the meeting files displayed during the meeting.
[0095] S212: Determine time association information based on preset meeting time information and the local time of the meeting device, and when the data restoration trigger condition is confirmed to be met through the time association information, restore the meeting device based on the target backup data to release the device storage space of the meeting device.
[0096] Specifically, based on the preset meeting time information and the local time of the meeting equipment, the time difference between the local time of the meeting equipment and the preset meeting time information is determined, such as A minutes before the meeting start time and B minutes after the meeting end time. The time difference between the local time of the meeting equipment and the preset meeting time information is used to obtain time correlation information. Then, it is determined whether the time correlation information matches the data restoration trigger condition. If the time correlation information matches the data restoration trigger condition, the data restoration trigger condition is triggered.
[0097] When the data restoration trigger condition is met, the conferencing device performs a data restoration process using the target backup data to restore the current conferencing restore directory. This restores the data in the current conferencing restore directory using the target backup data corresponding to the current conferencing restore directory. The current conferencing restore directory and the conferencing restore directory are the same directories at different points in time within the conferencing device. Data in the current conferencing restore directory may have been added, deleted, or modified since the user started using the conferencing device.
[0098] The data restoration method provided in this application is applied to a conference device. This method determines a conference restoration directory through conference restoration settings data, enabling the conference device to perform data backup processing on the conference restoration directory, thereby obtaining target backup data that can be restored. This allows data in the conference restoration directory of the conference device to be restored after being added, deleted, or modified. Simultaneously, the conference restoration settings data can be used to set data restoration trigger conditions for the conference device. These trigger conditions are associated with preset conference time information of preset conference events. During the conference corresponding to the preset conference event, relevant conference data is present, including conference files displayed and / or generated during the conference. In the conference data storage space, the conference data can be stored in the storage space corresponding to the conference restoration directory, or in a storage space outside the conference restoration directory, or partially stored in the storage space corresponding to the conference restoration directory and partially stored in a storage space outside the conference restoration directory.
[0099] After determining the data restoration trigger conditions, the time association information is determined using the preset meeting time information and the local time of the meeting device. When the time association information meets the data restoration trigger conditions, the meeting device is used to perform data restoration processing using the target backup data. This allows the meeting device to restore data in the current meeting restoration directory based on the data restoration trigger conditions and the target backup data. This solves the technical problem that users often forget to delete these files after attending a meeting, causing the data in the meeting device to gradually accumulate and eventually lead to functional abnormalities that affect meeting efficiency. At the same time, it also avoids the leakage of important data.
[0100] In one embodiment provided in this application, the preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event. In step S208, determining the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration setting data includes:
[0101] Based on the meeting restoration settings data, determine the data restoration time information for the preset meeting event, and determine the data restoration triggering conditions based on the data restoration time information. The data restoration time information includes at least one of the first time setting information, the second time setting information, and the third time setting information.
[0102] The first time setting information is the time adjustment information for setting the meeting start time; the second time setting information is the time adjustment information for setting the meeting end time; and the third time setting information is the adjustable time adjustment information for the meeting time period.
[0103] For example, in a conferencing device, when a preset meeting event is created, the meeting start time of the preset meeting event has usually not yet arrived. Therefore, a reservation is usually made for the meeting event when it is created in the conferencing device. Thus, the preset meeting time information for the preset meeting event can be obtained. The preset meeting time information may include the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event. The meeting time period can be understood as the time period composed of the meeting start time and the meeting end time.
[0104] The data restoration time information can be determined by using the meeting restoration settings and preset meeting time information. After obtaining the data restoration time information, the meeting equipment can use it to set the corresponding data restoration trigger conditions. For example, if the data restoration time information is half an hour before the meeting start time of 14:00, then the data restoration trigger condition can be the time point half an hour before the meeting start time of 14:00.
[0105] The data restoration time information may include at least one of the first time setting information, the second time setting information, and the third time setting information. For example, the data restoration time information may include one of the first time setting information, the second time setting information, and the third time setting information; or, the data restoration time information may include any two of the first time setting information, the second time setting information, and the third time setting information; or, the data restoration time information may include the first time setting information, the second time setting information, and the third time setting information.
[0106] The first-time setting information refers to the time information set for the start time of the meeting corresponding to the meeting event. Specifically, the first-time setting information can be a time point X minutes before the start time of the meeting corresponding to the meeting event. Since the data restoration process takes a certain amount of time, in order to provide a better user experience when using the meeting equipment, the time point X minutes before the start time of the meeting corresponding to the meeting event on the meeting equipment can be used as the data restoration time point. Specifically, X can be 10 minutes, 20 minutes, etc., without limitation, and can be set according to the specific scenario.
[0107] The second time setting information is the time information set for the end time of the meeting corresponding to the meeting event. Specifically, the second time setting information can be the time point Y minutes after the end time of the meeting event. After the meeting event ends on the meeting device, the data in the meeting restore directory of the meeting device may be deleted, added, or modified. Setting the second time setting information to the time point Y minutes after the end time of the meeting event facilitates subsequent use of the meeting device and effectively prevents the leakage of the meeting files corresponding to the current user. Y can be 5 minutes, 10 minutes, etc., without limitation, and can be set according to specific scenarios.
[0108] The third time setting information is the adjustable restore time information for the meeting time period. The adjustable restore time information can be flexibly set. It can be set to a periodic time point, such as a specific time point every day, week, or month. In order to avoid data restoration time points and interference with users' use of the meeting equipment, the periodic time points can be selected within the time period when users use the meeting equipment less frequently. The time period when the meeting equipment is less frequently used can be determined based on the meeting time period. The adjustable restore time information can also be set to a specific time point on a specific date, such as a specific time point on a holiday. On holidays, the meeting equipment is usually not used by users, so selecting a specific time point on a holiday for data restoration can effectively avoid interfering with users' use of the meeting equipment.
[0109] This application embodiment determines the data restoration time information for a meeting event by setting meeting restoration settings data, and determines the data restoration triggering conditions based on the data restoration time information. This allows for setting appropriate data restoration time information for the meeting start time or end time corresponding to the meeting event, or using the adjustable restoration time information for the meeting event as the data restoration time information. This enables the meeting device to set the data restoration time information for the meeting event and restore the data, thereby improving the user experience of the meeting device and preventing the leakage of the user's meeting materials.
[0110] like Figure 3 As shown, Figure 3 This is a schematic diagram illustrating a process for determining whether a data restoration trigger condition is met based on a data restoration timer, as provided in an embodiment of this application. Figure 3 As shown, S212 determines time association information based on preset meeting time information and the local time of the meeting device, and confirms that the data restoration trigger condition is met through the time association information, including:
[0111] S302: Determine the time difference information based on the preset meeting time information and the local time of the meeting equipment, and obtain the time correlation information based on the time difference information.
[0112] Specifically, based on the preset meeting time information and the local time of the meeting equipment, the time difference information between the local time of the meeting equipment and the preset meeting time information is determined, such as A minutes before the meeting start time and B minutes after the meeting end time. Time correlation information is obtained by using the time difference information between the local time of the meeting equipment and the preset meeting time information.
[0113] S304: Set a data restoration timer using time-related information and data restoration trigger conditions.
[0114] Among them, the data restoration timer is a type of timer that can be a hardware component in the conferencing equipment or a virtual software module. The data restoration timer is triggered when the time association information in the conferencing equipment matches the data restoration triggering conditions, thereby determining that the conferencing equipment meets the data restoration triggering conditions.
[0115] Time-related information could be A minutes before the meeting start time, B minutes after the meeting end time, etc.; data restoration trigger conditions could be X minutes before the meeting start time, Y minutes after the meeting end time, etc.
[0116] The data restoration timer can be set based on the time difference between time-related information and data restoration trigger conditions. For example, if A is 30 and X is 25, the data restoration timer can be set based on the difference of 5 minutes; if B is 2 and Y is 10, the data restoration timer can be set based on the difference of 8 minutes.
[0117] S306: Trigger the data restoration timer to determine if the conference equipment meets the data restoration triggering conditions; wherein, when the data restoration timer is triggered, the local time corresponding to the conference equipment meets the data restoration time information.
[0118] The data restoration timer counts down after being set. When the countdown ends (countdown is 0), the data restoration timer is triggered. At this time, the time association information and the data restoration trigger condition match, thus confirming that the conference equipment meets the data restoration trigger condition.
[0119] Furthermore, if the data restoration timer is not triggered before the countdown ends, the time association information and the data restoration triggering condition do not match, thus determining that the conference equipment does not meet the data restoration triggering condition.
[0120] In the embodiments provided in this application, a data restoration timer is set by using data restoration trigger conditions and time difference information. When the data restoration timer is triggered, it is determined that the time association information and the data restoration trigger conditions match, thereby determining that the conference device meets the data restoration trigger conditions. When the data restoration timer is not triggered, it is determined that the conference device does not meet the data restoration trigger conditions. This simplifies the judgment logic of whether the data restoration trigger conditions are met, and makes it possible to quickly determine whether the conference device meets the data restoration trigger conditions.
[0121] like Figure 4 As shown, Figure 4 This is a flowchart illustrating another data restoration method provided in an embodiment of this application. Figure 4 As shown, after restoring the conference equipment based on the target backup data in S212, the process also includes:
[0122] S402: When the data restoration application in the conference device is started, when the data restoration application receives the next conference restoration settings data, or when the data restoration application receives the next preset conference event, query the current conference restoration settings data and the current preset conference time information.
[0123] The data restoration application can be used to execute the data restoration method in this application. When the data restoration application is started, the data restoration method corresponding to the conference device runs normally. The starting of the data restoration application includes, but is not limited to, opening the data restoration application, restarting the data restoration application, and automatically starting the data restoration application after the conference device is powered on.
[0124] After the data restore application in the conferencing device receives the meeting restore settings data, when the user updates the meeting restore settings data, they can input the next meeting restore settings data into the data restore application to update the meeting restore settings data. At this time, the data restore application receives the next meeting restore settings data and uses it to update the meeting restore settings data. Of course, users can also schedule new preset meeting events in the conferencing device and then send the next preset meeting event to the data restore application.
[0125] When the data restoration application is activated in the meeting equipment, receives the next meeting restoration settings data, or receives the next preset meeting event, a new round of restoration processing begins. Therefore, it is necessary to query the current meeting restoration settings data and the current preset meeting time information.
[0126] As is easily understood, when the meeting restore settings data is not updated, the current meeting restore settings data remains the meeting restore settings data; when the meeting restore settings data is updated, the current meeting restore settings data becomes the next meeting restore settings data. When the preset meeting event is not updated, the current preset meeting time information remains the preset meeting time information; when the preset meeting event is updated, the current preset meeting time information becomes the preset meeting time information corresponding to the next preset meeting event.
[0127] S404: Obtain the current meeting restore directory based on the current meeting restore settings data; perform data backup processing on the current meeting restore directory to obtain the next target backup data, and use the next target backup data as the target backup data.
[0128] Step S404 is similar to steps S202 and S204, and the relevant descriptions in S202 and S204 can be referred to accordingly. It should be noted that the current meeting restore directory corresponds to the current meeting restore settings data. When the current meeting restore settings data is the same as the meeting restore settings data, the current meeting restore directory is the meeting restore directory. After obtaining the next target backup data, the next target backup data is used as the target backup data; that is, the current target backup data is updated and replaced using the next target backup data.
[0129] S406: Set a data restoration timer based on the current meeting restoration settings data and the current preset meeting time information. When the data restoration timer is triggered, determine that the meeting device meets the current data restoration trigger conditions.
[0130] After determining the current meeting restore settings data and the current preset meeting time information, the current data restore trigger conditions corresponding to the current preset meeting time information can be determined using the current meeting restore settings data. Then, the current data restore time information for the current preset meeting time information can be determined based on the current meeting restore settings data. The current time difference information can be determined based on the current data restore time information and the local time of the meeting device. The current time correlation information can be obtained based on the current time difference information. Then, the data restore timer can be updated using the current time correlation information and the current data restore trigger conditions. When the data restore timer is triggered, it is determined that the meeting device meets the current data restore trigger conditions.
[0131] S408: Perform the steps to restore the conference equipment based on the target backup data.
[0132] The specific details of restoring the conference equipment based on the target backup data in S408 can be found in the relevant description of S212. This step is used to execute the restoration process of the conference equipment based on the target backup data in S212.
[0133] In the embodiments provided in this application, when it is confirmed that the data restoration application in the conference device has started, the data restoration application has received the next conference restoration setting data, or the data restoration application has received the next preset conference event, a new round of restoration processing is entered. Therefore, it is necessary to query the current conference restoration setting data and the current preset conference time information. Then, the data restoration timer is set using the current conference restoration setting data and the current preset conference time information, thereby updating the timing data in the data restoration timer. When the data restoration timer is triggered, the conference device meets the current data restoration trigger condition. At this time, the step of restoring the conference device based on the target backup data is executed. That is, every time a new round of restoration processing is entered, the data restoration timer is updated and the corresponding restoration processing is performed.
[0134] like Figure 5 As shown, Figure 5 This is a schematic diagram illustrating a process for determining whether a conference device meets the current data restoration triggering conditions, as provided in an embodiment of this application. Figure 5 As shown, in S406, a data restoration timer is set based on the current meeting restoration settings data and the current preset meeting time information. When the data restoration timer is triggered, it is determined that the meeting device meets the current data restoration trigger conditions, including:
[0135] S502: Determine the current data restoration time information corresponding to the current preset meeting time information based on the current meeting restoration settings data, and determine the current data restoration trigger condition based on the current data restoration time information; wherein, the current data restoration trigger condition is used to trigger the restoration process for the meeting equipment.
[0136] The current preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the current preset meeting event. When the preset meeting event is updated by the next preset meeting event, the current preset meeting event becomes the next preset meeting event; when the preset meeting event is not updated by the next preset meeting event, the current preset meeting event remains the preset meeting event.
[0137] Based on the current meeting restore settings data, determine the current data restore time information for the current preset meeting event, and determine the current data restore triggering condition based on the current data restore time information for the current preset meeting event. The current data restore time information for the current preset meeting event includes at least one of the fourth time setting information, the fifth time setting information, and the sixth time setting information.
[0138] In this embodiment, the fourth time setting information is the time adjustment information for setting the meeting start time, the fifth time setting information is the time adjustment information for setting the meeting end time, and the sixth time setting information is the adjustable time adjustment information for the meeting time period.
[0139] S504: Determine the current time difference information based on the current preset meeting time information and the local time of the meeting equipment, and obtain the current time association information based on the current time difference information.
[0140] Specifically, based on the current preset meeting time information and the local time of the meeting equipment, the time difference information between the local time of the meeting equipment and the current preset meeting time information is determined, such as C minutes before the meeting start time and D minutes after the meeting end time. Time correlation information is obtained by using the time difference information between the local time of the meeting equipment and the current preset meeting time information.
[0141] S506: Update the data restoration timer using the current time association information and the current data restoration trigger conditions.
[0142] The current time-related information can be A minutes before the meeting start time, B minutes after the meeting end time, etc.; the current data restoration trigger condition can be X minutes before the meeting start time, Y minutes after the meeting end time, etc.
[0143] The data restoration timer can be set based on the time difference between the current time association information and the current data restoration trigger condition. For example, if A is 30 and X is 25, the data restoration timer can be set based on the difference of 5 minutes; if B is 2 and Y is 10, the data restoration timer can be set based on the difference of 8 minutes.
[0144] S508: Trigger the data restoration timer to determine if the conference equipment meets the current data restoration triggering conditions; wherein, the local time of the conference equipment meets the current data restoration time information.
[0145] The data restoration timer counts down after being set. When the countdown ends (countdown is 0), the data restoration timer is triggered. At this time, the current time association information and the current data restoration trigger condition are matched. Therefore, it is determined that the conference equipment meets the current data restoration time information, that is, it meets the current data restoration trigger condition.
[0146] Furthermore, if the data restoration timer is not triggered before the countdown ends, the current time association information and the current data restoration triggering condition do not match. Therefore, it is determined that the conference device does not meet the current data restoration time information, i.e., it does not meet the current data restoration triggering condition.
[0147] In the embodiments provided in this application, a data restoration timer is set by using the current data restoration trigger condition and the current time difference information. When the data restoration timer is triggered, it is determined that the current time association information and the current data restoration trigger condition match, thereby determining that the conference device meets the current data restoration trigger condition. When the data restoration timer is not triggered, it is determined that the conference device does not meet the current data restoration trigger condition. This simplifies the judgment logic of whether the current data restoration trigger condition is met, and makes it possible to quickly determine whether the conference device meets the current data restoration trigger condition.
[0148] In one embodiment provided in this application, when the restoration process is completed, a first restoration time point corresponding to the completion of the restoration process is determined, and the current restoration time point is updated based on the first restoration time point; wherein, the current restoration time point before the update is the previous restoration time point, and the previous restoration time point is the second restoration time point corresponding to the completion of the previous restoration process.
[0149] During the process of restoring data in the current meeting restore directory based on the target backup data, there are situations where the data restore timer is not triggered or the restore process is abnormally interrupted due to abnormal circumstances. Therefore, in order to determine whether the current restore process has been successfully executed, the first restore time point corresponding to the completion of the restore process can be determined.
[0150] Then, the current restoration time point is updated using the first restoration time point, making the current restoration time point the same as the first restoration time point. That is, the current restoration time point is updated every time the restoration process is complete. It should be noted that each time the restoration process is complete, a corresponding completion command is generated, which instructs the conferencing equipment to update the current restoration time point using the first restoration time point.
[0151] As is easily understood, the current restore time point before the update is the previous restore time point, which is the second restore time point determined when the previous restore process was completed. When the restore process is not completed, that is, when there are abnormal situations such as the data restore timer not being triggered or the data restore process being abnormally interrupted (the conference equipment is turned off), the current restore time point will not be updated. Therefore, the current restore time point is the second restore time point determined when the previous restore process was completed.
[0152] Subsequently, in response to the start operation of the data restoration application in the conference equipment, the current restoration time point recorded in the data restoration timer can be obtained. If the current restoration time point is behind the data restoration time information, the steps of restoring the conference equipment based on the target backup data are executed.
[0153] In cases where the data restoration timer fails to trigger due to abnormal circumstances or the restoration process is abnormally interrupted, the data restoration application in the conference equipment may either run abnormally or stop running. In such cases, a start operation can be initiated for the data restoration application in the conference equipment.
[0154] In response to the startup operation of the data restoration application in the conference equipment, the data restoration time information of the data restoration timer set based on the data restoration trigger condition is obtained. The current restoration time point is compared with the data restoration time information. When the current restoration time point is behind the data restoration time information, it indicates that the data restoration timer has not been triggered or the restoration process has been abnormally interrupted. Therefore, the step of restoring the conference equipment based on the target backup data is executed again to complete the restoration process and avoid the risk of data leakage due to the failure of the restoration process.
[0155] In the embodiments provided in this application, the current restoration time point is updated according to the first restoration time point when the restoration process is completed. This allows for a determination of whether the restoration process was successfully completed based on the current restoration time point. After the data restoration application starts, the current restoration time point recorded by the data restoration timer and the data restoration time information can be compared to determine if the restoration process was successful. If the current restoration time point lags behind the data restoration time information, it indicates that the data restoration timer was not triggered or the restoration process was abnormally interrupted. Therefore, the step of restoring the conference device based on the target backup data is executed again to complete the restoration process and avoid the risk of data leakage due to unsuccessful restoration.
[0156] like Figure 6 As shown, Figure 6 This is a schematic diagram illustrating a process for obtaining target backup data, provided as an embodiment of this application. Figure 6 As shown, the meeting restore directory includes a meeting whitelist directory and a meeting restore list directory. In step S204, data backup processing is performed on the meeting restore directory to obtain the target backup data, including:
[0157] S602: Obtain the target data backup method for the meeting restore directory from the meeting restore settings data.
[0158] The meeting restore settings data can also include restore time settings, meeting restore directory settings, whitelist directory settings, and backup method settings. Based on the meeting restore directory settings, the meeting restore directory in the meeting device can be determined. Based on the whitelist directory settings, the meeting whitelist directory within the meeting restore directory can be determined. Data in the meeting whitelist directory does not need to be backed up or restored. The non-meeting whitelist directories in the meeting restore directory are the meeting restore list directories; target data in the meeting restore list directories are used for subsequent backup and restoration.
[0159] The backup methods for target data in the meeting restore settings include local backup, external storage backup (such as backup using an external USB flash drive), and cloud backup (uploading to the cloud for backup).
[0160] S604: Based on the target data backup method, perform target data backup processing on the target data corresponding to the meeting restore list directory to obtain target backup data.
[0161] When the target data backup method is local backup, a hidden directory with the same name as the target data can be created in the sdcard directory on the conference device. The directory name is ".reset", and the filenames are preceded by a "." to indicate that it is a hidden directory. Users will not be able to see it in file management applications. In this case, the backup directory path corresponding to the target backup data is sdcard / .reset. Then, the files in the conference restore directory are copied to the sdcard / .reset directory. The advantage of local backup is that it does not require additional storage space; when the backup data is small, the storage space occupied is negligible.
[0162] When the target data backup method is external storage backup, if the conference equipment is connected to external storage such as a USB flash drive or external hard drive, the target data corresponding to the conference restore list directory can be saved to the root directory of the external storage, also named .reset. The advantage of external storage backup is that it can back up a relatively large amount of data and does not depend on the network.
[0163] When the target data is backed up using cloud backup, the target data corresponding to the meeting restore list directory can be uploaded to the server for backup. When restoration is needed, the files are retrieved from the server. The advantage of cloud backup is that it does not occupy device storage space. At the same time as uploading the backup, the corresponding file level data is saved for comparison during restoration.
[0164] In addition, prior to S604, a check could be performed to ensure the existence of the meeting restore list directory and that it was a folder type. If this was not the case, a backup failure report with the reason for failure would be submitted. Upon successful backup, a success report would be submitted, and the backup time point would be saved locally.
[0165] In the embodiments provided in this application, the target data corresponding to the meeting restore list directory in the meeting restore directory is processed by the target data backup method to obtain the target backup data. This allows for targeted data backup based on the target data backup method, avoiding redundant data backup.
[0166] like Figure 7 As shown, Figure 7 This is a schematic diagram illustrating a data restoration process provided in an embodiment of this application. Figure 7 As shown, S212 performs a restoration process on the conference equipment based on the target backup data to free up the device storage space of the conference equipment, including:
[0167] S702: Obtain the first index variable and the second index variable. The first index variable points to the restore list directory in the current meeting restore directory, and the second index variable points to the target backup data.
[0168] Specifically, a first index variable and a second index variable can be pre-created. The first index variable is set to point to the restore list directory in the current meeting restore directory so that it can access the target data corresponding to the restore list directory. The second index variable is set to point to the target backup data so that it can access the target backup data. An index variable is typically a sequence of numbers or symbols used to quickly locate the information it points to within a data structure (such as an array, list, or database).
[0169] S704: Based on the first index variable, traverse the target data corresponding to the restore list directory to determine the operation time information corresponding to the currently traversed node file; based on the second index variable, determine the backup node file corresponding to the node file in the target backup data, and determine the backup time corresponding to the backup node file.
[0170] The process involves determining the target data corresponding to the restore list directory based on the first index variable. Then, each node file in the restore list directory is traversed, similar to tree traversal, but here using a depth-first search. During traversal, the operation time information corresponding to the currently traversed node file is determined, including the creation and modification times of the node file. Simultaneously, the backup node file corresponding to the node file in the target backup data can be determined using the second index variable. Then, the backup time corresponding to the backup node file is obtained; the backup time refers to the time when the backup node file was backed up. The first and second index variables can be located in the same directory for easy searching.
[0171] S706: Performs file restoration on node files based on operation time information, backup time, and backup node files to free up device storage space for the conference equipment.
[0172] The process involves obtaining the operation time, backup time, and backup node file, then using these information to restore the node files. It's important to note that for each node file traversed, its corresponding operation time, backup time, and backup node file are determined, and then used for file restoration. Once all node files in the target data have been traversed, the initial data restoration for the current restore list directory is complete. At this point, both newly added and modified files in the restore list directory have been restored.
[0173] In the embodiments provided in this application, a first index variable points to the restore list directory within the restore list directory, and a second index variable points to the target backup data, thereby enabling rapid retrieval of the target data and target backup data corresponding to the current restore list directory. Then, the target data corresponding to the current restore list directory is traversed to determine the operation time information corresponding to the currently traversed node file, as well as the backup node file and its backup time. Finally, the node file is restored using the operation time information, backup time, and backup node file, completing the initial data restoration for the current restore list directory. At this point, both newly added and modified files in the restore list directory are restored, thereby freeing up the device storage space of the conferencing equipment.
[0174] like Figure 8 As shown, Figure 8 This is a schematic diagram illustrating a process for restoring node files, provided as an embodiment of this application. Figure 8 As shown, S706 performs file restoration processing on node files based on operation time information, backup time, and backup node files, including:
[0175] S802: Obtain the creation and modification times of node files based on operation time information.
[0176] In the file system, operation time information includes creation time and modification time. When a user adds a file, the newly created file will have its creation time and modification time initialized. When a user modifies a file, the modified file will have its modification time updated, but the creation time will remain unchanged.
[0177] S804: If the creation time is later than the backup time, the node file is determined to be a newly added file and the newly added file is deleted.
[0178] When the creation time is later than the backup time, it indicates that the node file was created in the current meeting restore directory after the target data backup process. Therefore, the node file is determined to be a new file, and in order to restore it to the meeting restore directory, the new file is deleted.
[0179] S806: When it is confirmed that the backup time is later than the creation time and the modification time is later than the backup time, the node file is determined to be a modified file, and the modified file is replaced based on the backup node file.
[0180] Specifically, when the backup time lags behind the creation time, it indicates that the node file was a file in the meeting restore directory before the target data backup process. Conversely, when the modification time lags behind the backup time, it indicates that the node file was modified after the target data backup process. Therefore, the node file is identified as a modified file. To restore the meeting restore directory, the backup node file is used to replace the modified file.
[0181] Specifically, once the node file is determined to be a modified file, a file with the same path in the .reset directory can be used to overwrite it. If the node file has been renamed, the corresponding file cannot be found in the .reset directory for restoration, but it can be considered that the original file has been deleted and a new file has been created, which does not affect the restoration effect.
[0182] Furthermore, for cloud backups, since it's not possible to directly point to the .reset directory in the cloud, a list of files to be downloaded can be filtered based on the directory hierarchy data saved during backup. The download addresses for these files can then be queried from the server, and the downloaded files can be saved to the corresponding local path. This allows for quick local retrieval and avoids consuming excessive local storage space. Simultaneously, the success or failure of the restoration is reported.
[0183] In the embodiments provided in this application, when the creation time is later than the backup time, it indicates that the node file was created in the current meeting restore directory after the target data backup process. Therefore, the node file is determined to be a newly added file, and the newly added file is deleted. When the backup time is later than the creation time, it indicates that the node file was a file in the meeting restore directory before the target data backup process. At the same time, when the modification time is later than the backup time, it indicates that the node file was modified after the target data backup process. In order to restore the meeting restore directory, the modified file is replaced by the backup node file.
[0184] like Figure 9 As shown, Figure 9 This is a schematic diagram illustrating a file recovery process provided in an embodiment of this application. Figure 9 As shown, the method includes:
[0185] S902: Determine the first file list of the traversed data corresponding to the current restore list directory, determine the reference backup data corresponding to the traversed data from the target backup data, and determine the second file list of the reference backup data.
[0186] Specifically, after traversing all leaf nodes (nodes without child nodes) and before returning to the parent file, the first file list corresponding to that leaf node can be determined. Then, the reference backup data corresponding to that traversed data can be determined from the target backup data, and the second file list of the reference backup data can be obtained. The first file list is the file list information from the traversed data, and the second file list is the file list information from the reference backup data.
[0187] S904: Determine the target file to be deleted corresponding to the first file list based on the second file list.
[0188] Specifically, the first file list and the second file list are compared, and the second file list is used to find the target file to be deleted corresponding to the first file list.
[0189] S906: Determine the backup recovery file corresponding to the target deleted file from the reference backup data, and perform file recovery processing on the traversed data based on the backup recovery file.
[0190] After identifying the target deleted file, the corresponding backup recovery file is found in the reference backup data, and then the backup recovery file is used to perform file recovery processing on the traversed data.
[0191] In the embodiments provided in this application, a first file list and a second file list are compared, thereby using the second file list to find the target deleted file corresponding to the first file list. After the target deleted file is determined, the backup recovery file corresponding to the target deleted file is found in the reference backup data. Then, the backup recovery file is used to perform file recovery processing on the traversed data, so that the data recovery processing is also completed synchronously after the target data corresponding to the current restore list directory is traversed.
[0192] like Figure 10 As shown, Figure 10 This is a schematic diagram of a data recovery device provided in an embodiment of this application. The data recovery device 1000 is applied to a conference device and includes:
[0193] The receiving module 1010 is adapted to receive meeting restore setting data and obtain a meeting restore directory based on the meeting restore setting data;
[0194] Backup module 1020 is suitable for performing data backup processing on the meeting restore directory to obtain the target backup data;
[0195] The acquisition module 1030 is adapted to acquire the preset conference events of the conference equipment, as well as the preset conference time information of the preset conference events;
[0196] The determination module 1040 is adapted to determine the data restoration trigger conditions corresponding to the preset meeting time information based on the meeting restoration setting data; wherein, the data restoration trigger conditions are used to trigger the restoration process for the meeting equipment;
[0197] The storage module 1050 is adapted to acquire meeting data related to preset meeting events and store it in the device storage space of the meeting equipment; wherein, the meeting data includes meeting files displayed and / or generated during the meeting;
[0198] The restore module 1060 is adapted to determine time association information based on preset meeting time information and the local time of the meeting device, and to restore the meeting device based on the target backup data when the data restoration trigger conditions are confirmed through the time association information, so as to release the device storage space of the meeting device.
[0199] Optionally, the preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event; the determination module 1040 is also adapted to:
[0200] Based on the meeting restoration settings data, determine the data restoration time information for the preset meeting event, and determine the data restoration triggering conditions based on the data restoration time information. The data restoration time information includes at least one of the first time setting information, the second time setting information, and the third time setting information.
[0201] The first time setting information is the time adjustment information for setting the meeting start time; the second time setting information is the time adjustment information for setting the meeting end time; and the third time setting information is the adjustable time adjustment information for the meeting time period.
[0202] Optionally, the restore module 1060 includes:
[0203] The time correlation information determination unit is adapted to determine the time difference information based on the preset meeting time information and the local time of the meeting equipment, and obtain the time correlation information based on the time difference information;
[0204] The setting unit is suitable for setting a data restoration timer using time-related information and data restoration trigger conditions;
[0205] The triggering unit is adapted to trigger the data restoration timer and determine that the conference equipment meets the data restoration triggering conditions; wherein, when the data restoration timer is triggered, the local time corresponding to the conference equipment meets the data restoration time information.
[0206] Optionally, the data recovery device 1000 further includes:
[0207] The query module is suitable for querying the current meeting restoration settings data and the current preset meeting time information when confirming that the data restoration application in the conference device has started, received the next meeting restoration settings data, or received the next preset meeting event.
[0208] The data backup module is suitable for obtaining the current meeting restore directory based on the current meeting restore settings data; performing data backup processing on the current meeting restore directory to obtain the next target backup data, and using the next target backup data as the target backup data;
[0209] The judgment module is suitable for setting a data restoration timer based on the current meeting restoration settings data and the current preset meeting time information. When the data restoration timer is triggered, it determines that the meeting device meets the current data restoration triggering conditions.
[0210] The execution module is used to perform the steps of restoring the conference equipment based on the target backup data.
[0211] Optionally, the determination module includes:
[0212] The current data restoration trigger condition determination unit is adapted to determine the current data restoration time information corresponding to the current preset meeting time information based on the current meeting restoration setting data, and to determine the current data restoration trigger condition based on the current data restoration time information; wherein, the current data restoration trigger condition is used to trigger the restoration process for the meeting equipment;
[0213] The current time association information determination unit is adapted to determine the current time difference information based on the current preset meeting time information and the local time of the meeting device, and to obtain the current time association information based on the current time difference information;
[0214] The update unit is suitable for updating the data restoration timer using the current time-related information and the current data restoration trigger conditions;
[0215] The judgment unit is suitable for triggering the data restoration timer to determine whether the conference equipment meets the current data restoration triggering conditions; wherein, the data restoration timer is the local time of the conference equipment that meets the current data restoration time information.
[0216] Optionally, the meeting restore directory includes a meeting whitelist directory and a meeting restore list directory; the backup module 1020 includes:
[0217] The target data backup method determination unit is suitable for obtaining the target data backup method for the meeting restore directory from the meeting restore settings data;
[0218] The target backup data determination unit is suitable for performing target data backup processing on the target data corresponding to the meeting restore list directory based on the target data backup method, so as to obtain the target backup data.
[0219] Optionally, the restore module 1060 includes:
[0220] The index determination unit is adapted to obtain a first index variable and a second index variable, wherein the first index variable points to the restore list directory in the current meeting restore directory, and the second index variable points to the target backup data;
[0221] The traversal unit is suitable for traversing the target data corresponding to the restore list directory based on the first index variable, determining the operation time information corresponding to the node file currently being traversed; and determining the backup node file corresponding to the node file in the target backup data based on the second index variable, and determining the backup time corresponding to the backup node file.
[0222] The restore unit is suitable for restoring node files based on operation time information, backup time, and backup node files, thereby freeing up the device storage space of the conference equipment.
[0223] Optionally, the restoration unit includes:
[0224] The time-determining subunit is suitable for obtaining the creation and modification times of node files based on operation time information.
[0225] Deleting subcells is suitable when it is confirmed that the creation time is later than the backup time, to determine that the node file is a newly added file and to delete the newly added file;
[0226] The replacement sub-unit is suitable for determining that the node file is a modified file when it is confirmed that the backup time is later than the creation time and the modification time is later than the backup time, and then replacing the modified file based on the backup node file.
[0227] Optionally, the data recovery device 1000 further includes:
[0228] The list determination module is suitable for determining the first file list of the traversed data corresponding to the current restore list directory, determining the reference backup data corresponding to the traversed data from the target backup data, and determining the second file list of the reference backup data.
[0229] The file deletion determination module is suitable for determining the target file to be deleted corresponding to the first file list based on the second file list;
[0230] The file recovery module is suitable for determining the backup recovery file corresponding to the target deleted file from the reference backup data, and performing file recovery processing on the traversed data based on the backup recovery file.
[0231] In this application embodiment, a computer-readable storage medium is also provided, which stores one or more programs that, when executed by a processor, implement the method described in any one of the above.
[0232] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 11 As shown, the electronic device 1100 may include: at least one processor 1101, at least one network interface 1104, a user interface 1103, a memory 1105, and at least one communication bus 1102.
[0233] The communication bus 1102 is used to realize the connection and communication between these components.
[0234] The user interface 1103 may include a display screen and a camera. Optionally, the user interface 1103 may also include a standard wired interface and a wireless interface.
[0235] The network interface 1104 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0236] The processor 1101 may include one or more processing cores. The processor 1101 connects to various parts within the electronic device 1100 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1105, and by calling data stored in the memory 1105. Optionally, the processor 1101 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1101 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 1101.
[0237] The memory 1105 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 1105 may include a non-transitory computer-readable storage medium. The memory 1105 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1105 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 1105 may also be at least one storage device located remotely from the aforementioned processor 1101. Figure 11 As shown, the memory 1105, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a data recovery program for use with conferencing equipment.
[0238] exist Figure 11 In the illustrated electronic device 1100, the user interface 1103 is mainly used to provide an input interface for the user and to acquire user input data; while the processor 1101 can be used to call the data restoration program for the conference device stored in the memory 1105, and specifically perform the following operations:
[0239] Receive meeting restore settings data and obtain the meeting restore directory based on the meeting restore settings data;
[0240] Perform data backup processing on the meeting restore directory to obtain the target backup data;
[0241] Obtain the preset meeting events of the conference equipment, as well as the preset meeting time information of the preset meeting events;
[0242] The data restoration trigger conditions corresponding to the preset meeting time information are determined based on the meeting restoration settings data; the data restoration trigger conditions are used to trigger the restoration process for the meeting equipment.
[0243] Acquire meeting data related to preset meeting events and store it in the device storage space of the meeting equipment; wherein, meeting data includes meeting files displayed and / or generated during the meeting;
[0244] Based on the preset meeting time information and the local time of the meeting device, the time association information is determined. When the data restoration trigger condition is confirmed to be met through the time association information, the meeting device is restored based on the target backup data to release the device storage space of the meeting device.
[0245] Optionally, the preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event; when the processor 1101 executes the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration setting data, it specifically executes:
[0246] Based on the meeting restoration settings data, determine the data restoration time information for the preset meeting event, and determine the data restoration triggering conditions based on the data restoration time information. The data restoration time information includes at least one of the first time setting information, the second time setting information, and the third time setting information.
[0247] The first time setting information is the time adjustment information for setting the meeting start time; the second time setting information is the time adjustment information for setting the meeting end time; and the third time setting information is the adjustable time adjustment information for the meeting time period.
[0248] Optionally, when the processor 1101 determines the time association information based on the preset meeting time information and the local time of the meeting device, and confirms that the data restoration trigger condition is met through the time association information, it specifically performs the following:
[0249] The time difference information is determined based on the preset meeting time information and the local time of the meeting equipment, and the time correlation information is obtained based on the time difference information;
[0250] Set a data restoration timer using time-related information and data restoration trigger conditions;
[0251] Trigger the data restoration timer to determine if the conference equipment meets the data restoration triggering conditions; wherein, when the data restoration timer is triggered, the local time corresponding to the conference equipment meets the data restoration time information.
[0252] Optionally, after performing the restoration process of the conference equipment based on the target backup data, the processor 1101 specifically performs the following:
[0253] When the data restoration application in the conference equipment is confirmed to be running, receiving the next conference restoration settings data, or receiving the next preset conference event, query the current conference restoration settings data and the current preset conference time information.
[0254] The current meeting restore directory is obtained based on the current meeting restore settings data; data backup processing is performed on the current meeting restore directory to obtain the next target backup data, and the next target backup data is used as the target backup data;
[0255] Set a data restoration timer based on the current meeting restoration settings and the current preset meeting time information. When the data restoration timer is triggered, confirm that the meeting device meets the current data restoration trigger conditions.
[0256] Perform the steps to restore the conference equipment based on the target backup data.
[0257] Optionally, when the processor 1101 executes the data restoration timer based on the current meeting restoration setting data and the current preset meeting time information, and confirms that the data restoration timer is triggered, and determines that the meeting device meets the current data restoration triggering conditions, it specifically executes the following:
[0258] Based on the current meeting restore settings data, determine the current data restore time information corresponding to the current preset meeting time information, and determine the current data restore trigger conditions based on the current data restore time information; wherein, the current data restore trigger conditions are used to trigger the restore process for the meeting equipment;
[0259] The current time difference information is determined based on the current preset meeting time information and the local time of the meeting equipment, and the current time association information is obtained based on the current time difference information;
[0260] Update the data restoration timer using the current time-related information and the current data restoration trigger conditions;
[0261] Trigger the data restoration timer to determine if the conference equipment meets the current data restoration trigger conditions; wherein, the data restoration timer is set to the local time of the conference equipment to meet the current data restoration time information.
[0262] Optionally, the meeting restore directory includes a meeting whitelist directory and a meeting restore list directory. When processor 1101 performs data backup processing on the meeting restore directory to obtain the target backup data, it specifically executes the following:
[0263] Obtain the target data backup method for the meeting restore directory from the meeting restore settings data;
[0264] Based on the target data backup method, the target data corresponding to the meeting restore list directory is backed up to obtain the target backup data.
[0265] Optionally, when processor 1101 performs the restoration process of the conference equipment based on the target backup data to free up the device storage space of the conference equipment, it specifically executes the following:
[0266] Obtain the first index variable and the second index variable. The first index variable points to the restore list directory in the current meeting restore directory, and the second index variable points to the target backup data.
[0267] Based on the first index variable, the target data corresponding to the restored list directory is traversed to determine the operation time information corresponding to the currently traversed node file; based on the second index variable, the backup node file corresponding to the node file in the target backup data is determined, and the backup time corresponding to the backup node file is determined.
[0268] Based on operation time information, backup time, and backup node files, the node files are restored to free up device storage space on the conference equipment.
[0269] Optionally, when processor 1101 performs file restoration processing on node files based on operation time information, backup time, and backup node files, it specifically executes the following:
[0270] The creation and modification times of node files are obtained based on operation time information;
[0271] If the creation time is found to be later than the backup time, the node file is identified as a newly added file and is then deleted.
[0272] If the backup time is later than the creation time and the modification time is later than the backup time, the node file is identified as the modified file, and the modified file is replaced based on the backup node file.
[0273] Alternatively, the processor 1101 is also adapted to perform:
[0274] Determine the first file list of the data to be traversed corresponding to the current restore list directory, determine the reference backup data corresponding to the data to be traversed from the target backup data, and determine the second file list of the reference backup data;
[0275] The target files to be deleted are determined based on the second file list;
[0276] The backup recovery file corresponding to the target deleted file is determined from the reference backup data, and the file recovery process is performed on the traversed data based on the backup recovery file.
[0277] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0278] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0279] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module.
[0280] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0281] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments of this application.
[0282] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0283] The above is a description of a data restoration method and electronic device provided in the embodiments of this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation on the embodiments of this application.
Claims
1. A data restoration method, characterized by, Applied to conference equipment, the method includes: Receive meeting restore settings data and obtain a meeting restore directory based on the meeting restore settings data; Data backup processing is performed on the aforementioned meeting restore directory to obtain the target backup data; Obtain the preset meeting events of the meeting device, and the preset meeting time information of the preset meeting events; Based on the meeting restoration settings data, the data restoration trigger condition corresponding to the preset meeting time information is determined; wherein, the data restoration trigger condition is used to trigger restoration processing for the meeting device; Acquire meeting data related to the preset meeting event and store it in the device storage space of the meeting device; wherein, the meeting data includes meeting files displayed and / or generated during the meeting; Based on the preset meeting time information and the local time of the meeting device, time association information is determined, and when the data restoration trigger condition is confirmed to be met through the time association information, the meeting device is restored based on the target backup data to release the device storage space of the meeting device.
2. The method of claim 1, wherein, The preset meeting time information includes the meeting start time, meeting end time, and meeting time period corresponding to the preset meeting event; the step of determining the data restoration trigger condition corresponding to the preset meeting time information based on the meeting restoration setting data includes: Based on the meeting restoration settings data, determine the data restoration time information for the preset meeting event, and determine the data restoration triggering condition based on the data restoration time information. The data restoration time information includes at least one of the first time setting information, the second time setting information, and the third time setting information. The first time setting information is the time adjustment information for the meeting start time, the second time setting information is the time adjustment information for the meeting end time, and the third time setting information is the adjustable time adjustment information for the meeting time period.
3. The method of claim 2, wherein, The step of determining time association information based on the preset meeting time information and the local time of the meeting device, and confirming that the data restoration trigger condition is met through the time association information, includes: The time difference information is determined based on the preset meeting time information and the local time of the meeting device, and the time correlation information is obtained based on the time difference information; The data restoration timer is set using the time association information and the data restoration trigger conditions; The data restoration timer is triggered to determine if the conference device meets the data restoration triggering condition; wherein, when the data restoration timer is triggered, the local time corresponding to the conference device meets the data restoration time information.
4. The method of claim 3, wherein, After restoring the conference equipment based on the target backup data, the process further includes: When the data restoration application in the conference device is confirmed to be started, when the data restoration application receives the next conference restoration setting data, or when the data restoration application receives the next preset conference event, query the current conference restoration setting data and the current preset conference time information; The current meeting restore directory is obtained based on the current meeting restore settings data; data backup processing is performed on the current meeting restore directory to obtain the next target backup data, and the next target backup data is used as the target backup data; Based on the current meeting restore settings data and the current preset meeting time information, the data restore timer is set, and when the data restore timer is triggered, it is determined that the meeting device meets the current data restore triggering condition; Perform the step of restoring the conference equipment based on the target backup data.
5. The method of claim 4, wherein, The step of setting the data restoration timer based on the current meeting restoration settings data and the current preset meeting time information, and determining that the meeting device meets the current data restoration trigger condition when the data restoration timer is triggered, includes: Based on the current meeting restore settings data, the current data restore time information corresponding to the current preset meeting time information is determined, and the current data restore trigger condition is determined based on the current data restore time information; wherein, the current data restore trigger condition is used to trigger the restore process for the meeting device; The current time difference information is determined based on the current preset meeting time information and the local time of the meeting device, and the current time association information is obtained based on the current time difference information; The data restoration timer is updated using the current time association information and the current data restoration trigger condition; The data restoration timer is triggered to determine if the conference device meets the current data restoration triggering condition; wherein, the local time of the conference device meets the current data restoration time information.
6. The method according to claim 1, characterized in that, The meeting restoration directory includes a meeting whitelist directory and a meeting restoration list directory; the data backup process for the meeting restoration directory to obtain target backup data includes: Obtain the target data backup method for the meeting restore directory from the meeting restore settings data; Based on the target data backup method, the target data corresponding to the meeting restore list directory is backed up to obtain the target backup data.
7. The method according to claim 6, characterized in that, The process of restoring the conference equipment based on the target backup data to free up the device storage space of the conference equipment includes: Obtain a first index variable and a second index variable, wherein the first index variable points to the restore list directory in the current meeting restore directory, and the second index variable points to the target backup data; Based on the first index variable, the target data corresponding to the restore list directory is traversed to determine the operation time information corresponding to the currently traversed node file; based on the second index variable, the backup node file corresponding to the node file in the target backup data is determined, and the backup time corresponding to the backup node file is determined; Based on the operation time information, the backup time, and the backup node file, the node file is restored to free up the device storage space of the conference equipment.
8. The method according to claim 7, characterized in that, The process of restoring the node file based on the operation time information, the backup time, and the backup node file includes: The creation time and modification time of the node file are obtained based on the operation time information; If it is confirmed that the creation time is later than the backup time, the node file is determined to be a newly added file and the newly added file is deleted. If it is confirmed that the backup time is later than the creation time and the modification time is later than the backup time, the node file is determined to be a modified file, and the modified file is replaced based on the backup node file.
9. The method according to claim 7, characterized in that, The method further includes: Determine the first file list of the traversed data corresponding to the current restore list directory, determine the reference backup data corresponding to the traversed data from the target backup data, and determine the second file list of the reference backup data; The target file to be deleted is determined based on the second file list; The backup recovery file corresponding to the target deleted file is determined from the reference backup data, and the file recovery process is performed on the traversed data based on the backup recovery file.
10. An electronic device, characterized in that, The electronic device includes: Processor; and A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the method according to any one of claims 1 to 9.