Data management method, device, electronic device and storage medium

By receiving backup notifications from the client and obtaining log files, and sending backup notifications to the cloud and off-site devices, it solves the problem of data interruption caused by data center failures in the same city, realizes multi-level backup of data, and avoids resource and property losses.

CN113742138BActive Publication Date: 2024-08-23SHENZHEN UMOUSE TECH DEV
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202111047293.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-06
Publication Date
2024-08-23
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

Business data interruption and data loss caused by data center failure in the same city. Existing disaster recovery solutions cannot effectively avoid resource and property losses when the data center in the same city fails.

Method used

By receiving backup notifications from the client, obtaining log files and updating data, and sending backup notifications to cloud and off-site devices, multi-level backup of local devices is realized, ensuring that lost data can be obtained from cloud and off-site devices when local equipment fails.

Benefits of technology

It realizes multi-level backup of user data, avoids resource and property losses caused by business data interruption, and ensures data security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742138B
    Figure CN113742138B
Patent Text Reader

Abstract

The present invention discloses a data management method, device, electronic device and storage medium. The method includes: receiving a first backup notification sent by a user end, and obtaining a first log file of the user end; updating data of a local device according to the first log file, and sending a second backup notification to a cloud device and a remote device; sending a second log file of the local device to the cloud device and the remote device, so that when data of the cloud device is updated according to the second log file, data of the remote device is updated according to the second log file. The embodiment of the present invention backs up data of the cloud device and the remote device through the second log file corresponding to the local device, so that when data loss occurs on the user end and the local device fails, the lost data of the user end can also be obtained from the cloud device and the remote device, thereby avoiding the loss of resources and property caused by business data interruption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a data management method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of information technology, the importance of big data has become increasingly prominent. When server viruses invade, hardware fails or natural disasters occur, data loss will occur to varying degrees. In order to prevent data loss, disaster recovery is carried out in the form of data backup. The existing disaster recovery plan is to back up data based on local databases and data centers in the same city. However, once a data center in the same city fails, the data stored in the data center in the same city and the backup data will be inaccessible, which may cause business data interruption, or even data loss and other immeasurable resource and property losses. Summary of the invention

[0003] The present invention provides a data management method, device, electronic device and storage medium, which solve the problem of business data interruption caused by failure of a data center in the same city and realize multi-level backup of local data at the user end.

[0004] In a first aspect, an embodiment of the present invention provides a data management method, the method comprising:

[0005] Receive a first backup notification sent by the user terminal, and obtain a first log file of the user terminal;

[0006] Update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device;

[0007] Sending a second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file;

[0008] Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0009] Further, the receiving the first backup notification sent by the terminal and obtaining the first log file includes:

[0010] The first log file within a preset time period is obtained according to the time when the first backup notification is received.

[0011] Further, sending the second backup notification to the remote device includes:

[0012] Determining a backup area of ​​the local device;

[0013] Determining a disaster feature of the local device according to a backup area of ​​the local device;

[0014] A device whose disaster characteristics do not exist in the local device among the disaster characteristics corresponding to each device is selected as a remote device, and a second backup notification is sent to the remote device.

[0015] Further, the determining the backup area of ​​the local device includes:

[0016] The backup area of ​​the local device is determined according to the location information of the user terminal corresponding to the received first backup notification.

[0017] Furthermore, after updating the data of the cloud device and the remote device according to the log file of the local device, the method further includes:

[0018] receiving a data loss message sent by the user terminal, and determining whether data corresponding to the data loss message exists in the local device;

[0019] When the data corresponding to the data loss message does not exist in the local device, the data loss message is sent to the cloud device and the remote device to obtain the data corresponding to the data loss message.

[0020] Furthermore, sending the data loss message to the cloud device and the remote device to obtain data corresponding to the data loss message includes:

[0021] Sending the data loss message to the cloud device and the remote device, so that the first lost data obtained from the cloud device according to the data loss message is sent to the local device, and the second lost data obtained from the remote device according to the data loss message is sent to the local device;

[0022] receiving the first lost data and the second lost data, and determining whether the first lost data and the second lost data are consistent;

