Data copying methods, apparatus, electronic devices and storage media

By establishing a mapping relationship between the management server and the front-end server, a virtualized mirror database is created, which solves the problems of long database replication time, resource waste and high cost in the existing technology, and realizes fast and low-cost data replication and synchronization.

CN115878385BActive Publication Date: 2026-11-10BEIJING TEAMSUN TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211698572.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-11-10
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Existing database replication technologies suffer from problems such as long data recovery times, high bandwidth and latency requirements, complex operation, resource waste, and high costs.

Method used

By establishing a mapping relationship between the management server and the front-end server, a virtualized image database is created, and data is backed up to the target virtualized image database during business data processing, enabling rapid data replication and synchronization.

Benefits of technology

It enables rapid data recovery and synchronization, reduces bandwidth and latency requirements, simplifies operation processes, reduces resource waste, and lowers costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115878385B_ABST
    Figure CN115878385B_ABST
Patent Text Reader

Abstract

This invention discloses a data replication method, apparatus, electronic device, and storage medium. The method includes: acquiring business data; determining a target virtualized mirror database corresponding to the original business database used to store the business data by searching a preset mapping relationship between multiple original business databases and multiple virtualized mirror databases; and backing up the acquired business data to the target virtualized mirror database. The technical solution provided by this invention is applicable to business database backup or migration scenarios and can solve the problem of long data recovery times in such scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more particularly to data copying methods, apparatus, electronic devices, and storage media. Background Technology

[0002] In current database applications, it is often necessary to replicate a specific business database, such as for training simulations, experimental operations, or backups. Furthermore, some business databases may be migrated for reasons such as cost, compatibility, and domestic alternatives, and this migration process also requires data replication.

[0003] Existing solutions primarily use data backup tools or disk array replication software to complete data replication, which has the following drawbacks:

[0004] 1. Long data loss / recovery time

[0005] Using data backup tools to copy data takes a long time, resulting in a long recovery time, which cannot meet the requirements of rapid high availability;

[0006] 2. High bandwidth and latency requirements for replication links.

[0007] Using disk array replication software to replicate data places high demands on the bandwidth and latency of the replication link. Before achieving high availability, storage consolidation and data migration are required, which leads to resource waste and high costs.

[0008] 3. Complex operation of multiple business functions

[0009] Multiple business units need to replicate data separately, and the management of multiple business units also needs to be considered, which increases complexity. Summary of the Invention

[0010] In view of this, embodiments of the present invention provide a data copying method, apparatus, electronic device, and storage medium to solve the problem of long data recovery time in the prior art.

[0011] In a first aspect, embodiments of the present invention provide a data replication method applied to a front-end server, the method comprising:

[0012] Obtain business data;

[0013] By finding the mapping relationship between multiple preset original business databases and multiple virtualization image databases, the target virtualization image database corresponding to the original business database used to store the business data is determined.

[0014] The acquired business data is backed up to the target virtualization image database.

[0015] Furthermore, the method also includes:

[0016] Obtain the mapping relationship between multiple original business databases and multiple virtualized image databases from the management server.

[0017] Furthermore, by finding the mapping relationship between multiple preset original business databases and multiple virtualization image databases, the target virtualization image database corresponding to the original business database used to store the business data is determined, including:

[0018] Use the original business database identifier used to store the business data as the data access source identifier, and find the corresponding physical mirror database identifier and virtualization database identifier;

[0019] Based on the search results, the target virtualization image database corresponding to the original business database used to store the business data is determined.

[0020] Furthermore, the acquisition of business data includes: receiving business data generated during business processing;

[0021] The method further includes storing the acquired business data into the corresponding original business database.

[0022] Secondly, embodiments of the present invention provide another data replication method applied to a management server, the method comprising:

[0023] Create virtualized mirror databases for multiple original business databases;

[0024] Obtain the mapping relationship between multiple original business databases and multiple virtualized image databases;

[0025] The obtained mapping relationship is sent to the front-end server, so that the front-end server: determines the target virtualized image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualized image database.

[0026] Furthermore, the mapping relationships between multiple original business databases and multiple virtualized image databases are obtained, including:

[0027] Establish the correspondence between multiple data access source identifiers, multiple physical image database identifiers, and multiple virtualized database identifiers;

[0028] The established correspondence will serve as a mapping relationship between multiple original business databases and multiple virtualized image databases.

