A government service data backup method and related device based on cloud service
By setting up a database and backup database on the cloud server and synchronous update processing when the government service data generated by the government terminal is updated, the problem that the existing backup storage method is not related to normal storage is solved, and the associated backup storage and synchronous update of government service data is realized.
Patent Information
- Application Number
- CN202410686609.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The existing backup storage method has nothing to do with the data stored normally, resulting in confusion in the backup database storage and it is difficult to find the latest valid backup data.
Receive government service data and storage instructions generated by government terminals through the cloud server, set up databases and backup databases, generate backup data, and perform synchronous update processing when data is updated.
The related backup storage of government service data is realized to ensure that the backup data is updated synchronously in time when data is updated, and to avoid confusion in the backup database storage.
Smart Images

Figure CN118819951B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data storage technology, and in particular to a government service data backup method and related devices based on cloud services. Background Art
[0002] For important data and documents, backup storage is generally performed during the storage process. At this time, it is necessary to build a database for users to normally store important data and documents, and also a backup database for backing up and storing these important data and documents is required. The existing backup storage methods are generally not associated with the corresponding data and documents stored normally. Moreover, after the important data and documents in the database are modified by the management user, the corresponding backup storage data in the backup database is not modified and saved accordingly according to the updated and modified content, but the updated and modified important data and documents are directly backed up and stored in the backup database again, and the original backup storage data will not be automatically overwritten, which leads to backup storage confusion in the backup database. At the same time, when the backup storage data needs to be found later, it is difficult to find the latest valid backup storage data. Summary of the invention
[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a government service data backup method and related devices based on cloud services, which can realize the associated backup storage of government service data and synchronize the backup data in time when there is an update to the government service data.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a government service data backup method based on cloud services, the method comprising:
[0005] The cloud service end receives the government service data generated by the government terminal and the storage instructions corresponding to the government service data, and the cloud service end is provided with a database and a backup database;
[0006] The cloud service end generates backup data according to the government service data, and stores the government service data in the database in response to the storage instruction, and stores the backup data in the backup database;
[0007] When the cloud service end monitors that the government service data stored in the database is updated, the cloud service end obtains the updated government service data;
[0008] Comparing the updated government service data with the government service data to generate a plurality of updated data, each of the plurality of updated data including an updated location and comparison data before and after the update;
[0009] The cloud service end updates the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data.
[0010] Optionally, the cloud service end receives the government service data generated by the government service terminal and a storage instruction corresponding to the government service data, including:
[0011] After generating the government service data, the government terminal generates a storage instruction corresponding to the government service data based on the government service data and in accordance with a storage instruction generation rule, wherein the storage instruction is used to perform backup storage of the government service data;
[0012] The cloud service end receives the government service data and the storage instruction uploaded by the government terminal based on a data transmission protocol.
[0013] Optionally, the cloud service end generates backup data according to the government service data, including:
[0014] The cloud service end performs data backup processing on the government service data based on the backup storage requirements in the storage instructions to generate backup data corresponding to the government service data.
[0015] Optionally, the storing the government service data in the database in response to the storage instruction, and storing the backup data in the backup database, includes:
[0016] The cloud service end allocates a first storage area in the database based on the storage instruction, and stores the government service data in the first storage area in the database;
[0017] The cloud service end allocates a backup storage area in the backup database based on the storage instruction, and stores the backup data in the backup storage area in the backup database; the storage address of the first storage area is associated with the backup storage address of the backup storage area.
[0018] Optionally, when the cloud service end monitors whether the government service data stored in the database is updated, obtaining the updated government service data includes:
[0019] The cloud service end performs update monitoring on the government service data in the first storage area of the database. When it is detected that the government service data is updated, the cloud service end performs loading processing on the government service data in the first storage area of the database to obtain updated government service data.
[0020] Optionally, the updating of the government service data is compared with the government service data to generate a plurality of updated data, including:
[0021] The updated government service data and the government service data are updated and compared according to preset comparison rules to obtain a number of updated data. The preset comparison rules are rules for updating and comparing the updated government service data and the government service data from the beginning and the end of the data respectively inward.
[0022] Optionally, the cloud service end updates the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data, including:
[0023] The cloud service end obtains the update position and comparison data before and after the update contained in each of the plurality of update data;
[0024] The cloud service end obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database based on the update position contained in each update data;
[0025] The data in the to-be-updated position is updated based on the pre- and post-update comparison data contained in each update data to obtain updated backup data.
[0026] In addition, an embodiment of the present invention further provides a government service data backup device based on cloud services, the device comprising:
[0027] Generating module: used for the cloud service end to receive the government service data generated by the government service terminal and the storage instructions corresponding to the government service data, wherein the cloud service end is provided with a database and a backup database;
[0028] Storage module: used for the cloud service end to generate backup data according to the government service data, and to store the government service data in the database in response to the storage instruction, and to store the backup data in the backup database;
[0029] Monitoring module: used for the cloud service end to monitor the government service data stored in the database and obtain updated government service data when there is any update;
[0030] Update comparison module: used to compare the updated government service data with the government service data to generate a plurality of updated data, each of which includes an updated position and comparison data before and after the update;
[0031] Update processing module: used for the cloud service end to update the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data.
[0032] In addition, an embodiment of the present invention further provides a cloud service end, including a processor and a memory, wherein the processor runs a computer program or code stored in the memory to implement a government service data backup method as described in any one of the above.
[0033] In addition, an embodiment of the present invention further provides a computer-readable storage medium for storing a computer program or code. When the computer program or code is executed by a processor, a government service data backup method as described in any one of the above is implemented.
[0034] In an embodiment of the present invention, after the cloud service end generates backup data for government service data and stores the government service data in a database in response to a storage instruction, and after storing the backup data in the backup database, it obtains updated government service data when it detects that the government service data is updated; then it obtains a number of updated data, and updates the backup data corresponding to the government service data according to the number of updated data to obtain updated backup data; thereby realizing the associative backup storage of the government service data, and synchronously updating the backup data in a timely manner when the government service data is updated. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 is a flowchart of a government service data backup method based on cloud services in an embodiment of the present invention;
[0037] Figure 2 Schematic diagram of the structure of a government service data backup device based on cloud services in an embodiment of the present invention;
[0038] Figure 3 It is a schematic diagram of the structural composition of the cloud service end in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] For example, see Figure 1, Figure 1 It is a flow chart of a government service data backup method based on cloud service in an embodiment of the present invention.
[0041] like Figure 1 As shown, a method for backing up government service data based on cloud services comprises:
[0042] S11: The cloud service end receives the government service data generated by the government terminal and the storage instruction corresponding to the government service data, wherein the cloud service end is provided with a database and a backup database;
[0043] During the specific implementation of the present invention, the cloud service end receives the government service data generated by the government service terminal and the storage instructions corresponding to the government service data, including: after the government terminal generates the government service data, based on the government service data, generates the storage instructions corresponding to the government service data according to the storage instruction generation rules, and the storage instructions are used to perform backup storage of the government service data; the cloud service end receives the government service data and the storage instructions uploaded by the government terminal based on the data transmission protocol.
[0044] Specifically, a database and a backup database are set up on the cloud service end, wherein the database is used to store the government service data generated by the government service terminal, and the backup database is used to store the backup data corresponding to the government service data; the cloud service end is used to receive the government service data generated by the government terminal and the storage instructions corresponding to the government service data; when the government terminal performs government service operations, it will automatically generate government service data. At this time, the government terminal will automatically trigger the storage instruction generation rules according to the government service data, and then automatically generate storage instructions corresponding to the government service data; the storage instructions will be used to perform backup storage of the government service data; then the government terminal transmits the government service data and storage instructions to the cloud service end through the data transmission protocol, so that the cloud service end can receive the government service data generated by the government terminal and the storage instructions corresponding to the government service data.
[0045] S12: the cloud service end generates backup data according to the government service data, and stores the government service data in the database in response to the storage instruction, and stores the backup data in the backup database;
[0046] In the specific implementation process of the present invention, the cloud service end generates backup data based on the government service data, including: the cloud service end performs data backup processing on the government service data based on the backup storage requirements in the storage instructions, and generates backup data corresponding to the government service data.
[0047] Furthermore, the response to the storage instruction to store the government service data in the database, and to store the backup data in the backup database, includes: the cloud service end allocates a first storage area in the database based on the storage instruction, and stores the government service data in the first storage area in the database; the cloud service end allocates a backup storage area in the backup database based on the storage instruction, and stores the backup data in the backup storage area in the backup database; the storage address of the first storage area is associated with the backup storage address of the backup storage area.
[0048] Specifically, after the cloud service end receives the government service data and the storage instructions corresponding to the government service data, the government service data will be backed up according to the backup storage requirements in the storage instructions, thereby generating backup data corresponding to the government service data; here, the copy creation function is directly used to create a copy of the government service data, and then the copy corresponding to the created government service data is used as the backup data corresponding to the government service data.
[0049] At this time, the cloud server will allocate a first storage area in the database according to the storage instruction, and the first storage area will be used to store government service data, that is, the government service data will be stored in the first storage area in the database; at the same time, the cloud server will allocate a backup storage area in the backup database according to the storage instruction, and store the backup data in the backup storage area in the backup database; then the storage address of the first storage area needs to be associated with the backup storage address of the backup storage area; this operation can enable the backup storage area associated with the first storage area to be quickly located when the government service data in the first storage area is updated subsequently, so as to obtain the corresponding backup data, which is convenient for subsequent backup data updates.
[0050] S13: When the cloud service end monitors that the government service data stored in the database is updated, the cloud service end obtains the updated government service data;
[0051] During the specific implementation of the present invention, when the cloud service end monitors whether the government service data stored in the database has been updated, the updated government service data is obtained, including: the cloud service end performs update monitoring processing on the government service data in the first storage area in the database, and when it is monitored that the government service data has been updated, the cloud service end performs loading processing on the government service data in the first storage area in the database to obtain updated government service data.
[0052] Specifically, the cloud server monitors and processes updates of the government service data in the first storage area of the database. When it detects that the government service data is updated, the cloud server will load the government service data in the first storage area of the database to obtain the updated government service data. After the cloud server obtains the updated government service data, it is convenient for subsequent comparison processing.
[0053] S14: Compare the updated government service data with the government service data to generate a plurality of updated data, each of which includes an updated location and comparison data before and after the update;
[0054] In the specific implementation process of the present invention, the updated government service data is compared with the government service data to generate a number of updated data, including: updating and comparing the updated government service data with the government service data according to preset comparison rules to obtain a number of updated data, and the preset comparison rules are rules for updating and comparing the updated government service data and the government service data from the beginning and the end of the data respectively inward.
[0055] Specifically, the updated government service data and the government service data need to be updated and compared on the cloud service side according to preset comparison rules to obtain a number of updated data; the preset comparison rules are rules for updating and comparing the updated government service data and the government service data from the beginning and the end of the data respectively inward; compared with updating and comparing from the beginning to the end, this will increase the comparison speed, and compared with dividing the updated government service data and the government service data into the same number of segments for comparison, although the comparison speed is slower, the comparison accuracy will be higher, because when comparing in segments, if additional segment data is added to the updated data, it may cause segment confusion and fail to accurately compare the location of the modified updated data.
[0056] S15: The cloud service end updates the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data.
[0057] During the specific implementation of the present invention, the cloud server updates the backup data corresponding to the government service data in the backup database according to the multiple update data to obtain updated backup data, including: the cloud server obtains the update position and comparison data before and after the update contained in each of the multiple update data; the cloud server obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database based on the update position contained in each update data; and updates the data in the to-be-updated position based on the comparison data before and after the update contained in each update data to obtain updated backup data.
[0058] Specifically, the cloud server obtains the update position and comparison data before and after the update contained in each of several update data; then the cloud server obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database according to the update position contained in each update data; that is, indexes the backup storage area through the first storage area where the updated government service data is located, and then obtains the corresponding backup data in the backup storage area, and then obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database through the update position contained in each update data; then, the data in the to-be-updated position is updated according to the comparison data before and after the update contained in each update data to obtain updated backup data, and then the updated backup data replaces the corresponding backup data in the backup storage area, thereby realizing backup update.
[0059] In an embodiment of the present invention, after the cloud service end generates backup data for government service data and stores the government service data in a database in response to a storage instruction, and after storing the backup data in the backup database, it obtains updated government service data when it detects that the government service data is updated; then it obtains a number of updated data, and updates the backup data corresponding to the government service data according to the number of updated data to obtain updated backup data; thereby realizing the associative backup storage of the government service data, and synchronously updating the backup data in a timely manner when the government service data is updated.
[0060] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a cloud service-based government service data backup device in an embodiment of the present invention.
[0061] like Figure 2 As shown, a government service data backup device based on cloud service, the device includes:
[0062] Generating module 21: used for the cloud service end to receive the government service data generated by the government terminal and the storage instruction corresponding to the government service data, wherein the cloud service end is provided with a database and a backup database;
[0063] During the specific implementation of the present invention, the cloud service end receives the government service data generated by the government service terminal and the storage instructions corresponding to the government service data, including: after the government terminal generates the government service data, based on the government service data, generates the storage instructions corresponding to the government service data according to the storage instruction generation rules, and the storage instructions are used to perform backup storage of the government service data; the cloud service end receives the government service data and the storage instructions uploaded by the government terminal based on the data transmission protocol.
[0064] Specifically, a database and a backup database are set up on the cloud service end, wherein the database is used to store the government service data generated by the government service terminal, and the backup database is used to store the backup data corresponding to the government service data; the cloud service end is used to receive the government service data generated by the government terminal and the storage instructions corresponding to the government service data; when the government terminal performs government service operations, it will automatically generate government service data. At this time, the government terminal will automatically trigger the storage instruction generation rules according to the government service data, and then automatically generate storage instructions corresponding to the government service data; the storage instructions will be used to perform backup storage of the government service data; then the government terminal transmits the government service data and storage instructions to the cloud service end through the data transmission protocol, so that the cloud service end can receive the government service data generated by the government terminal and the storage instructions corresponding to the government service data.
[0065] Storage module 22: used for the cloud service end to generate backup data according to the government service data, and to store the government service data in the database in response to the storage instruction, and to store the backup data in the backup database;
[0066] In the specific implementation process of the present invention, the cloud service end generates backup data based on the government service data, including: the cloud service end performs data backup processing on the government service data based on the backup storage requirements in the storage instructions, and generates backup data corresponding to the government service data.
[0067] Furthermore, the response to the storage instruction to store the government service data in the database, and to store the backup data in the backup database, includes: the cloud service end allocates a first storage area in the database based on the storage instruction, and stores the government service data in the first storage area in the database; the cloud service end allocates a backup storage area in the backup database based on the storage instruction, and stores the backup data in the backup storage area in the backup database; the storage address of the first storage area is associated with the backup storage address of the backup storage area.
[0068] Specifically, after the cloud service end receives the government service data and the storage instructions corresponding to the government service data, the government service data will be backed up according to the backup storage requirements in the storage instructions, thereby generating backup data corresponding to the government service data; here, the copy creation function is directly used to create a copy of the government service data, and then the copy corresponding to the created government service data is used as the backup data corresponding to the government service data.
[0069] At this time, the cloud server will allocate a first storage area in the database according to the storage instruction, and the first storage area will be used to store government service data, that is, the government service data will be stored in the first storage area in the database; at the same time, the cloud server will allocate a backup storage area in the backup database according to the storage instruction, and store the backup data in the backup storage area in the backup database; then the storage address of the first storage area needs to be associated with the backup storage address of the backup storage area; this operation can enable the backup storage area associated with the first storage area to be quickly located when the government service data in the first storage area is updated subsequently, so as to obtain the corresponding backup data, which is convenient for subsequent backup data updates.
[0070] Monitoring module 23: used for the cloud service end to monitor the government service data stored in the database for updates and obtain updated government service data;
[0071] During the specific implementation of the present invention, when the cloud service end monitors whether the government service data stored in the database has been updated, the updated government service data is obtained, including: the cloud service end performs update monitoring processing on the government service data in the first storage area in the database, and when it is monitored that the government service data has been updated, the cloud service end performs loading processing on the government service data in the first storage area in the database to obtain updated government service data.
[0072] Specifically, the cloud server monitors and processes updates of the government service data in the first storage area of the database. When it detects that the government service data is updated, the cloud server will load the government service data in the first storage area of the database to obtain the updated government service data. After the cloud server obtains the updated government service data, it is convenient for subsequent comparison processing.
[0073] Update comparison module 24: used to compare the updated government service data with the government service data to generate a plurality of update data, each of which includes an update location and comparison data before and after the update;
[0074] In the specific implementation process of the present invention, the updated government service data is compared with the government service data to generate a number of updated data, including: updating and comparing the updated government service data with the government service data according to preset comparison rules to obtain a number of updated data, and the preset comparison rules are rules for updating and comparing the updated government service data and the government service data from the beginning and the end of the data respectively inward.
[0075] Specifically, the updated government service data and the government service data need to be updated and compared on the cloud service side according to preset comparison rules to obtain a number of updated data; the preset comparison rules are rules for updating and comparing the updated government service data and the government service data from the beginning and the end of the data respectively inward; compared with updating and comparing from the beginning to the end, this will increase the comparison speed, and compared with dividing the updated government service data and the government service data into the same number of segments for comparison, although the comparison speed is slower, the comparison accuracy will be higher, because when comparing in segments, if additional segment data is added to the updated data, it may cause segment confusion and fail to accurately compare the location of the modified updated data.
[0076] Update processing module 25: used for the cloud service end to update the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data.
[0077] During the specific implementation of the present invention, the cloud server updates the backup data corresponding to the government service data in the backup database according to the multiple update data to obtain updated backup data, including: the cloud server obtains the update position and comparison data before and after the update contained in each of the multiple update data; the cloud server obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database based on the update position contained in each update data; and updates the data in the to-be-updated position based on the comparison data before and after the update contained in each update data to obtain updated backup data.
[0078] Specifically, the cloud server obtains the update position and comparison data before and after the update contained in each of several update data; then the cloud server obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database according to the update position contained in each update data; that is, indexes the backup storage area through the first storage area where the updated government service data is located, and then obtains the corresponding backup data in the backup storage area, and then obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database through the update position contained in each update data; then, the data in the to-be-updated position is updated according to the comparison data before and after the update contained in each update data to obtain updated backup data, and then the updated backup data replaces the corresponding backup data in the backup storage area, thereby realizing backup update.
[0079] In an embodiment of the present invention, after the cloud service end generates backup data for government service data and stores the government service data in a database in response to a storage instruction, and after storing the backup data in the backup database, it obtains updated government service data when it detects that the government service data is updated; then it obtains a number of updated data, and updates the backup data corresponding to the government service data according to the number of updated data to obtain updated backup data; thereby realizing the associative backup storage of the government service data, and synchronously updating the backup data in a timely manner when the government service data is updated.
[0080] A computer-readable storage medium is provided in an embodiment of the present invention, wherein a computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the government service data backup method of any one of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0081] An embodiment of the present invention further provides a computer application program that runs on a computer and is used to execute the government service data backup method of any one of the above embodiments.
[0082] also, Figure 3 It is a schematic diagram of the structural composition of the cloud service end in an embodiment of the present invention.
[0083] The embodiment of the present invention also provides a cloud service end, such as Figure 3 The cloud service end includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other devices. Those skilled in the art will understand that Figure 3The structural components of the cloud service end shown do not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 303 can be used to store the application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only an example and not a limitation.
[0084] The input unit 304 is used to receive the input of the signal and the keyword input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect the various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling the data stored in the memory.
[0085] As an embodiment, the cloud service end includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the government service data backup method in any one of the above-mentioned embodiments.
[0086] In an embodiment of the present invention, after the cloud service end generates backup data for government service data and stores the government service data in a database in response to a storage instruction, and after storing the backup data in the backup database, it obtains updated government service data when it detects that the government service data is updated; then it obtains a number of updated data, and updates the backup data corresponding to the government service data according to the number of updated data to obtain updated backup data; thereby realizing the associative backup storage of the government service data, and synchronously updating the backup data in a timely manner when the government service data is updated.
[0087] In addition, the above is a detailed introduction to a cloud service-based government service data backup method and related devices provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A government service data backup method based on cloud service, characterized in that: The method comprises: The cloud service end receives the government service data generated by the government terminal and the storage instructions corresponding to the government service data, and the cloud service end is provided with a database and a backup database; The cloud service end generates backup data according to the government service data, and stores the government service data in the database in response to the storage instruction, and stores the backup data in the backup database; When the cloud service end monitors that the government service data stored in the database is updated, the cloud service end obtains the updated government service data; Comparing the updated government service data with the government service data to generate a plurality of updated data, each of the plurality of updated data including an updated location and comparison data before and after the update; The cloud service end updates the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data; The step of storing the government service data in the database in response to the storage instruction and storing the backup data in the backup database includes: The cloud service end allocates a first storage area in the database based on the storage instruction, and stores the government service data in the first storage area in the database; The cloud service end allocates a backup storage area in the backup database based on the storage instruction, and stores the backup data in the backup storage area in the backup database; the storage address of the first storage area is associated with the backup storage address of the backup storage area; The updating government service data is compared with the government service data to generate a plurality of updated data, including: The updated government service data and the government service data are updated and compared according to preset comparison rules to obtain a number of updated data, wherein the preset comparison rules are rules for performing update comparison from the beginning and the end of the data of the updated government service data and the government service data respectively toward the inside; the preset comparison rules are rules for performing update comparison from the beginning and the end of the data of the updated government service data and the government service data respectively toward the inside.
2. The government service data backup method according to claim 1, characterized in that: The cloud service end receives the government service data generated by the government service terminal and the storage instruction corresponding to the government service data, including: After generating the government service data, the government terminal generates a storage instruction corresponding to the government service data based on the government service data and in accordance with a storage instruction generation rule, wherein the storage instruction is used to perform backup storage of the government service data; The cloud service end receives the government service data and the storage instruction uploaded by the government terminal based on a data transmission protocol.
3. The government service data backup method according to claim 1, characterized in that: The cloud service end generates backup data according to the government service data, including: The cloud service end performs data backup processing on the government service data based on the backup storage requirements in the storage instructions to generate backup data corresponding to the government service data.
4. The government service data backup method according to claim 1, characterized in that: When the cloud service end monitors that the government service data stored in the database is updated, obtaining the updated government service data includes: The cloud service end performs update monitoring on the government service data in the first storage area of the database. When it is detected that the government service data is updated, the cloud service end performs loading processing on the government service data in the first storage area of the database to obtain updated government service data.
5. The government service data backup method according to claim 1, characterized in that: The cloud service end updates the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data, including: The cloud service end obtains the update position and comparison data before and after the update contained in each of the plurality of update data; The cloud service end obtains the to-be-updated position of the backup data corresponding to the government service data in the backup database based on the update position contained in each update data; The data in the to-be-updated position is updated based on the pre- and post-update comparison data contained in each update data to obtain updated backup data.
6. A government service data backup device based on cloud service, characterized in that: The device comprises: Generating module: used for the cloud service end to receive the government service data generated by the government service terminal and the storage instructions corresponding to the government service data, wherein the cloud service end is provided with a database and a backup database; Storage module: used for the cloud service end to generate backup data according to the government service data, and to store the government service data in the database in response to the storage instruction, and to store the backup data in the backup database; Monitoring module: used for the cloud service end to monitor the government service data stored in the database and obtain updated government service data when there is any update; Update comparison module: used to compare the updated government service data with the government service data to generate a plurality of updated data, each of which includes an updated position and comparison data before and after the update; Update processing module: used for the cloud service end to update the backup data corresponding to the government service data in the backup database according to the plurality of update data to obtain updated backup data; The step of storing the government service data in the database in response to the storage instruction and storing the backup data in the backup database includes: The cloud service end allocates a first storage area in the database based on the storage instruction, and stores the government service data in the first storage area in the database; The cloud service end allocates a backup storage area in the backup database based on the storage instruction, and stores the backup data in the backup storage area in the backup database; the storage address of the first storage area is associated with the backup storage address of the backup storage area; The updating government service data is compared with the government service data to generate a plurality of updated data, including: The updated government service data and the government service data are updated and compared according to preset comparison rules to obtain a number of updated data, wherein the preset comparison rules are rules for performing update comparison from the beginning and the end of the data of the updated government service data and the government service data respectively toward the inside; the preset comparison rules are rules for performing update comparison from the beginning and the end of the data of the updated government service data and the government service data respectively toward the inside.
7. A cloud server, comprising a processor and a memory, characterized in that: The processor runs a computer program or code stored in the memory to implement the government service data backup method as described in any one of claims 1 to 5.
8. A computer-readable storage medium for storing a computer program or code, characterized in that: When the computer program or code is executed by a processor, the government service data backup method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data recovery method, device and apparatus and computer readable storage medium
CN110389863A
Data backup method and device and data recovery method and device
CN114036004A