[0023] When the first lost data is consistent with the second lost data, the data corresponding to the data loss message is restored.

[0024] In a second aspect, an embodiment of the present invention further provides a data management device, the device comprising:

[0025] A log acquisition module, used to receive a first backup notification sent by a user terminal and acquire the first log file;

[0026] A second backup module, used to update data on a local device according to the first log file, and send a second backup notification to a cloud device and a remote device;

[0027] A data update module, used to send the second log file to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file.

[0028] Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0029] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0030] one or more processors;

[0031] a storage device for storing one or more programs,

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the data management method as described above.

[0033] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the data management method as described above when the program is executed by a processor.

[0034] The embodiment of the present invention receives a first backup notification sent by a user terminal and obtains a first log file of the user terminal; updates data on a local device according to the first log file, and sends a second backup notification to a cloud device and an off-site device; sends a second log file of the local device to the cloud device and the off-site device, so that when data on the cloud device is updated according to the second log file, data on the off-site device is updated according to the second log file. The embodiment of the present invention solves the problem of business data interruption caused by failure of a local device, realizes multi-level backup of local data on the user terminal, and backs up data on the cloud device and off-site devices through the second log file corresponding to the local device, so that when data loss occurs on the user terminal and a local device fails, the lost data of the user terminal can also be obtained from the cloud device and the off-site device, thereby avoiding the loss of resources and property caused by business data interruption. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a flow chart of a data management method provided by an embodiment of the present invention;

[0036] Figure 2 is another flow chart of the data management method provided by an embodiment of the present invention;

[0037] Figure 3 is a structural diagram of a data management device provided by an embodiment of the present invention;

[0038] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0040] Figure 1 The present invention provides a flow chart of a data management method according to an embodiment of the present invention. The method can be executed by a data management device according to an embodiment of the present invention. The device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in an electronic device, such as a server. The following embodiments will be described by taking the device integrated in an electronic device as an example. Figure 1 , the method may specifically include the following steps:

[0041] Step 110: receiving a first backup notification sent by a user terminal, and obtaining a first log file of the user terminal;

[0042] For example, the user end can be understood as a program that provides local services and cooperates with the server, which can be installed on an ordinary electronic device. The first backup notification can be understood as a data backup notification sent to the local device after the local database of the user end is updated, which is used to indicate that the user end needs to back up data. Among them, the triggering condition for sending the first backup notification can be set according to demand. It can be that the local database of the user end is updated to trigger the first backup notification of the user end; it can also be a data backup notification sent regularly at a preset time point in any time period according to actual needs, such as: sending the first backup notification at midnight every day; it can also be that the size of the memory occupied by the data reaches a certain threshold when the local database of the user end is updated to trigger the user end to send the first backup notification. When the first backup notification is that the local data of the user end is updated to trigger the first backup notification of the user end, data backup can be performed in real time; when the first backup notification is that the data backup notification is sent regularly at a preset time point in any time period according to actual needs, data backup can be performed regularly; when the first backup notification is that the size of the memory occupied by the data reaches a certain threshold when the local database of the user end is updated to trigger the user end to send the first backup notification, large data can be backed up in time to avoid losses. The first log file can be understood as a record file that records local database operation events on the user side, and has the function of tracking historical data and diagnosing storage problems.

[0043] In a specific implementation, when the data update status of the local data of the user terminal meets the triggering condition of the first backup notification, the user terminal sends the first backup notification to the local device, which is used to indicate that the local device needs to back up the data of the user terminal. The local device obtains the first log file corresponding to the local database of the user terminal according to the first backup notification, determines the data that needs to be backed up according to the first log file, and backs up the data corresponding to the first log file in the local device.

[0044] Step 120: update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device;

[0045] For example, the local device can be understood as a storage device that belongs to the same geographical area as the user terminal, and is used to store the backup data of all user terminals in the geographical area. It can be a device that stores data in a data backup system established in the same city, and can use the intranet for transmission to increase the backup speed. The second backup notification can be understood as a data backup notification sent by the local device to the cloud device and the remote device after the data is updated, which is used to indicate that the cloud device and the remote device need to perform data backup. The cloud device can be understood as a third-party virtual server with an online storage mode. Through the application, different types of storage devices can work together, and can provide data storage functions for local devices. It can be conveniently stored from the cloud without restrictions on time and location, such as: Baidu Cloud Disk, etc. The remote device can be understood as a storage device in the geographical area where the user terminal does not belong, which is used to perform remote data backup of the data stored in the local device to avoid data loss caused by natural disasters.