[0029] Furthermore, the method also includes:

[0030] The obtained mapping relationship is sent to the backend server so that the backend server can synchronize the data in the original business database and the corresponding virtualized image database according to the mapping relationship.

[0031] Furthermore, the method also includes:

[0032] The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database.

[0033] Thirdly, embodiments of the present invention provide a data replication apparatus applied to a front-end server, the apparatus comprising:

[0034] The data acquisition unit is used to acquire business data;

[0035] The database determination unit is used to determine the target virtualization image database corresponding to the original business database used to store the business data by searching the mapping relationship between multiple preset original business databases and multiple virtualization image databases.

[0036] The data backup unit is used to back up the acquired business data to the target virtualization image database.

[0037] Furthermore, the device also includes a mapping relationship acquisition unit, used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases from the management server.

[0038] Furthermore, the database determination unit is used to determine the target virtualization image database corresponding to the original business database used to store the business data by searching for a preset mapping relationship between multiple original business databases and multiple virtualization image databases, including:

[0039] Use the original business database identifier used to store the business data as the data access source identifier, and find the corresponding physical mirror database identifier and virtualization database identifier;

[0040] Based on the search results, the target virtualization image database corresponding to the original business database used to store the business data is determined.

[0041] Furthermore, the data acquisition unit is used to acquire business data, including: receiving business data generated during business processing;

[0042] The device also includes a data storage unit for storing the acquired business data into the corresponding original business database.

[0043] Fourthly, embodiments of the present invention provide another data replication apparatus applied to a management server, the apparatus comprising:

[0044] The database creation unit is used to create virtualized mirror databases for multiple original business databases;

[0045] The mapping relationship acquisition unit is used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases;

[0046] The mapping relationship sending unit is used to send the obtained mapping relationship to the front-end server, so that the front-end server: determines the target virtualized image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualized image database.

[0047] Furthermore, the mapping relationship acquisition unit is used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases, including:

[0048] Establish the correspondence between multiple data access source identifiers, multiple physical image database identifiers, and multiple virtualized database identifiers;

[0049] The established correspondence will serve as a mapping relationship between multiple original business databases and multiple virtualized image databases.

[0050] Furthermore, the mapping relationship sending unit is also used to: send the obtained mapping relationship to the backend server, so that the backend server: synchronizes the data in the original business database and the corresponding virtualization image database according to the mapping relationship.

[0051] Furthermore, the device also includes a database usage sending unit, used for:

[0052] The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database.

[0053] Fifthly, embodiments of the present invention provide an electronic device, the electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed within a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the data copying method described in the first aspect above, or executing the data copying method described in the second aspect above.

[0054] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing one or more programs, which can be executed by one or more central processing units to implement the data copying method described in the first aspect or the data copying method described in the second aspect. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a network architecture applicable to the data replication method in this embodiment of the invention;

[0057] Figure 2 A flowchart of a data copying method provided in an embodiment of the present invention;

[0058] Figure 3 A flowchart of another data copying method provided in an embodiment of the present invention;

[0059] Figure 4 This is a schematic diagram of a data copying device provided in an embodiment of the present invention;

[0060] Figure 5 This is a schematic diagram of another data copying device provided in an embodiment of the present invention;

[0061] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0062] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

[0063] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0064] First, the network architecture applicable to the data replication method provided in this embodiment of the invention will be described. See [link to relevant documentation]. Figure 1 The network architecture includes: a front-end server 101, a management server 102, and a back-end server 103. Among them:

[0065] Front-end server 101 manages multiple raw business databases used to store business data, and responds to requests for access and modification of the raw business databases. For example, after receiving business data generated during business processing, it stores it in the corresponding raw business database; and backs up business data that has been stored and will be stored in the raw business database to the corresponding virtualization image database.

[0066] Management Server 102 – Creates virtualized mirror databases for multiple original business databases, establishes and maintains the mapping relationship between multiple original business databases and multiple virtualized mirror databases, and distributes them to front-end servers and back-end servers; manages multiple businesses, and when the original business database of a certain business encounters a problem, it directly switches to the virtualized mirror database to provide data services;

[0067] Backend server 103 is responsible for comparing the data in the original business database with the corresponding virtualized image database to ensure that the data in the original database and the corresponding virtualized image database remain synchronized.

[0068] Example 1

