CN112882862A - Mailbox data recovery method and device, computer equipment and storage medium - Google Patents

Mailbox data recovery method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112882862A
CN112882862A CN202110196280.8A CN202110196280A CN112882862A CN 112882862 A CN112882862 A CN 112882862A CN 202110196280 A CN202110196280 A CN 202110196280A CN 112882862 A CN112882862 A CN 112882862A
Authority
CN
China
Prior art keywords
mailbox
data
client device
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110196280.8A
Other languages
Chinese (zh)
Other versions
CN112882862B (en
Inventor
洪清钦
王子骏
马立珂
杨海锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Dingjia Computer Technology Co ltd
Original Assignee
Guangzhou Dingjia Computer Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dingjia Computer Technology Co ltd filed Critical Guangzhou Dingjia Computer Technology Co ltd
Priority to CN202110196280.8A priority Critical patent/CN112882862B/en
Publication of CN112882862A publication Critical patent/CN112882862A/en
Application granted granted Critical
Publication of CN112882862B publication Critical patent/CN112882862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The application relates to a mailbox data recovery method and device, computer equipment and a storage medium, which are applicable to the technical field of computer equipment. The method comprises the following steps: the standby server determines the mailbox data recovery requirement of the client device and sends information capable of recovering the mailbox to the client device; the standby server receives information of a target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox; and the standby server sends the mailbox data of the target mailbox to the client equipment. By adopting the method, the single mailbox recovery can be realized, and the occupied storage space is small.

Description

Mailbox data recovery method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for recovering mailbox data, a computer device, and a storage medium.
Background
With the development of science and technology, electronic mailboxes have become an indispensable tool for daily work communication. The electronic mail has the biggest characteristic that people can receive and send the mail at any place, so that the space-time limitation is solved, the working efficiency is greatly improved, and great convenience is provided for office automation and commercial activities. Therefore, the data in the electronic mailbox is important for both individuals and businesses, and in many cases, the data in the electronic mailbox needs to be restored.
Conventionally, a shadow copy service is used to recover all data in a mailbox database in a server system, including all mailbox data maintained by the server. The mailbox has a large amount of recovery data, and a large amount of storage space is required to be occupied for storing data when mailbox data is recovered, so that mailbox data recovery efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for restoring mailbox data, which can improve the efficiency of restoring mailbox data.
In a first aspect, a mailbox data recovery method is provided, which is applied to a standby server, and the method includes: the standby server determines the mailbox data recovery requirement of the client device and sends information capable of recovering the mailbox to the client device; the standby server receives information of a target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox; and the standby server sends the mailbox data of the target mailbox to the client equipment.
In one embodiment, the backup server determining mailbox data recovery requirements of the client device comprises: the standby server receives a directory mounting instruction from the client equipment and determines mailbox data recovery requirements of the client equipment; the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment, the method further comprises: the standby server stores the mailbox data to a backup database under the data recovery directory; the mailbox data comprises data of at least one mailbox and information of at least one mailbox; and determining information of the recoverable mailbox according to the information of at least one mailbox.
In one embodiment, before the standby server sends the mailbox data of the target mailbox to the client device, the method further includes: and acquiring mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In a second aspect, a mailbox data recovery method is provided, which is applied to a client device, and includes: the method comprises the steps that client equipment receives information of recoverable mailboxes sent by a standby server and selects target mailboxes from the recoverable mailboxes; the client equipment sends the information of the target mailbox to the standby server; the client device receives mailbox data for the target mailbox from the standby server.
In one embodiment, the method further includes: the client device sends a mailbox recovery request to the main server and receives a response message fed back by the main server, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment, after receiving the response message fed back by the main server, the method further includes: the client device sends a directory mounting instruction to the standby server, wherein the directory mounting instruction is sent after the client device receives a response message from a main server of the client device.
In a third aspect, an apparatus for restoring mailbox data is provided, the apparatus comprising:
the first determining module is used for determining the mailbox data recovery requirement of the client device and sending information capable of recovering the mailbox to the client device;
the receiving module is used for receiving the information of the target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox;
and the sending module is used for sending the mailbox data of the target mailbox to the client equipment.
In one embodiment, the determining module is specifically configured to receive a directory mount instruction from a client device, and determine a mailbox data recovery requirement of the client device; the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment, the mailbox data recovery apparatus further includes:
the storage module is used for storing the mailbox data to a backup database under the data recovery directory; the mailbox data comprises data of at least one mailbox and information of at least one mailbox;
and the second determining module is used for determining the information of the recoverable mailbox according to the information of at least one mailbox.
In one embodiment, the mailbox data recovery apparatus further includes:
and the acquisition module is used for acquiring mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In a fourth aspect, an apparatus for restoring mailbox data is provided, the apparatus comprising:
the selection module is used for receiving the information of the recoverable mailbox sent by the standby server and selecting a target mailbox from the recoverable mailbox;
the first sending module is used for sending the information of the target mailbox to the standby server;
and the receiving module is used for receiving mailbox data of the target mailbox sent by the standby server.
In one embodiment, the mailbox data recovery apparatus further includes:
and the second sending module is used for sending a mailbox recovery request to the main server and receiving a response message fed back by the main server, wherein the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment, the mailbox data recovery apparatus further includes:
and the third sending module is used for sending a directory mounting instruction to the standby server by the equipment, wherein the directory mounting instruction is sent after the client equipment receives the response message from the main server of the client equipment.
In a fifth aspect, there is provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the method according to any of the first and second aspects when executing the computer program.
A sixth aspect provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the first and second aspects as described above.
According to the method and the device for restoring the mailbox data, the computer equipment and the storage medium, the standby server can send the information of the recoverable mailbox to the client equipment after determining the mailbox data restoring requirement of the client equipment; the client may select a mailbox to be restored from the recoverable mailboxes, such as the target mailbox described above. The standby server may also send mailbox data for the target mailbox to the client device. By the method, the standby server can determine the single or multiple mailboxes which need to be recovered by the client device, so that mailbox data of the mailboxes can be sent to the client device, and targeted recovery of the mailbox data is realized. The mailbox data of all mailboxes in the database is not sent to the client device, and mailbox data recovery is carried out based on a small number of mailboxes, so that the data transmission amount in the mailbox recovery process is greatly reduced, the time consumption for mailbox recovery is saved, and the mailbox data recovery efficiency is improved. Meanwhile, the occupation of the storage space of the client equipment is reduced, and the actual requirements of the user on recovering certain mailboxes can be met.
Drawings
FIG. 1 is a diagram of an application environment for a method for mailbox data recovery in one embodiment;
FIG. 2 is a flowchart illustrating a mailbox data recovery method according to an embodiment;
FIG. 3 is a diagram illustrating a target mailbox selection interface in the mailbox data recovery method in an embodiment;
FIG. 4 is a flowchart illustrating mailbox data recovery steps in one embodiment;
FIG. 5 is a flowchart illustrating a mailbox data recovery method according to another embodiment;
FIG. 6 is a flowchart illustrating a mailbox data recovery method according to another embodiment;
FIG. 7 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 8 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 9 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 10 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 11 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 12 is a block diagram showing the structure of a mailbox data recovery apparatus according to an embodiment;
FIG. 13 is an internal block diagram of a server in one embodiment;
FIG. 14 is a diagram illustrating the internal architecture of a client device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The mailbox data recovery method provided by the application can be applied to the application environment shown in fig. 1. Where client device 102 communicates with standby server 104 and primary server 106 over a network. Wherein, the standby server 104 sends information of recoverable mailbox to the client device 102, and the standby server 104 receives information of target mailbox from the client device 102. The client device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the standby server 104 and the main server 106 may be implemented by independent servers or a server cluster composed of a plurality of servers.
In an alternative embodiment of the present application, as shown in fig. 2, a mailbox data recovery method is provided, which is described by taking the method as an example of being applied to the standby server in fig. 1, and includes the following steps:
step 201, the standby server determines the mailbox data recovery requirement of the client device, and sends information capable of recovering the mailbox to the client device.
In this embodiment, there may be two servers supporting normal operation of the client device, where one of the servers may be a primary server and the other server is a standby server. The main server is used for supporting the normal operation of the client equipment and storing data required by the normal operation of the client equipment and generated data. The standby server is used for backing up and recovering the data in the main server.
In the embodiment of the application, after the client device receives a mailbox recovery instruction triggered by a user, the mailbox recovery instruction can be forwarded to the main server, the main server can create a database and a directory, in order to improve data security, the main server can delete the created database, and the standby server performs data backup. In the process, the standby server can acquire the requirements of the client, and sends information capable of restoring the mailbox to the client when the main server is determined to be ready for data backup of the standby server.
After the backup server determines the mailbox data recovery requirement of the client device, the backup server may obtain mailbox data corresponding to the main server, and store the obtained mailbox data and mailbox information correspondingly. The mailbox information may include at least one of identification information of the mailbox and address information of the mailbox. The standby server specifies its own data recovery capabilities, e.g., which mailboxes are supported for data recovery, based on the stored data. The standby server may also select one or more recoverable mailboxes from the mailbox(s) that support recovery based on its recovery capabilities. The backup server, after determining the recoverable mailbox, may send information of the recoverable mailbox to the client device based on network communications with the client device.
In step 202, the standby server receives information of the target mailbox from the client device.
In an embodiment of the application, the standby server receives information of a target mailbox from the client device, wherein the target mailbox is a mailbox selected by the client device from the recoverable mailbox. The number of target mailboxes may be any natural number greater than or equal to 1.
In the embodiment of the application, after the backup server sends the information of the recoverable mailbox to the client device, the client device receives the information of the recoverable mailbox sent by the backup server, generates a recoverable mailbox list based on the information of the recoverable mailbox, and presents the recoverable mailbox list to a user through the display component.
Illustratively, referring to FIG. 3, the client displays a visualization interface. The interface includes a recoverable mailbox list and user operated function buttons. The user can click on the mailbox information displayed on the interface, and one or more mailboxes can be selected as target mailboxes. Therefore, the client device receives the information of the target mailbox input by the user and sends the information of the target mailbox to the standby server. The standby server receives information of the target mailbox received from the client device.
Step 203, the standby server sends mailbox data of the target mailbox to the client device.
In this embodiment of the application, after receiving the information of the target mailbox sent by the client, the standby server may find the target mailbox from the mailbox data according to the identification information of the target mailbox or the address information of the target mailbox included in the information of the target mailbox, and send the mailbox data in the target mailbox to the client device.
According to the mailbox data recovery method, the standby server can send information capable of recovering the mailbox to the client device after determining the mailbox data recovery requirement of the client device; the client may select one or more mailboxes to be restored from the recoverable mailboxes described above, e.g., the target mailboxes described above. The standby server may also send mailbox data for the target mailbox to the client device. By the method, the standby server can determine the single or multiple mailboxes which need to be recovered by the client device, so that mailbox data of the mailboxes can be sent to the client device, and targeted recovery of the mailbox data is realized. The mailbox data of all mailboxes in the database is not sent to the client device, and mailbox data recovery is carried out based on a small number of mailboxes, so that the data transmission amount in the mailbox recovery process is greatly reduced, the time consumption for mailbox recovery is saved, and the mailbox data recovery efficiency is improved. Meanwhile, the occupation of the storage space of the client equipment is reduced, and the actual requirements of the user on recovering certain mailboxes can be met.
In an optional implementation manner of this embodiment, the "determining, by the standby server, a mailbox data recovery requirement of the client device" in step 201 may include the following:
and the standby server receives the directory mounting instruction from the client equipment and determines the mailbox data recovery requirement of the client equipment.
In the embodiment of the application, the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server creates a backup database and a data recovery directory in response to a mailbox recovery instruction sent by the client device, the backup database includes mailbox data, and the data recovery directory is used for accessing the mailbox data.
In the embodiment of the application, after the client device receives the mailbox recovery instruction input by the user, the mailbox recovery instruction can be forwarded to the main server. After receiving the mailbox recovery instruction forwarded by the client device, the main server may create a data recovery directory locally on the main server, and create a backup database in the data recovery directory. After the primary server has created the data recovery directory and the backup database locally, the primary server sends a response message to the client device in response to the mailbox recovery instruction.
In the embodiment of the application, after receiving the response message sent by the primary server, the client device sends a directory mount instruction to the standby server. And the standby server receives the directory mounting instruction from the client equipment, acquires mailbox data corresponding to the main server according to the directory mounting instruction, and determines a recoverable mailbox according to the mailbox data.
In the embodiment of the application, the standby server determines the mailbox data recovery requirement of the client device by receiving the directory mount instruction from the client device, so that the standby server can determine the mailbox data recovery requirement of the client device in time, and the mailbox data recovery efficiency is improved.
In a possible implementation manner of this embodiment, the standby server may send information of a recoverable mailbox to the client device, as shown in fig. 4, a process of determining the information of the recoverable mailbox by the standby server may specifically include the following steps:
step 401, the standby server stores the mailbox data to the backup database under the data recovery directory.
The mailbox data comprises data of at least one mailbox and information of at least one mailbox.
In the embodiment of the application, after receiving a directory mount request sent by a client device, a standby server determines mailbox data needing to be mounted based on the directory mount request, and correspondingly stores mailbox data in the mailbox data and information of a matched mailbox into a backup database under a data recovery directory. The mailbox data not only comprises mailbox data but also comprises mailbox information, the data of each mailbox is matched with corresponding mailbox information, and the mailbox information can be identification information of the mailbox or address information of the mailbox. And storing the data of the mailbox in the mailbox data corresponding to the information of the mailbox.
Step 402, the standby server determines the information of the recoverable mailbox according to the information of the at least one mailbox.
In the embodiment of the application, after the mailbox data is stored in the backup database under the data recovery directory, the standby server determines the information of the recoverable mailbox based on the information of at least one mailbox in the mailbox data stored in the backup database.
In this embodiment of the application, optionally, the standby server may determine information of all mailboxes in the mailbox data as information of recoverable mailboxes, or may determine information of a part of mailboxes selected from the mailbox data as information of recoverable mailboxes according to a preset rule. The number of recoverable mailboxes is not particularly limited in the embodiments of the present application. The preset rule can be that the using frequency of each mailbox in the preset time is sequenced, and the mailbox with the using frequency larger than the frequency threshold value is selected; or sorting the mailboxes based on the number of the mails included in each mailbox, and selecting the mailboxes with the number of the mails larger than the number threshold, the embodiment of the application does not specifically limit the preset rule.
Illustratively, the mailbox data includes data of 18 mailboxes, and the backup server class may determine information of the 18 mailboxes as information of recoverable mailboxes; or according to the use frequency of each mailbox in a week, 8 mailboxes with the use times more than 5 times in a week are selected from the 18 mailboxes, so that the information of the 8 mailboxes is determined to be the information of the recoverable mailbox.
In the embodiment of the application, the standby server stores the mailbox data to the backup database under the data recovery directory, and determines the information of the recoverable mailbox according to the information of at least one mailbox. The backup server stores the mailbox data into a backup database under the data recovery directory, thereby being beneficial to counting and researching the mailbox data. The standby server determines the information of the recoverable mailbox according to the information of at least one mailbox, and sends the information of the recoverable mailbox to the client device instead of directly sending mailbox data to the client device, so that screening and research of mailbox data by the standby server can be achieved, occupied storage space of the client device is reduced, mailbox data transmission rate is improved, and mailbox recovery efficiency is improved.
In an optional embodiment of the present application, before the standby server sends the mailbox data of the target mailbox to the client device, the method may further include the following steps:
and the standby server acquires mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In the embodiment of the application, after receiving the information of the target mailbox sent by the client, the standby server may optionally search mailbox data of the target mailbox in the backup database according to identification information of the mailbox included in the information of the target mailbox, and extract the found mailbox data of the target mailbox, so as to obtain the mailbox data of the target mailbox. Optionally, the standby server may further search mailbox data of the target mailbox in the backup database according to the address information of the mailbox included in the information of the target mailbox, and extract the found mailbox data of the target mailbox, so as to obtain the mailbox data of the target mailbox
In the embodiment of the application, the standby server acquires the mailbox data of the target mailbox from the backup database according to the information of the target mailbox, so that the correctness of the acquired mailbox data of the target mailbox is ensured, and the mailbox recovery efficiency is improved.
In an alternative embodiment of the present application, as shown in fig. 5, a mailbox data recovery method is provided, which is described by taking the application of the method to the client device in fig. 1 as an example, and includes the following steps:
step 501, the client device sends a mailbox recovery request to the main server and receives a response message fed back by the main server.
The response message is sent by the main server after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, wherein the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In the embodiment of the application, after the client device receives the mailbox recovery instruction input by the user, the mailbox recovery instruction can be forwarded to the main server. After receiving the mailbox recovery instruction forwarded by the client device, the main server may create a data recovery directory locally on the main server, and create a backup database in the data recovery directory. After the primary server has created the restore directory and the backup database locally, the primary server sends a response message to the client device in response to the mailbox restore instruction. So that the client device can receive the response message fed back by the main server.
Step 502, the client device sends a directory mount instruction to the standby server.
The directory mount instruction is sent by the client device after receiving a response message from a main server of the client device.
In the embodiment of the application, after receiving the response message sent by the main server, the client device determines that the main server is ready for mailbox recovery, and sends the directory mount instruction to the standby server based on network communication with the standby server.
In step 503, the client device receives information of the recoverable mailbox sent by the standby server, and selects a target mailbox from the recoverable mailbox.
In the embodiment of the application, after receiving a directory mount request sent by a client device, a standby server determines mailbox data needing to be mounted based on the directory mount request, and correspondingly stores mailbox data in the mailbox data and mailbox information into a backup database under a data recovery directory. And then the standby server determines the information of the recoverable mailbox based on the information of at least one mailbox in the mailbox data stored in the backup database, and sends the information of the recoverable mailbox to the client equipment.
The client device receives the information of the recoverable mailbox sent by the standby server, generates a recoverable mailbox list based on the information of the recoverable mailbox, and presents the recoverable mailbox list to a user through a display component. The user selects the information of the target mailbox needing to be restored through an input component in the client device.
In step 504, the client device sends the information of the target mailbox to the standby server.
In the embodiment of the application, the client device receives the information of the target mailbox input by the user through the input component of the client device, and sends the information of the target mailbox to the standby server based on the network connection with the standby server.
In step 505, the client device receives mailbox data for a target mailbox from the standby server.
In this embodiment of the application, after receiving the information of the target mailbox sent by the client, the standby server may find the target mailbox from the mailbox data according to the identification information of the target mailbox or the address information of the target mailbox included in the information of the target mailbox, and send the mailbox data in the target mailbox to the client device. Therefore, the client device can receive the mailbox data of the target mailbox sent by the standby server and display the mailbox data of the target mailbox to the user through the display component.
In the embodiment of the application, the client device sends a mailbox recovery request to the main server and receives a response message fed back by the main server. After receiving the response message fed back by the main server, the client device sends a directory mount instruction to the standby server. And then the client equipment receives the information of the recoverable mailbox sent by the standby server, selects a target mailbox from the recoverable mailbox and sends the information of the target mailbox to the standby server. The client device receives mailbox data for the target mailbox from the standby server. By the method, the client device can send the information of the target mailbox which needs to be restored by the user to the standby server, receive the mailbox data of the target mailbox instead of receiving the mailbox data of all mailboxes, and select the target mailbox data from all mailbox data by the user, so that the time of the user is saved, the storage space occupied by the client device is reduced, and the mailbox restoring efficiency is improved.
In order to better explain the mailbox data recovery method provided by the present application, the present application provides an embodiment that explains an overall flow aspect of the mailbox data recovery method, as shown in fig. 6, the method includes:
step 601, the client device sends a mailbox recovery request to the main server,
in step 602, the client device receives a response message fed back by the main server.
Step 603, the client device sends a directory mount instruction to the standby server.
In step 604, the standby server receives the directory mount instruction from the client device and determines the mailbox data recovery requirement of the client device.
Step 605, the standby server stores the mailbox data to the backup database under the data recovery directory.
And step 606, the standby server determines the information of the recoverable mailbox according to the information of at least one mailbox.
In step 607, the standby server sends information to the client device that the mailbox can be restored.
In step 608, the client device receives the information of the recoverable mailbox sent by the standby server, and selects a target mailbox from the recoverable mailbox.
In step 609, the client device sends the information of the target mailbox to the standby server.
At step 610, the standby server receives information for the target mailbox from the client device.
In step 611, the standby server obtains mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
Step 612, the standby server sends mailbox data of the target mailbox to the client device.
In step 613, the client device receives mailbox data for the target mailbox from the standby server.
It should be understood that although the various steps in the flow charts of fig. 2 and 4-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 4-6 and fig. 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternatively with other steps or at least some of the other steps or stages.
In an embodiment of the present application, as shown in fig. 7, there is provided a mailbox data recovery apparatus 700 including: a first determining module 701, a receiving module 702 and a sending module 703, wherein:
a first determining module 701, configured to determine a mailbox data recovery requirement of a client device, and send information of a recoverable mailbox to the client device;
a receiving module 702, configured to receive information of a target mailbox from a client device; the target mailbox is a mailbox selected by the client device from the recoverable mailbox;
the sending module 703 is configured to send mailbox data of the target mailbox to the client device.
In an embodiment of the present application, the first determining module 701 is specifically configured to receive a directory mount instruction from a client device, and determine a mailbox data recovery requirement of the client device; the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In an embodiment of the present application, as shown in fig. 8, the mailbox data recovery apparatus 700 further includes: a storage module 704 and a second determination module 705, wherein:
a storage module 704, configured to store the mailbox data in a backup database in the data recovery directory; the mailbox data comprises data of at least one mailbox and information of at least one mailbox;
a second determining module 705, configured to determine information of a recoverable mailbox according to information of at least one mailbox.
In an embodiment of the present application, as shown in fig. 9, the mailbox data recovery apparatus 700 further includes: an acquisition module 706, wherein:
an obtaining module 706, configured to obtain mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In an embodiment of the present application, as shown in fig. 10, there is provided a mailbox data recovery apparatus 1000 including: a selection module 1001, a first sending module, 1002 and a receiving module 1003, wherein:
a selecting module 1001, configured to receive information of a recoverable mailbox sent by a standby server, and select a target mailbox from the recoverable mailbox;
a first sending module 1002, configured to send information of a target mailbox to a standby server;
the receiving module 1003 is configured to receive mailbox data of the target mailbox sent by the standby server.
In an embodiment of the present application, as shown in fig. 11, the mailbox data recovery apparatus 1000 further includes: a second sending module 1004, wherein:
the second sending module 1004 is configured to send a mailbox recovery request to the main server, and receive a response message fed back by the main server, where the response message is sent by the main server after the main server creates a backup database and a data recovery directory in response to a mailbox recovery instruction sent by the client device, the backup database includes mailbox data, and the data recovery directory is used for accessing the mailbox data.
In an embodiment of the present application, as shown in fig. 12, the mailbox data recovery apparatus 1000 further includes: a third transmitting module 1005, wherein:
a third sending module 1005, configured to send a directory mount instruction to the standby server by the device, where the directory mount instruction is sent after the client device receives the response message from the primary server of the client device.
For the specific limitation of the mailbox data recovery apparatus, reference may be made to the above limitation on the mailbox data recovery method, and details are not described here. The modules in the mailbox data recovery device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing mailbox data recovery data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a mailbox data recovery method.
In one embodiment, a computer device is provided, which may be a client device, the internal structure of which may be as shown in fig. 14. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a mailbox data recovery method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configurations shown in fig. 13 and 14 are block diagrams of only some of the configurations relevant to the present teachings and do not constitute limitations on the computing devices to which the present teachings may be applied, as a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program: the standby server determines the mailbox data recovery requirement of the client device and sends information capable of recovering the mailbox to the client device; the standby server receives information of a target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox; and the standby server sends the mailbox data of the target mailbox to the client equipment.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: the standby server receives a directory mounting instruction from the client equipment and determines mailbox data recovery requirements of the client equipment; the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: the standby server stores the mailbox data to a backup database under the data recovery directory; the mailbox data comprises data of at least one mailbox and information of at least one mailbox; and determining information of the recoverable mailbox according to the information of at least one mailbox.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: and acquiring mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: the method comprises the steps that client equipment receives information of recoverable mailboxes sent by a standby server and selects target mailboxes from the recoverable mailboxes; the client equipment sends the information of the target mailbox to the standby server; the client device receives mailbox data for the target mailbox from the standby server.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: the client device sends a mailbox recovery request to the main server and receives a response message fed back by the main server, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: the client device sends a directory mounting instruction to the standby server, wherein the directory mounting instruction is sent after the client device receives a response message from a main server of the client device.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
the standby server determines the mailbox data recovery requirement of the client device and sends information capable of recovering the mailbox to the client device; the standby server receives information of a target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox; and the standby server sends the mailbox data of the target mailbox to the client equipment.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: the standby server receives a directory mounting instruction from the client equipment and determines mailbox data recovery requirements of the client equipment; the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: the standby server stores the mailbox data to a backup database under the data recovery directory; the mailbox data comprises data of at least one mailbox and information of at least one mailbox; and determining information of the recoverable mailbox according to the information of at least one mailbox.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and acquiring mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: the method comprises the steps that client equipment receives information of recoverable mailboxes sent by a standby server and selects target mailboxes from the recoverable mailboxes; the client equipment sends the information of the target mailbox to the standby server; the client device receives mailbox data for the target mailbox from the standby server.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: the client device sends a mailbox recovery request to the main server and receives a response message fed back by the main server, the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device to create a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: the client device sends a directory mounting instruction to the standby server, wherein the directory mounting instruction is sent after the client device receives a response message from a main server of the client device.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for mailbox data recovery, the method comprising:
the standby server determines the mailbox data recovery requirement of the client device and sends information capable of recovering the mailbox to the client device;
the standby server receives information of a target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox;
and the standby server sends the mailbox data of the target mailbox to the client equipment.
2. The method of claim 1, wherein the backup server determining mailbox data recovery requirements for the client device comprises:
the standby server receives a directory mounting instruction from the client equipment and determines mailbox data recovery requirements of the client equipment;
the directory mount instruction is sent after the client device receives a response message from a main server of the client device, the response message is sent after the main server creates a backup database and a data recovery directory in response to a mailbox recovery instruction sent by the client device, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
3. The method of claim 2, further comprising:
the standby server stores the mailbox data to the backup database in the data recovery directory; the mailbox data comprises data of the at least one mailbox and information of the at least one mailbox;
and the standby server determines the information of the recoverable mailbox according to the information of the at least one mailbox.
4. The method of claim 2, wherein before the backup server sends mailbox data for the target mailbox to the client device, the method further comprises:
and the standby server acquires mailbox data of the target mailbox from the backup database according to the information of the target mailbox.
5. A method for mailbox data recovery, the method comprising:
the method comprises the steps that client equipment receives information of recoverable mailboxes sent by a standby server and selects target mailboxes from the recoverable mailboxes;
the client equipment sends the information of the target mailbox to the standby server;
and the client equipment receives mailbox data of the target mailbox from the standby server.
6. The method of claim 5, further comprising:
the client device sends a mailbox recovery request to a main server and receives a response message fed back by the main server, wherein the response message is sent after the main server responds to a mailbox recovery instruction sent by the client device and creates a backup database and a data recovery directory, the backup database comprises mailbox data, and the data recovery directory is used for accessing the mailbox data.
7. The method of claim 6, wherein after receiving the response message fed back by the master server, the method further comprises:
and the client equipment sends a directory mounting instruction to the standby server, wherein the directory mounting instruction is sent after the client equipment receives the response message from the main server of the client equipment.
8. An apparatus for mailbox data recovery, the apparatus comprising:
the first determining module is used for determining the mailbox data recovery requirement of the client device and sending information of recoverable mailboxes to the client device;
the receiving module is used for receiving the information of the target mailbox from the client equipment; the target mailbox is a mailbox selected by the client device from the recoverable mailbox;
and the sending module is used for sending the mailbox data of the target mailbox to the client equipment.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110196280.8A 2021-02-22 2021-02-22 Mailbox data recovery method and device, computer equipment and storage medium Active CN112882862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110196280.8A CN112882862B (en) 2021-02-22 2021-02-22 Mailbox data recovery method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110196280.8A CN112882862B (en) 2021-02-22 2021-02-22 Mailbox data recovery method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112882862A true CN112882862A (en) 2021-06-01
CN112882862B CN112882862B (en) 2022-05-17

Family

ID=76056733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110196280.8A Active CN112882862B (en) 2021-02-22 2021-02-22 Mailbox data recovery method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112882862B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005032083A (en) * 2003-07-09 2005-02-03 Nec Corp System, method and program for relieving electronic mail storing process
CN201563130U (en) * 2009-07-24 2010-08-25 鲁超伟 Enterprise email controller
CN103491170A (en) * 2013-09-24 2014-01-01 新浪网技术(中国)有限公司 E-mail arrival message reminding method and system
US20160004605A1 (en) * 2014-07-01 2016-01-07 Commvault Systems, Inc. Lightweight data reconstruction based on backup data
CN108347372A (en) * 2018-01-04 2018-07-31 广东睿江云计算股份有限公司 A kind of method of mail data backup and recovery
US20180285209A1 (en) * 2017-03-29 2018-10-04 Commvault Systems, Inc. Live browsing of granular mailbox data
CN108650165A (en) * 2018-02-28 2018-10-12 阿里巴巴集团控股有限公司 A kind of restoration methods of communication data, device and equipment
CN109144790A (en) * 2018-09-30 2019-01-04 广州鼎甲计算机科技有限公司 The synthesized backup method and device of MySQL database
CN112181720A (en) * 2020-09-11 2021-01-05 济南浪潮数据技术有限公司 Virtual data center backup method and device based on cloud management platform

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005032083A (en) * 2003-07-09 2005-02-03 Nec Corp System, method and program for relieving electronic mail storing process
CN201563130U (en) * 2009-07-24 2010-08-25 鲁超伟 Enterprise email controller
CN103491170A (en) * 2013-09-24 2014-01-01 新浪网技术(中国)有限公司 E-mail arrival message reminding method and system
US20160004605A1 (en) * 2014-07-01 2016-01-07 Commvault Systems, Inc. Lightweight data reconstruction based on backup data
US20180285209A1 (en) * 2017-03-29 2018-10-04 Commvault Systems, Inc. Live browsing of granular mailbox data
CN108347372A (en) * 2018-01-04 2018-07-31 广东睿江云计算股份有限公司 A kind of method of mail data backup and recovery
CN108650165A (en) * 2018-02-28 2018-10-12 阿里巴巴集团控股有限公司 A kind of restoration methods of communication data, device and equipment
CN109144790A (en) * 2018-09-30 2019-01-04 广州鼎甲计算机科技有限公司 The synthesized backup method and device of MySQL database
CN112181720A (en) * 2020-09-11 2021-01-05 济南浪潮数据技术有限公司 Virtual data center backup method and device based on cloud management platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GAMAL A. EL-SAYED 等: "Mailbox-based non blocking minimum-process coordinated checkpointing with message logging for hierarchical computational grid (MNMCCP)", 《2012 2ND INTERNATIONAL CONFERENCE ON ADVANCES IN COMPUTATIONAL TOOLS FOR ENGINEERING APPLICATIONS (ACTEA)》 *
顾宇红: "基于Exchange邮箱服务器的灾难恢复", 《福建电脑》 *

Also Published As

Publication number Publication date
CN112882862B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN106612285B (en) Distributed cloud data management method and system based on peer-to-peer network
US10268750B2 (en) Log event summarization for distributed server system
EP3335411B1 (en) Electronic device and method of managing application programs thereof
EP2234028A1 (en) System and method of handling encrypted backup data
US10216601B2 (en) Agent dynamic service
CN106528587B (en) Page display method and device in composite webpage system
US8078206B2 (en) Mobile phone and method for managing short messages of the mobile phone
CN111510439A (en) Session reminding method and device, computer equipment and storage medium
CN114827914A (en) Short message processing method and device and electronic equipment
CN107943562A (en) Information storage means, device, storage medium and electronic equipment
US10007716B2 (en) System for decomposing clustering events from managed infrastructures coupled to a data extraction device
CN113204378A (en) Configuration file state synchronization method, device, terminal, server and storage medium
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN112052374A (en) Page display method and device, computer equipment and storage medium
US20170212962A1 (en) Apparatus and method for managing history information in an electronic device
CN111949354B (en) Page content updating method and device
CN112882862B (en) Mailbox data recovery method and device, computer equipment and storage medium
CN111562870A (en) Map point location icon expansion processing method and device
CN108880988B (en) Method, system, computer equipment and storage medium for monitoring instant communication message
US20030162559A1 (en) Mobile communications terminal, information transmitting system and information receiving method
CN114297552A (en) Form expansion method and device, computer equipment and storage medium
CN112416374A (en) Data processing method, device, terminal and storage medium
CN113760152A (en) Message processing method and device, computer equipment and storage medium
CN112433779B (en) Application site preloading method, device and storage medium based on ERP system
CN112751928B (en) Cross-terminal information interconnection method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Mailbox data recovery method, device, computer device and storage medium

Effective date of registration: 20221021

Granted publication date: 20220517

Pledgee: Industrial Bank Co.,Ltd. Guangzhou Development Zone sub branch

Pledgor: Guangzhou Dingjia Computer Technology Co.,Ltd.

Registration number: Y2022980018838