[0046] In a specific implementation, the local device obtains the first log file corresponding to the local database of the user end according to the first backup notification, determines the data to be backed up according to the first log file, and backs up the data corresponding to the first log file in the local device. After the data corresponding to the first log file is backed up in the local device, a second backup notification is sent to the cloud device and the remote device; wherein, if the data update status of the local device meets the triggering condition of the second backup notification, the local device sends the second backup notification to the cloud device and the remote device to instruct the cloud device and the remote device to back up the data of the local device.

[0047] Step 130: Send the second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is also updated with data according to the second log file.

[0048] For example, the second log file can be understood as a record file that records the local database operation events of the local device, which has the function of tracking historical data and diagnosing storage problems. The record file that records the user end updating the local device according to the first log file can use the second log file to update the update data of the local device to the cloud device and the remote device.

[0049] In a specific implementation, after the data corresponding to the first log file is backed up in the local device, a second backup notification is sent to the cloud device and the remote device. The cloud device and the remote device generate an acquisition instruction based on the second backup notification and send it to the local device. The local device sends the second log file to the cloud device and the remote device based on the acquisition instruction. While updating the data of the cloud device based on the second log file, the data of the remote device is updated based on the second log file to complete the data update of the cloud device and the remote device. This makes the data stored in the local database of the user end have three backup data, namely, data backup of the cloud device on the network, data backup of the remote device in different geographical areas, and data backup of the local device in the same geographical area. Multi-level data backup is realized, avoiding the loss of resources and property caused by business data interruption.

[0050] The embodiment of the present invention receives a first backup notification sent by a user terminal and obtains a first log file of the user terminal; updates data on a local device according to the first log file, and sends a second backup notification to a cloud device and an off-site device; sends a second log file of the local device to the cloud device and the off-site device, so that when data on the cloud device is updated according to the second log file, data on the off-site device is updated according to the second log file. The embodiment of the present invention solves the problem of business data interruption caused by failure of a local device, realizes multi-level backup of local data on the user terminal, and backs up data on the cloud device and the off-site device through the second log file corresponding to the local device, so that when data loss occurs on the user terminal and a local device fails, the lost data of the user terminal can also be obtained from the cloud device and the off-site device, thereby avoiding the loss of resources and property caused by business data interruption.

[0051] The data management method provided by the embodiment of the present invention is further described below. Figure 2 As shown, the method may specifically include the following steps:

[0052] Step 210: receiving a first backup notification sent by a user terminal, and acquiring the first log file within a preset period according to the time when the first backup notification is received;

[0053] For example, the time of the first backup notification can be understood as the specific time when the local database of the user terminal starts to update data, which is used to determine the content of the log file corresponding to the local database according to the time of the first backup notification. The preset period can be understood as the length of time set according to actual needs starting from the time of the first backup notification, which is used to determine the log file of the local database of the user terminal within the preset time period starting from the time of the first backup notification as the first log file.

[0054] In a specific implementation, a local device receives a first backup notification sent by a user terminal, and based on the time of the first backup notification and a preset time period, determines to obtain a log file corresponding to a total length of the preset time period starting from the time of the first backup notification from the log file of the local database of the user terminal as the first log file, which is used to back up data of the local device based on the first log file.

[0055] Step 220: update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device;

[0056] Step 230: Send the second log file to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0057] In a specific implementation, after the data corresponding to the first log file is backed up in the local device, a second backup notification is sent to the cloud device and the remote device, and a second log file is sent to the cloud device. The cloud device is updated according to the second log file, and the updated data of the cloud device is obtained after the data update is completed. The local device sends the same second backup notification to the cloud device and the remote device. The cloud device and the remote device have the same data content to be updated. When the second log file completes the data update of the cloud device, data mirroring can be performed according to the updated data of the cloud device, and the updated data in the cloud device can be synchronized to the remote device for data update, so that the data stored in the local database of the user end has three backup data, namely, the data backup of the cloud device on the network, the data backup of the remote device in different geographical areas, and the data backup of the local device in the same geographical area, realizing multi-level data backup and avoiding the loss of resources and property caused by business data interruption. Among them, the updated data can be understood as the data updated to the cloud device according to the second log file.