[0069] This embodiment provides a data replication method, which can be executed by a corresponding data replication device, and this device can be integrated into, for example, a data replication device. Figure 1 The network architecture shown is a front-end server. See also Figure 2 The data copying method includes the following steps 201-203.

[0070] Step 201: Obtain business data.

[0071] In step 201, the business data refers to data generated during business processing, which can be generated by the business processing module and then sent to the front-end server for storage. The business processing module can be a module within a separate business processing system deployed independently of the front-end server, or it can be a functional module built into the front-end server. Furthermore, the acquired business data can be data generated during business processing and to be stored in the corresponding original business database, or it can be business data read from the original business database.

[0072] Step 202: By finding the mapping relationship between multiple preset original business databases and multiple virtualization image databases, determine the target virtualization image database corresponding to the original business database used to store the business data.

[0073] In this embodiment, the mapping relationship between multiple original business databases and multiple virtualized image databases can be obtained in advance from the management server. Different original business databases correspond to different virtualized image databases, and one original business database can correspond to multiple virtualized image databases for different purposes. For example, one original business database corresponds to two virtualized image databases, one for data backup and the other for experimental testing. The virtualized image database is a virtual database, and its type can be different from the original business database, offering superior performance.

[0074] For example, the mapping relationship is represented by the correspondence between the data access source identifier, the physical mirror database identifier, and the virtualization database identifier. The data access source identifier uniquely represents the original database; the physical mirror database, like the original database, is a database in a physical sense. Multiple databases (referred to as virtualization databases) can be further virtualized on a single physical mirror database. The physical mirror database identifier and the virtualization database identifier together uniquely represent a virtualization mirror database. Accordingly, step 202 can specifically include: using the original business database identifier used to store the business data as the data access source identifier, searching for the corresponding physical mirror database identifier and virtualization database identifier in the mapping relationship; and determining the target virtualization mirror database corresponding to the original business database used to store the business data based on the search results.

[0075] Step 203: Back up the acquired business data to the target virtualization image database.

[0076] In step 203, when there are multiple target virtualization image databases, the acquired business data is backed up to each of them. If the target virtualization image database and the original business database are of different types, and the business data in step 201 was obtained from the original business database, then a data structure conversion is also required during the backup process to convert the business data in the original business database into a data structure that can be recognized by the target virtualization image database.

[0077] Furthermore, in step 201, acquiring business data includes receiving business data generated during business processing. Correspondingly, the data replication method in this embodiment further includes storing the acquired business data into the corresponding original business database. The determination of the correspondence between the business data to be stored and the original business databases managed by the front-end server is existing technology and will not be elaborated here.

[0078] It should be noted that the data replication method provided in this embodiment can first back up the existing business data in each original business database to the corresponding target virtualization image database. After receiving new business data, the business data is stored in the corresponding original business database and backed up to the corresponding target virtualization image database at the same time.

[0079] Optionally, the data replication method provided in this embodiment further includes: receiving a deletion request for the original business database sent during business processing; deleting business data in the original business database and its corresponding target virtual machine image database according to the deletion request; and / or,

[0080] Receive modification requests for the original business database sent during business processing; modify the business data in the original business database and its corresponding target virtual machine image database according to the modification requests.

[0081] Based on the above solutions, the data replication method provided in this embodiment further includes: receiving an original business database switching instruction from the management server; setting the target virtual machine image database corresponding to the original business database specified by the switching instruction as the new business database, so that upon receiving an operation request for the original business database sent during business processing, the new business database is operated according to the operation request, and no further operations on the original business database are performed. The operation request includes: adding, deleting, modifying, and searching business data in the original business database.

[0082] Example 2

[0083] This embodiment provides a data replication method, which can be used in conjunction with the data replication method provided in Embodiment 1 above to jointly complete the backup and management of a business database. The data replication method in this embodiment can be executed by another corresponding data replication device, which can be integrated into, for example... Figure 1 The management server in the network architecture shown. See also Figure 3 The method includes the following steps:

[0084] Step 301: Create virtualized mirror databases for multiple original business databases.

[0085] In step 301, the original business database is the actual physical database used to store business data. Typically, the front-end server responds to operation requests for the stored business data initiated during business processing, based on the original business database. The virtualized image database is a virtual database; this database type may differ from the original business database type and offers superior performance. Different original business databases correspond to different virtualized image databases, and one original business database can correspond to multiple virtualized image databases for different purposes. For example, one original business database may correspond to two virtualized image databases, one for data backup and the other for experimental testing.

