US-12625775-B2 - Backup management method and system, device, and medium
Abstract
Backup management methods, systems, devices, and media are disclosed. A network device is connected to a terminal device. The network device determines whether a backup task associated with the terminal device exists, where the backup task is used to store to-be-backed-up target data in the terminal device in a destination storage device, and the destination storage device is connected to the network device. If the network device determines that the backup task exists, the network device indicates the terminal device to start the backup task, to store the target data in the destination storage device.
Inventors
- Feng Liu
Assignees
- HUAWEI TECHNOLOGIES CO., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20210728
- Priority Date
- 20200728
Claims (18)
- 1 . A method, comprising: connecting, by a network device, to a terminal device; determining, by the network device, whether a backup task associated with the terminal device exists, wherein the backup task is used to store to-be-backed-up target data in the terminal device into a destination storage device, and the destination storage device is connected to the network device; in response to at least that the backup task exists, indicating, by the network device, the terminal device to start the backup task, to store the target data in the destination storage device, wherein indicating the terminal device to start the backup task comprises sending, by the network device, an application start request to a cloud server of the terminal device, to indicate the cloud server to start a backup application in the terminal device; after indicating the terminal device to start the backup task to store the target data in the destination storage device, receiving, by the network device, destination address information and the target data that are sent by the terminal device; and determining, by the network device, the destination storage device based on the destination address information.
- 2 . The method according to claim 1 , wherein the method further comprises: sending, by the network device, the target data to the destination storage device.
- 3 . The method according to claim 2 , wherein: the destination address information comprises an identifier of the destination storage device; or the destination address information comprises an identifier of the destination storage device and an identifier of a destination directory in the destination storage device.
- 4 . The method according to claim 2 , wherein the finding, by the network device, the destination storage device based on the destination address information comprises: determining, by the network device, an address of the destination storage device based on the destination address information and device information of at least one candidate storage device connected to the network device.
- 5 . The method according to claim 4 , wherein: the device information comprises: an identifier of the at least one candidate storage device and an address of the at least one candidate storage device; or the device information comprises: an identifier of the at least one candidate storage device, an identifier of a candidate directory in the at least one candidate storage device, and an address of the at least one candidate storage device.
- 6 . The method according to claim 4 , wherein the determining an address of the destination storage device comprises: obtaining, by the network device, an identifier of the destination storage device from the destination address information; determining, by the network device, from the device information, an identifier of a candidate storage device that matches the identifier of the destination storage device; and determining, by the network device, that an address of a candidate storage device associated with the identifier of the candidate storage device is the address of the destination storage device.
- 7 . The method according to claim 4 , wherein before the determining, by the network device, whether a backup task associated with the terminal device exists, the method further comprises: obtaining, by the network device, the device information of the at least one candidate storage device connected to the network device; sending, by the network device, address information of the at least one candidate storage device in the device information to the terminal device, wherein the address information comprises an identifier of the at least one candidate storage device, or the address information comprises the identifier of the at least one candidate storage device and an identifier of a directory in the at least one candidate storage device; obtaining, by the network device, an identifier of the terminal device and the destination address information from the terminal device, wherein the destination address information is at least one piece of address information in the address information of the at least one candidate storage device; and creating, by the network device, the backup task based on the identifier of the terminal device and the destination address information.
- 8 . The method according to claim 2 , wherein before the sending, by the network device, the target data to the destination storage device, the method further comprises: receiving, by the network device, login information sent by the terminal device; sending, by the network device, the login information to the destination storage device for verification; and in response to at least a success of the verification, performing, by the network device, the sending the target data to the destination storage device.
- 9 . A method, comprising: connecting, by a terminal device, to a network device; starting, by the terminal device, a backup task in response to an indication of the network device, wherein the backup task is used to store to-be-backed-up target data in the terminal device into a destination storage device, and the destination storage device is connected to the network device, wherein the indication of the network device comprises receiving, by the terminal device, an application start request from a cloud server that receives the application start request from the network device, wherein the application start request indicates the terminal device to start a backup application in the terminal device; and after receiving the indication of the network device to start the backup task to store the target data in the destination storage device: sending, by the terminal device, the target data to the network device, to store the target data in the destination storage device; and sending, by the terminal device, destination address information to the network device, wherein the destination address information is used to determine the destination storage device.
- 10 . The method according to claim 9 , wherein: the destination address information comprises an identifier of the destination storage device; or the destination address information comprises an identifier of the destination storage device and an identifier of a destination directory in the destination storage device.
- 11 . The method according to claim 9 , wherein the sending, by the terminal device, the target data to the network device comprises: obtaining, by the terminal device, a time of a previous backup operation; and using, by the terminal device, data updated after the time of the previous backup operation in the terminal device as the target data; and sending, by the terminal device, the data to the network device.
- 12 . The method according to claim 9 , wherein before the starting, by the terminal device, a backup task, the method further comprising: requesting, by the terminal device from the network device, address information of at least one candidate storage device connected to the network device, wherein the address information comprises an identifier of the at least one candidate storage device, or the address information comprises an identifier of the at least one candidate storage device and an identifier of a directory in the at least one candidate storage device; selecting, by the terminal device, one piece of address information from the address information of the at least one candidate storage device as destination address information in response to an operation of a user; and sending, by the terminal device, an identifier of the terminal device and the destination address information to the network device for creating the backup task.
- 13 . The method according to claim 9 , wherein before the sending, by the terminal device, the target data to the network device, the method further comprises: sending, by the terminal device, login information to the destination storage device by using the network device for verification of the terminal device; and in response to at least a success of the verification, performing, by the terminal device, the sending the target data to the network device.
- 14 . A system, comprising a terminal device, a network device, and at least one storage device, wherein: the terminal device is connected to the network device; the at least one storage device is connected to the network device; after the terminal device is connected to the network device, the network device determines whether a backup task associated with the terminal device exists, wherein the backup task is used to store to-be-backed-up target data in the terminal device into a destination storage device, and the destination storage device is one of the at least one storage device; in response to determining that the backup task exists, the network device indicates the terminal device to start the backup task, wherein indicating the terminal device to start the backup task comprises sending, by the network device, an application start request to a cloud server of the terminal device, to indicate the cloud server to start a backup application in the terminal device; after receiving an indication of the network device to start the backup task to store the target data in the destination storage device, the terminal device sends destination address information and the target data to the network device; the network device determines the destination storage device based on the destination address information; the network device sends the target data to the destination storage device; and the destination storage device stores the target data.
- 15 . The system according to claim 14 , wherein: the destination address information comprises an identifier of the destination storage device; or the destination address information comprises an identifier of the destination storage device and an identifier of a destination directory in the destination storage device.
- 16 . The system according to claim 15 , wherein that the network device finds the destination storage device based on the destination address information comprises: the network device determines an address of the destination storage device based on the destination address information and device information of at least one candidate storage device connected to the network device, wherein: the device information comprises an identifier of the at least one candidate storage device and an address of the at least one candidate storage device; or the device information comprises an identifier of the at least one candidate storage device, an identifier of a candidate directory in the at least one candidate storage device, and an address of the at least one candidate storage device.
- 17 . The system according to claim 16 , wherein the network device creates the backup task before the network device determines whether the backup task associated with the terminal device exists; that the network device creates the backup task comprises: the network device obtains the device information of the at least one candidate storage device; the network device sends address information of the at least one candidate storage device in the device information to the terminal device, wherein the address information comprises an identifier of the at least one candidate storage device, or the address information comprises an identifier of the at least one candidate storage device and an identifier of a directory in the at least one candidate storage device; in response to an operation of a user, the terminal device selects one piece of address information from the address information of the at least one candidate storage device as destination address information, and sends an identifier of the terminal device and the destination address information to the network device; and the network device creates the backup task based on the identifier of the terminal device and the destination address information.
- 18 . The system according to claim 14 , wherein that the terminal device sends the target data to the network device in response to an indication of the network device comprises: the terminal device sends login information and destination address information to the network device in response to the indication of the network device, wherein the login information is used to log in to the destination storage device; the network device finds the destination storage device based on the destination address information, and the network device sends the login information to the destination storage device for verification of the login information; after the verification succeeds, the network device returns, to the terminal device, a response indicating that verification succeeds; and the terminal device sends the target data to the network device based on the response indicating that verification succeeds.
Description
CROSS REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2021/109011, filed on Jul. 28, 2021, which claims priority to Chinese Patent application No. 202010740387.X, filed on Jul. 28, 2020. Both of the aforementioned applications are incorporated herein by reference in their entireties. TECHNICAL FIELD Embodiments of this disclosure relate to the storage field, and more specifically, to a backup management method and system, a device, and a medium. BACKGROUND With development of a terminal device such as a mobile phone, a tablet computer, a television, and an in-vehicle infotainment system, dependence of a user on the terminal device increasingly increases, and a size and importance of data stored by the user in the terminal device (for example, an image, a video, audio, or application data) increasingly increase. In this case, when storage space of the terminal device is insufficient or the terminal device is faulty, lost, replaced, or the like, how to permanently store user data in the terminal device becomes a challenge. Conventionally, the user data in the terminal device may be backed up in another storage device, to expand storage space of the terminal device, or the user data is restored by using another storage device when the terminal device is faulty, lost, replaced, or the like. However, such a backup operation is manually performed by the user to different degrees. However, the user may sometimes forget to do a backup or cannot do a backup in a timely manner. In addition, performing such a backup operation may be difficult for some users, reducing user experience. SUMMARY Embodiments of this disclosure provide a backup management solution, to implement automatic backup of data, and improve backup efficiency. According to a first aspect of this disclosure, a backup management method is provided. The method includes: A network device is connected to a terminal device; the network device determines whether a backup task associated with the terminal device exists, where the backup task is used to store to-be-backed-up target data in the terminal device in a destination storage device, and the destination storage device is connected to the network device; and if the network device determines that the backup task exists, the network device indicates the terminal device to start the backup task, to store the target data in the destination storage device. In this manner, the network device can automatically detect whether the backup task exists, and automatic backup of data in the terminal device is implemented when the backup task exists, without a need to perform manual intervention, to improve backup efficiency and user experience. In some embodiments, after the network device indicates the terminal device to start the backup task, the method further includes: The network device receives destination address information and the target data that are sent by the terminal device; the network device finds the destination storage device based on the destination address information; and the network device sends the target data to the found destination storage device. In this manner, the network device can search for the destination storage device based on the destination address information from the terminal device, and the terminal device does not need to have a capability of searching for the destination storage device. Therefore, stability of a backup system can be improved. In some embodiments, the destination address information includes an identifier of the destination storage device; or the destination address information includes an identifier of the destination storage device and an identifier of a destination directory in the destination storage device. In this manner, the destination storage device and the destination directory can be easily determined. In some embodiments, the indicating the terminal device to start the backup task includes: The network device sends an application start request to a cloud server of the terminal device, to indicate the cloud server to start a backup application in the terminal device; or the network device directly sends an application start request to the terminal device, to indicate the terminal device to start a backup application. In this manner, the network device can indicate the cloud server to start the backup application or the network device automatically starts the backup application in the terminal device, without a need to perform manual intervention, to start the backup task. Therefore, backup efficiency and user experience are improved. In some embodiments, that the network device finds the destination storage device based on the destination address information includes: The network device determines an address of the destination storage device based on the destination address information and device information of at least one candidate storage device connected to the network device. In thi