[0058] Further, sending the second backup notification to the remote device specifically includes:

[0059] Determining a backup area of ​​the local device;

[0060] Determining a disaster feature of the local device according to a backup area of ​​the local device;

[0061] A device whose disaster characteristics do not exist in the local device among the disaster characteristics corresponding to each device is selected as a remote device, and a second backup notification is sent to the remote device.

[0062] For example, the backup area of ​​the local device can be understood as the installation geographical area corresponding to the local database of the user end that the local device needs to back up. The disaster characteristics of the local device can be understood as the characteristics of disasters that have occurred in the geographical area where the local device is located or the service range of the server. It can be the characteristics of natural disasters, such as: disaster characteristics corresponding to earthquakes, disaster characteristics corresponding to floods; it can also be the characteristics of human operational errors, such as: trace characteristics after data deletion; it can also be the characteristics of hardware failures and virus invasions. Each device can be understood as a device that communicates with the local device or has a communication address with the service center of the local device.

[0063] In a specific implementation, the backup area of ​​the local device is determined according to the receiving range of the first backup notification, that is, the data in the local database of all user terminals in the backup area is stored to perform data backup in the same city, and the disaster characteristics that appear in the backup area of ​​the local device are determined according to the backup area of ​​the local device. Devices that do not have the disaster characteristics of the local device among the disaster characteristics corresponding to each device are selected as off-site devices, so as to avoid the situation where the off-site device and the local device have the same disaster as the local device. The data stored in the local device can be backed up by the off-site device, and the backup data can be obtained from the off-site device for data recovery when a disaster occurs.

[0064] Further, the determining the backup area of ​​the local device specifically includes:

[0065] The backup area of ​​the local device is determined according to the location information of the user terminal corresponding to the received first backup notification.

[0066] In a specific implementation, the location information of the user terminal can be understood as the geographical location information of the electronic device where the user terminal is installed. The local device receives the first backup notification sent by the user terminal, determines the geographical area where the local device receives the first backup notification from the user terminal according to the geographical location information of the electronic device where the user terminal is installed, and uses the geographical area where the local device receives the first backup notification from the user terminal as the backup area of ​​the local device.

[0067] Furthermore, after updating the data of the cloud device and the remote device according to the log file of the local device, the method further includes:

[0068] receiving a data loss message sent by the user terminal, and determining whether data corresponding to the data loss message exists in the local device;

[0069] When the data corresponding to the data loss message does not exist in the local device, the data loss message is sent to the cloud device and the remote device to obtain the data corresponding to the data loss message.

[0070] For example, the data loss message can be understood as a data loss notification sent by the local database of the user terminal to the local device, which is used to indicate the name of the data lost by the user terminal to the local device.

[0071] In a specific implementation, a local device receives a data loss message sent by a user terminal, determines the name of the data lost by the user terminal according to the data loss message, determines whether there is data corresponding to the data loss message in the local device according to the name of the lost data, and when there is data corresponding to the data loss message in the local device, data is restored to the local database of the user terminal according to the data corresponding to the data loss message; when there is no data corresponding to the data loss message in the local device, the data loss message is sent to a cloud device and a remote device to obtain the data corresponding to the data loss message to restore the local database of the local device, and data is restored to the local database of the user terminal according to the data corresponding to the data loss message.

[0072] Furthermore, sending the data loss message to the cloud device and the remote device to obtain data corresponding to the data loss message includes:

[0073] Sending the data loss message to the cloud device and the remote device, so that the first lost data obtained from the cloud device according to the data loss message is sent to the local device, and the second lost data obtained from the remote device according to the data loss message is sent to the local device;