[0086] Step 302: Obtain the mapping relationship between multiple original business databases and multiple virtualized image databases.

[0087] For example, the mapping relationship is represented by the correspondence between data access source identifiers, physical mirror database identifiers, and virtualization database identifiers. Accordingly, step 302 may specifically include: establishing a correspondence between multiple data access source identifiers, multiple physical mirror database identifiers, and multiple virtualization database identifiers; and using the established correspondence as a mapping relationship between multiple original business databases and multiple virtualization mirror databases.

[0088] The data access source identifier uniquely identifies the original database. The physical mirror database, like the original database, is a database in a physical sense. Multiple databases (referred to as virtualized databases) can be further virtualized on a single physical mirror database. The physical mirror database identifier and the virtualized database identifier together uniquely identify a virtualized mirror database. The mapping relationship can be pre-established by those skilled in the art according to actual needs and then stored on the management server.

[0089] Step 303: Send the obtained mapping relationship to the front-end server so that the front-end server: determines the target virtualization image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualization image database.

[0090] The operations performed by the front-end server can be found in the relevant description of Embodiment 1 above, and will not be repeated here.

[0091] Based on the above scheme, the data replication method in this embodiment further includes: sending the obtained mapping relationship to the backend server so that the backend server: synchronizes the data in the original business database and the corresponding virtualization image database according to the mapping relationship.

[0092] Furthermore, the data copying method in this embodiment also includes:

[0093] The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database.

[0094] Furthermore, the data replication method in this embodiment also includes: switching to a virtualized image database to provide data services after a problem occurs with the original business database. The switching operation includes: sending an original business database switching instruction to the front-end server, so that the front-end server: sets the target virtual machine image database corresponding to the original business database specified by the switching instruction as the new business database, so that upon receiving an operation request for the original business database sent during business processing, it operates on the new business database according to the operation request, and no longer performs operations on the original business database. The operation request includes: adding, deleting, modifying, and searching business data in the original business database.

[0095] The following details the data synchronization scheme between the backend server and the original business database and the virtualized image database. In this embodiment of the invention, the backend server can perform synchronization operations using a periodically triggered method. This method includes: periodically comparing the business data in the original business database and the corresponding virtualized image database; if the comparison results are inconsistent, a data synchronization operation is initiated, modifying the virtualized image database to make the business data in that database identical to the business data in the original business database. Alternatively, in addition to the periodically triggered synchronization method, a conditionally triggered synchronization method can be further employed. This method includes: instructing the frontend server to simultaneously delete or modify the business data in the corresponding virtualized image database while deleting or modifying business data in the original database, thereby ensuring consistency of business data between the original database and the corresponding virtualized image database.

[0096] In a preferred implementation, the backend server selects different synchronization strategies based on the purpose of the virtualized image database to synchronize the virtualized image database with the corresponding data in the original business database. For example, if the virtualized image database is used for data backup, the synchronization operation is performed using both periodic triggering (triggered once every first time interval) and conditional triggering; if the virtualized image database is used for experimental testing, the synchronization operation is performed only using periodic triggering (triggered once every second time interval). The first time interval is shorter than the second time interval.

[0097] Typically, there are multiple virtualized image databases, including a first virtualized image database for data backup and a second virtualized image database for experimental testing. Correspondingly, the backend server performs synchronization operations, specifically including: periodically comparing the business data in the first and second virtualized image databases; if the comparison results are inconsistent, a data synchronization operation is initiated to modify the second virtualized image database so that the business data in that database is identical to the business data in the first virtualized image database.

[0098] Example 3

[0099] This embodiment provides a data copying device, which is implemented by software and / or hardware and integrated into a device such as... Figure 1 The front-end server in the network architecture shown. See also Figure 4 The device includes:

[0100] Data acquisition unit 401 is used to acquire business data;

[0101] The database determination unit 402 is used to determine the target virtualization image database corresponding to the original business database used to store the business data by searching the mapping relationship between a plurality of preset original business databases and a plurality of virtualization image databases.

[0102] The data backup unit 403 is used to back up the acquired business data to the target virtualization image database.

[0103] Furthermore, the data copying device in this embodiment also includes:

