Cloud desktop data processing method and system based on domestic operating system, and medium
By analyzing the number and attributes of statistical files in real time within the cloud desktop system and setting thresholds to trigger backup commands, the problem of accidental data deletion by users is solved, achieving effective data protection and recovery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG ZHONGXING NEWSTART TECH CO LTD
- Filing Date
- 2023-02-17
- Publication Date
- 2026-06-30
AI Technical Summary
In cloud desktop systems based on domestic operating systems, data recovery after users accidentally delete data requires manpower and carries the risk of data loss.
By obtaining deletion operation commands, the system can count the number and attributes of deleted data files in real time, set thresholds to trigger backup commands, and then execute deletion operations after the backup is complete, thereby protecting the data files.
It reduces the possibility of accidental deletion of data on cloud desktops, reduces the risk of data loss, and improves the efficiency and reliability of data recovery.
Smart Images

Figure CN116257388B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a cloud desktop data processing method, system, and medium based on a domestically developed operating system. Background Technology
[0002] Domestic operating systems refer to operating systems developed by domestic developers based on Linux. Cloud desktops, also known as desktop virtualization or cloud computers, are a new model to replace traditional computers. With cloud desktops, users no longer need to purchase a physical computer; the CPU, memory, hard drive, and other components of the physical computer are all virtualized on backend servers. The mainstream front-end device is a thin client (similar to a set-top box) connected to a monitor and keyboard / mouse. After installing the client, users access the virtual machine on the backend server through a unique communication protocol to achieve interactive operation, achieving a user experience consistent with a physical computer. Furthermore, cloud desktops not only replace traditional computers but also support access from other smart devices such as mobile phones and tablets via the internet, making them the latest solution for mobile office work. However, if a user accidentally deletes data on their cloud desktop, data recovery will require significant manpower and may result in data loss. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a cloud desktop data processing method, system and medium based on a domestic operating system, which can protect against accidental deletion of cloud desktop data and reduce the possibility of cloud desktop data loss.
[0004] In a first aspect, embodiments of the present invention provide a cloud desktop data processing method based on a domestically developed operating system, comprising:
[0005] Obtain the deletion operation instruction sent by the terminal, and determine the data file to be deleted based on the deletion operation instruction;
[0006] Obtain the file attributes of the deleted data files, and perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size;
[0007] Whether to trigger a backup command is determined based on the number of deleted data files in real time and a preset first threshold, or the file attributes and a preset second threshold.
[0008] After the backup command is executed, the deletion command is executed to delete the corresponding data file.
[0009] Optionally, the number of deleted data files and their attributes are statistically analyzed in real time, specifically including:
[0010] The number of deleted data files is incremented through the file deletion interface;
[0011] The file attributes are accumulated according to category through the file deletion interface.
[0012] Optionally, whether to trigger a backup instruction is determined based on the number of deleted data files as counted in real time and a preset first threshold, or the file attributes and a preset second threshold, specifically including:
[0013] If the number of deleted data files counted in real time exceeds a preset first threshold, a backup command is triggered;
[0014] Alternatively, if the file attributes exceed a preset second threshold, a backup command is triggered.
[0015] Optionally, the backup instruction execution process specifically includes:
[0016] Obtain backup instructions, perform snapshot operations on all deleted data files according to the backup instructions, and wait for the snapshot completion feedback information.
[0017] Optionally, the backup instruction execution process specifically includes:
[0018] Obtain backup instructions, save all deleted data files to a preset directory according to the backup instructions, and delete all deleted data files after a preset backup time has elapsed.
[0019] Secondly, embodiments of the present invention provide a cloud desktop data processing system based on a domestically developed operating system, comprising:
[0020] The first module is used to obtain the deletion operation instruction sent by the terminal and determine the data file to be deleted based on the deletion operation instruction;
[0021] The second module is used to obtain the file attributes of the deleted data files and to perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size.
[0022] The third module is used to determine whether to trigger a backup command based on the number of deleted data files in real time and a preset first threshold, or the file attributes and a preset second threshold.
[0023] The fourth module is used to execute the deletion operation command to delete the corresponding data file after the backup command is completed.
[0024] Thirdly, embodiments of the present invention provide a cloud desktop data processing device based on a domestically developed operating system, comprising:
[0025] At least one processor;
[0026] At least one memory for storing at least one program;
[0027] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0028] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to perform the methods described above.
[0029] Fifthly, embodiments of the present invention provide a cloud desktop data processing system based on a domestically developed operating system, comprising a terminal and a server, wherein a communication connection is established between the terminal and the server; wherein,
[0030] The terminal is used to acquire the user's operation instructions and display the execution results corresponding to the operation instructions;
[0031] The server includes:
[0032] At least one processor;
[0033] At least one memory for storing at least one program;
[0034] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0035] Implementing this embodiment of the invention has the following beneficial effects: This embodiment determines the data file to be deleted according to the deletion operation instruction, obtains the file attributes of the deleted data file, performs real-time statistics on the number of deleted data files and the file attributes, and determines whether to trigger a backup instruction based on the real-time statistics of the number of deleted data files and a preset first threshold, or the file attributes and a preset second threshold. After the backup instruction is executed, the deletion operation instruction is executed to delete the corresponding data file; the deleted data file is backed up before deletion, thereby protecting against accidental deletion of cloud desktop data and reducing the possibility of cloud desktop data loss. Attached Figure Description
[0036] Figure 1 This is a flowchart illustrating the steps of a cloud desktop data processing method based on a domestic operating system provided in an embodiment of the present invention.
[0037] Figure 2 This is a structural block diagram of a cloud desktop data processing system based on a domestic operating system provided in an embodiment of the present invention;
[0038] Figure 3 This is a structural block diagram of a cloud desktop data processing device based on a domestic operating system provided in an embodiment of the present invention;
[0039] Figure 4 This is another structural block diagram of a cloud desktop data processing system based on a domestic operating system provided in an embodiment of the present invention. Detailed Implementation
[0040] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
[0041] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0042] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the invention described herein can be implemented in an order other than that illustrated or described herein.
[0043] Unless otherwise defined, all technical and scientific terms used in the embodiments of this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in the embodiments of this invention is for descriptive purposes only and is not intended to limit the invention.
[0044] See Figure 4 The terminal and the server establish a communication connection. The cloud desktop runs on the server. Users operate the cloud desktop and related content through the terminal's operation interface. After receiving the operation instructions input by the user, the cloud desktop executes the operation instructions and feeds them back to the terminal.
[0045] See Figure 1 This invention provides a cloud desktop data processing method based on a domestically developed operating system, applied to a server, comprising:
[0046] S100: Obtain the deletion operation instruction sent by the terminal, and determine the data file to be deleted based on the deletion operation instruction.
[0047] Normally, users select a file or folder with the mouse, right-click, and choose the delete button to delete it. The terminal receives the delete command and sends it to the server. Upon receiving the delete command, the server determines the data file to be deleted based on its location on the desktop, name, sequence number, or other attributes.
[0048] S200: Obtain the file attributes of the deleted data files, and perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size.
[0049] It should be noted that file attributes refer to the characteristic parameters of data files, including but not limited to file size, file importance level, or file classification attributes.
[0050] Specifically, the number and size of data files can be counted through the corresponding interface in the server's system file manager application. For example, the number and size of files can be obtained through the Fm::TotalSizeJob class in the desktop system file manager.
[0051] Optionally, the number of deleted data files and their attributes are statistically analyzed in real time, specifically including:
[0052] S210. Accumulate the number of deleted data files through the file deletion interface;
[0053] S220. The file attributes are accumulated according to category through the file deletion interface.
[0054] Specifically, the number of deleted data files is accumulated through the file deletion interface. For each deleted file received, the number of deleted data files is incremented by one. File attributes are determined according to the type of a preset second threshold. File attributes may include one or more attributes. Different file attributes are accumulated according to categories through the file deletion interface. For example, if the file attribute includes file size, the size of the deleted data files is accumulated through the file deletion interface. If the size of the first deleted data file is 0.2MB and the size of the second deleted data file is 0.5MB, then the size corresponding to the current file attribute is 0.7MB.
[0055] S300: Determine whether to trigger a backup command based on the number of deleted data files as statistically analyzed in real time and a preset first threshold, or the file attributes and a preset second threshold.
[0056] It should be noted that the first threshold and the second threshold are determined based on the actual application, and this embodiment does not impose specific restrictions.
[0057] Specifically, whether to trigger a backup command can be determined based on the number of data files deleted or one or more of the file attributes.
[0058] Optionally, whether to trigger a backup instruction is determined based on the number of deleted data files as counted in real time and a preset first threshold, or the file attributes and a preset second threshold, specifically including:
[0059] S310. If the number of deleted data files counted in real time exceeds the preset first threshold, a backup command is triggered.
[0060] S320, or, if the file attributes exceed a preset second threshold, a backup command is triggered.
[0061] In Linux, everything is a file. You can define a specific directory (e.g., the etc directory) where an INI file can be created (using a text editor). This file can then configure the number and size of configuration files. The INI file content can look like this:
[0062] [FileAttr]; File size, in MB
[0063] FileSize = 1000; Number of files, in units: individual.
[0064] FileCount = 1000
[0065] If you need to modify the configuration, you can use a text editor to modify the contents of the above file. The program can also read or modify the contents of the above configuration file through the file operation interface. The configuration file can also be modified through the system's built-in text editor software, such as Vim.
[0066] INI file format explanation: INI configuration files generally consist of sections, properties, and comments. Sections: Sections are enclosed in square brackets, occupy a single line, and all properties (key-value pairs) between that section and the next section belong to that section. For example:
[0067] [section]
[0068] Property:
[0069] Each key-value pair occupies a separate line and is connected by an equals sign. For example:
[0070] name = Li Ming
[0071] Comment:
[0072] Comments begin with a semicolon (;) and occupy a separate line. All text following the semicolon, up to the end of the line, is a comment, such as:
[0073] ; comment text.
[0074] S400. After the backup command is executed, the deletion operation command is executed to delete the corresponding data file.
[0075] Specifically, file deletion is achieved by calling the system file manager's interface.
[0076] Optionally, the backup instruction execution process specifically includes:
[0077] S410A: Obtain backup instructions, perform snapshot operations on all deleted data files according to the backup instructions, and wait for the snapshot completion feedback information.
[0078] Specifically, the user's deletion operation actually calls the file manager's deletion interface. By modifying the file manager's deletion interface, before the file manager executes the deletion step, it reads the configuration file to obtain the threshold for the number and size of files, and calls the file management interface to obtain the number and size of files to be deleted. Then, it compares the two. If the threshold is exceeded, the file manager sends a message to the cloud platform through network communication to perform a snapshot operation and waits for the snapshot completion message to be returned. After receiving the return message, it continues to execute the deletion step.
[0079] Optionally, the backup instruction execution process specifically includes:
[0080] S410B: Obtain backup instructions, save all deleted data files to a preset directory according to the backup instructions, and delete all deleted data files after the preset backup time has elapsed.
[0081] It should be noted that the preset backup time is determined according to the actual application, and this embodiment does not impose specific restrictions.
[0082] Specifically, the files to be deleted are backed up in other directories of the agreed system. To prevent the number of backed-up files from increasing over time, a retention period can be set, such as files that are backed up more than a month ago will be processed and deleted.
[0083] Implementing this embodiment of the invention has the following beneficial effects: This embodiment determines the data file to be deleted according to the deletion operation instruction, obtains the file attributes of the deleted data file, performs real-time statistics on the number of deleted data files and the file attributes, and determines whether to trigger a backup instruction based on the real-time statistics of the number of deleted data files and a preset first threshold, or the file attributes and a preset second threshold. After the backup instruction is executed, the deletion operation instruction is executed to delete the corresponding data file; the deleted data file is backed up before deletion, thereby protecting against accidental deletion of cloud desktop data and reducing the possibility of cloud desktop data loss.
[0084] See Figure 2 This invention provides a cloud desktop data processing system based on a domestically developed operating system, comprising:
[0085] The first module is used to obtain the deletion operation instruction sent by the terminal and determine the data file to be deleted based on the deletion operation instruction;
[0086] The second module is used to obtain the file attributes of the deleted data files and to perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size.
[0087] The third module is used to determine whether to trigger a backup command based on the number of deleted data files in real time and a preset first threshold, or the file attributes and a preset second threshold.
[0088] The fourth module is used to execute the deletion operation command to delete the corresponding data file after the backup command is completed.
[0089] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0090] See Figure 3 This invention provides a cloud desktop data processing device based on a domestically developed operating system, comprising:
[0091] At least one processor;
[0092] At least one memory for storing at least one program;
[0093] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0094] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. The memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include remote memory located remotely relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0095] It is evident that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented in this device embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0096] Furthermore, this application also discloses a computer program product or computer program stored in a computer-readable storage medium. A processor of a computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the described method. Similarly, the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0097] This invention also provides a computer-readable storage medium storing a processor-executable program that, when executed by a processor, implements the above-described method.
[0098] It is understood that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0099] See Figure 4 This invention provides a cloud desktop data processing system based on a domestically developed operating system, comprising a terminal and a server, wherein a communication connection is established between the terminal and the server; wherein,
[0100] The terminal is used to acquire the user's operation instructions and display the execution results corresponding to the operation instructions;
[0101] The server includes:
[0102] At least one processor;
[0103] At least one memory for storing at least one program;
[0104] When the at least one program is executed by the at least one processor, the at least one processor performs the method described above.
[0105] Specifically, the terminal can be different types of electronic devices, including but not limited to smartwatches, wearable devices, computers, or mobile phones; while the server can be different types of electronic devices, including but not limited to desktop computers and laptops.
[0106] It is evident that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0107] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A cloud desktop data processing method based on a domestically developed operating system, characterized in that, include: Obtain the deletion operation instruction sent by the terminal, and determine the data file to be deleted based on the deletion operation instruction; Obtain the file attributes of the deleted data files, and perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size; Whether to trigger a backup command is determined based on the number of deleted data files in real time and a preset first threshold, or the file attributes and a preset second threshold. After the backup command is executed, the deletion command is executed to delete the corresponding data file; Specifically, this includes real-time statistics on the number of deleted data files and their attributes, including: The number of deleted data files is incremented through the file deletion interface; The file attributes are accumulated according to category through the file deletion interface.
2. The method according to claim 1, characterized in that, Whether to trigger a backup command is determined based on the number of deleted data files as statistically analyzed in real time and a preset first threshold, or the file attributes and a preset second threshold. Specifically, this includes: If the number of deleted data files counted in real time exceeds a preset first threshold, a backup command is triggered; Alternatively, if the file attributes exceed a preset second threshold, a backup command is triggered.
3. The method according to any one of claims 1-2, characterized in that, The backup command execution process specifically includes: Obtain backup instructions, perform snapshot operations on all deleted data files according to the backup instructions, and wait for the snapshot completion feedback information.
4. The method according to any one of claims 1-2, characterized in that, The backup command execution process specifically includes: Obtain backup instructions, save all deleted data files to a preset directory according to the backup instructions, and delete all deleted data files after a preset backup time has elapsed.
5. A cloud desktop data processing system based on a domestically developed operating system, characterized in that, include: The first module is used to obtain the deletion operation instruction sent by the terminal and determine the data file to be deleted based on the deletion operation instruction; The second module is used to obtain the file attributes of the deleted data files and to perform real-time statistics on the number of deleted data files and the file attributes; the file attributes include file size. The third module is used to determine whether to trigger a backup command based on the number of deleted data files in real time and a preset first threshold, or the file attributes and a preset second threshold. The fourth module is used to execute the deletion operation command to delete the corresponding data file after the backup command is completed; Specifically, this includes real-time statistics on the number of deleted data files and their attributes, including: The number of deleted data files is incremented through the file deletion interface; The file attributes are accumulated according to category through the file deletion interface.
6. A cloud desktop data processing device based on a domestically developed operating system, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor performs the method as described in any one of claims 1-4.
7. A computer-readable storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to perform the method as described in any one of claims 1-4.
8. A cloud desktop data processing system based on a domestically developed operating system, characterized in that, This includes terminals and servers, with communication connections established between the terminals and servers; among which, The terminal is used to acquire the user's operation instructions and display the execution results corresponding to the operation instructions; The server includes: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor performs the method as described in any one of claims 1-4.