[0074] receiving the first lost data and the second lost data, and determining whether the first lost data and the second lost data are consistent;

[0075] When the first lost data is consistent with the second lost data, the data corresponding to the data loss message is restored.

[0076] For example, the first lost data may be understood as data corresponding to the data lost message determined from the cloud device according to the data lost message. The second lost data may be understood as data corresponding to the data lost message determined from the remote device according to the data lost message.

[0077] In a specific implementation, when the data corresponding to the data loss message does not exist in the local device, the data loss message is sent to the cloud device and the remote device, and the first loss message is obtained from the cloud device to the local device according to the data loss message, and the second loss message is obtained from the remote device to the local device according to the data loss message. The local device compares the first lost data with the second lost data to determine whether the first lost data and the second lost data are consistent. When the first lost data and the second lost data are consistent, it means that the data may not be tampered with and can be used for data recovery, and the data corresponding to the data loss message is recovered according to the first lost data or the second lost data; when the first lost data and the second lost data are inconsistent, it means that the data has been tampered with and cannot be used for data recovery, and even if the data is recovered, it is not the original data.

[0078] The embodiment of the present invention receives a first backup notification sent by a user terminal and obtains a first log file; updates data on a local device according to the first log file, and sends a second backup notification to a cloud device and an off-site device; sends a second log file to the cloud device and the off-site device, so that when data on the cloud device is updated according to the second log file, data on the off-site device is updated according to the second log file. The embodiment of the present invention solves the problem of business data interruption caused by failure of a local device, realizes multi-level backup of local data on the user terminal, and backs up data on the cloud device and off-site devices through the second log file corresponding to the local device, so that when data loss occurs on the user terminal and a local device fails, the lost data of the user terminal can also be obtained from the cloud device and the off-site device, avoiding the loss of resources and property caused by business data interruption.

[0079] Figure 3 is a schematic diagram of the structure of a data management device provided by an embodiment of the present invention, such as Figure 3 As shown, the data management device includes:

[0080] The log acquisition module 310 is used to receive the first backup notification sent by the terminal and obtain the first log file of the user terminal;

[0081] A second backup module 320, configured to update data on a local device according to the first log file, and send a second backup notification to a cloud device and a remote device;

[0082] A data updating module 330 is used to send a second log file of a local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file;

[0083] Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0084] In one embodiment, the log acquisition module 310 receives the first backup notification sent by the terminal and acquires the first log file, including:

[0085] The first log file within a preset time period is obtained according to the time when the first backup notification is received.

[0086] In one embodiment, the second backup module 320 sends a second backup notification to the remote device, including:

[0087] Determining a backup area of ​​the local device;

[0088] Determining a disaster feature of the local device according to a backup area of ​​the local device;

[0089] A device whose disaster characteristics do not exist in the local device among the disaster characteristics corresponding to each device is selected as a remote device, and a second backup notification is sent to the remote device.

[0090] In one embodiment, the second backup module 320 determines the backup area of ​​the local device, including:

[0091] The backup area of ​​the local device is determined according to the location information of the terminal corresponding to the received first backup notification.

[0092] In one embodiment, after the data updating module 330 updates the data of the cloud device and the remote device according to the log file of the local device, it also includes:

[0093] receiving a data loss message sent by the terminal, and determining whether data corresponding to the data loss message exists in the local device;

[0094] When the data corresponding to the data loss message does not exist in the local device, the data loss message is sent to the cloud device and the remote device to obtain the data corresponding to the data loss message.

[0095] In one embodiment, the data update module 330 sends the data loss message to the cloud device and the remote device to obtain data corresponding to the data loss message, including:

[0096] Sending the data loss message to the cloud device and the remote device, so that the first lost data obtained from the cloud device according to the data loss message is sent to the local device, and the second lost data obtained from the remote device according to the data loss message is sent to the local device;

[0097] receiving the first lost data and the second lost data, and determining whether the first lost data and the second lost data are consistent;

[0098] When the first lost data is consistent with the second lost data, the data corresponding to the data loss message is restored.