[0104] The mapping relationship acquisition unit 400 is used to obtain the mapping relationship between multiple original business databases and multiple virtualized image databases from the management server.

[0105] For example, the database determination unit 402 is used to determine the target virtualization image database corresponding to the original business database used to store the business data by searching for a preset mapping relationship between multiple original business databases and multiple virtualization image databases, including:

[0106] Use the original business database identifier used to store the business data as the data access source identifier, and find the corresponding physical mirror database identifier and virtualization database identifier;

[0107] Based on the search results, the target virtualization image database corresponding to the original business database used to store the business data is determined.

[0108] Based on the above scheme, the data acquisition unit 401 is used to acquire business data, including: receiving business data generated during business processing; correspondingly, the data copying device in this embodiment also includes a data storage unit 404, used to store the acquired business data into the corresponding original business database.

[0109] The data copying device provided in this embodiment belongs to the same inventive concept as the aforementioned method embodiment one. Technical details not described in this device embodiment can be found in the relevant descriptions in the aforementioned method embodiment one, and will not be repeated here.

[0110] Example 4

[0111] This embodiment provides a data copying device, which is implemented by software and / or hardware and integrated into a device such as... Figure 1 The management server in the network architecture shown. See also Figure 5 The device includes:

[0112] Database creation unit 501 is used to create virtualized mirror databases for multiple original business databases;

[0113] The mapping relationship acquisition unit 502 is used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases;

[0114] The mapping relationship sending unit 503 is used to send the obtained mapping relationship to the front-end server, so that the front-end server: determines the target virtualization image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualization image database.

[0115] For example, the mapping relationship acquisition unit 502 is used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases, including:

[0116] Establish the correspondence between multiple data access source identifiers, multiple physical image database identifiers, and multiple virtualized database identifiers;

[0117] The established correspondence will serve as a mapping relationship between multiple original business databases and multiple virtualized image databases.

[0118] Furthermore, the mapping relationship sending unit 502 is also used to: send the obtained mapping relationship to the backend server, so that the backend server: synchronizes the data in the original business database and the corresponding virtualization image database according to the mapping relationship.

[0119] Furthermore, the data replication apparatus in this embodiment also includes a database purpose sending unit 504, used for:

[0120] The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database.

[0121] The data copying device provided in this embodiment belongs to the same inventive concept as the aforementioned method embodiment two. Technical details not described in this device embodiment can be found in the relevant descriptions in the aforementioned method embodiment two, and will not be repeated here.

[0122] also, Figure 6This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention, which can implement the process of any method embodiment of the present invention. The electronic device may include: a housing 61, a processor 62, a memory 63, a circuit board 64, and a power supply circuit 65, wherein the circuit board 64 is disposed inside the space enclosed by the housing 61, and the processor 62 and the memory 63 are disposed on the circuit board 64; the power supply circuit 65 is used to supply power to various circuits or devices of the electronic device; the memory 63 is used to store executable program code; the processor 62 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 63, for executing the data copying method described in any of the foregoing embodiments.

[0123] For details on the specific execution process of the above steps by the processor 62 and the steps further executed by the processor 62 by running executable program code, please refer to the descriptions of Embodiment 1 and Embodiment 2 of the present invention, which will not be repeated here.

[0124] This electronic device has data copying capabilities and exists in various forms, including but not limited to:

[0125] (1) Mobile communication devices: These devices are characterized by having mobile communication functions and are primarily designed to provide voice and data communication. These terminals include: smartphones (such as iPhones), multimedia phones, feature phones, and low-end phones, etc.

[0126] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, have computing and processing functions, and generally also have mobile Internet access capabilities; these terminals include: PDA, MID and UMPC devices, such as iPad;

[0127] (3) Portable entertainment devices: These devices can display and play multimedia content; such devices include: audio and video players (e.g., iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices;

[0128] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0129] (5) Other electronic devices with data communication and processing functions.

[0130] Furthermore, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which can be executed by one or more central processing units to implement the data copying method described in any of the foregoing method embodiments.

[0131] The technical solution provided by the embodiments of the present invention has the following advantages:

[0132] 1. Implemented a database image similar to a virtual machine image, and the image is dynamic, which can meet the business continuity of multiple businesses under light business loads.

[0133] 2. The cleaned-up mirror can serve as the basis for further data migration, paving the way for reducing database dependence (such as adopting domestic databases in the future);

[0134] 3. When a certain service fails, it can be directly switched to the mirror service. This realizes the mirror operation at the database / service level, which is different from the simple mirroring of virtual machines. This meets the dynamic requirements of the business.

[0135] 4. It lays the foundation for further processing of user data, helping users to integrate data, integrate applications, process data, conduct business intelligence, make decisions, and so on.

[0136] It should be noted that in this article, relational terms such as first and second are only used to refer to...

[0137] Distinguishing one entity or operation from another does not necessarily require or imply these distinctions.

[0138] There is no such actual relationship or order between entities or operations. Furthermore, the terms "including" and "package" do not apply.

[0139] The word "comprise" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprises a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0140] In this embodiment of the invention, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.

[0141] The various embodiments in this specification are described in a related manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.

[0142] In particular, the device embodiment is basically similar to the method embodiment, so the description is relatively simple. For relevant details, please refer to the description of the method embodiment.

[0143] For ease of description, the above apparatus is described by dividing it into various functional units / modules. Of course, in implementing this invention, the functions of each unit / module can be implemented in one or more software and / or hardware.

[0144] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0145] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A data copying method, characterized in that, Applied to a management server, the method includes: Create virtualized mirror databases for multiple original business databases; Obtain the mapping relationship between multiple original business databases and multiple virtualized image databases; The obtained mapping relationship is sent to the front-end server, so that the front-end server: determines the target virtualization image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualization image database; The mapping relationship is represented by the correspondence between the data access source identifier, the physical mirror database identifier, and the virtualization database identifier. The data access source identifier uniquely represents the original business database. Both the physical mirror database and the original business database are databases in the actual physical sense. Multiple virtualization databases are further virtualized on a physical mirror database. The physical mirror database identifier and the virtualization database identifier together uniquely represent a virtualization mirror database. The method further includes: The obtained mapping relationship is sent to the backend server so that the backend server can synchronize the data in the original business database and the corresponding virtualized image database according to the mapping relationship. The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database. The purposes include data backup and experimental testing, and one original business database corresponds to multiple virtualized image databases for different purposes; the data backup purpose corresponds to periodically triggered and conditionally triggered synchronization operations, the experimental testing purpose corresponds to synchronization operations that are only triggered periodically, and the periodic triggering period corresponding to the data backup purpose is shorter than the periodic triggering period corresponding to the experimental testing purpose.

2. A data copying device, characterized in that, The device, used for managing servers, includes: The database creation unit is used to create virtualized mirror databases for multiple original business databases; The mapping relationship acquisition unit is used to acquire the mapping relationship between multiple original business databases and multiple virtualized image databases; The mapping relationship sending unit is used to send the acquired mapping relationship to the front-end server, so that the front-end server: determines the target virtualization image database corresponding to the original business database used to store business data according to the mapping relationship; and backs up the business data to the target virtualization image database; The mapping relationship is represented by the correspondence between the data access source identifier, the physical mirror database identifier, and the virtualization database identifier. The data access source identifier uniquely represents the original business database. Both the physical mirror database and the original business database are databases in the actual physical sense. Multiple virtualization databases are further virtualized on a physical mirror database. The physical mirror database identifier and the virtualization database identifier are used together to uniquely represent a virtualization mirror database. The mapping relationship sending unit is further configured to: send the obtained mapping relationship to the backend server, so that the backend server: synchronizes the data in the original business database and the corresponding virtualization image database according to the mapping relationship; The device further includes a database usage sending unit for: The purpose of the created virtualized image database is sent to the backend server, so that the backend server: determines the virtualized image database corresponding to the original business database according to the mapping relationship; and synchronizes the determined virtualized image database with the data in the original business database according to the determined purpose of the virtualized image database. The purposes include data backup and experimental testing, and one original business database corresponds to multiple virtualized image databases for different purposes; the data backup purpose corresponds to a synchronization method that combines periodic triggering and conditional triggering, the experimental testing purpose corresponds to a synchronization method that only triggers periodically, and the periodic triggering period corresponding to the data backup purpose is shorter than the periodic triggering period corresponding to the experimental testing purpose.

3. An electronic device, characterized in that, The electronic device includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the method described in claim 1.

4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs that can be executed by one or more central processing units to implement the method of claim 1.

Citation Information

Patent Citations

  • Data backup method and device

    CN114237983A