[0099] The device embodiment of the present invention receives a first backup notification sent by the user end and obtains a first log file of the user end; updates data on the local device according to the first log file, and sends a second backup notification to the cloud device and the remote device; sends the second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with the second log file, the remote device is updated with the second log file. The embodiment of the present invention solves the problem of business data interruption caused by failure of the local device, realizes multi-level backup of the local data of the user end, and backs up the cloud device and the remote device with the second log file corresponding to the local device, so that when data loss occurs on the user end and the local device fails, the lost data of the user end can also be obtained from the cloud device and the remote device, avoiding the loss of resources and property caused by business data interruption.

[0100] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0101] like Figure 4 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0102] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0103] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0104] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0105] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0106] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the device / terminal / server to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0107] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing the data management method provided in the embodiment of the present invention, which includes:

[0108] Receive a first backup notification sent by the user terminal, and obtain a first log file of the user terminal;

[0109] Update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device;

[0110] Sending a second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file;

[0111] Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0112] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the data management method as described above is implemented. The method includes:

[0113] Receive a first backup notification sent by the user terminal, and obtain a first log file of the user terminal;

[0114] Update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device;

[0115] Sending a second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file;

[0116] Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update.

[0117] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0118] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0119] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0120] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0121] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A data management method, characterized in that: include: Receive a first backup notification sent by the user terminal, and obtain a first log file of the user terminal; Update data on the local device according to the first log file, and send a second backup notification to the cloud device and the remote device; Sending a second log file of the local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file; Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update; Among them, sending a second backup notification to an off-site device includes: determining the backup area of ​​the local device; determining the disaster characteristics of the local device based on the backup area of ​​the local device; selecting a device whose disaster characteristics do not exist in the disaster characteristics corresponding to each device as an off-site device, and sending a second backup notification to the off-site device.

2. The method according to claim 1, characterized in that The receiving the first backup notification sent by the user terminal and obtaining the first log file includes: The first log file within a preset time period is obtained according to the time when the first backup notification is received.

3. The method according to claim 1, characterized in that The determining the backup area of ​​the local device includes: The backup area of ​​the local device is determined according to the location information of the user terminal corresponding to the received first backup notification.

4. The method according to claim 1, characterized in that: When the data of the cloud device is updated according to the second log file, after the data of the remote device is updated according to the second log file, the method further includes: receiving a data loss message sent by the user terminal, and determining whether data corresponding to the data loss message exists in the local device; When the data corresponding to the data loss message does not exist in the local device, the data loss message is sent to the cloud device and the remote device to obtain the data corresponding to the data loss message.

5. The method according to claim 4, characterized in that The sending the data loss message to the cloud device and the remote device to obtain data corresponding to the data loss message includes: Sending the data loss message to the cloud device and the remote device, so that the first lost data obtained from the cloud device according to the data loss message is sent to the local device, and the second lost data obtained from the remote device according to the data loss message is sent to the local device; receiving the first lost data and the second lost data, and determining whether the first lost data and the second lost data are consistent; When the first lost data is consistent with the second lost data, the data corresponding to the data loss message is restored.

6. A data management device, characterized in that: include: A log acquisition module, used to receive a first backup notification sent by a user terminal and acquire a first log file of the user terminal; A second backup module, used to update data on a local device according to the first log file, and send a second backup notification to a cloud device and a remote device; A data update module, used for sending a second log file of a local device to the cloud device and the remote device, so that when the cloud device is updated with data according to the second log file, the remote device is updated with data according to the second log file; Alternatively, the second log file is sent to the cloud device, so that when the cloud device updates data according to the second log file to obtain updated data, the updated data is synchronized to the remote device for data update; The second backup module is specifically used to determine the backup area of ​​the local device; determine the disaster characteristics of the local device according to the backup area of ​​the local device; A device whose disaster characteristics do not exist in the local device among the disaster characteristics corresponding to each device is selected as a remote device, and a second backup notification is sent to the remote device.

7. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the data management method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data management method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Platform data remote backup method

    CN106603635A

  • Information backup method, apparatus and device

    CN108958971A

  • Data synchronization method and device, apparatus and storage medium

    CN109033268A

  • Database backup system

    CN109388525A

  • A method and system for bidirectional synchronization of remote data

    CN109522364A