Data backup method and device based on portable storage device, equipment and medium

CN122285390BActive Publication Date: 2026-08-21SHENZHEN LINGDECHUANG TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202610730882.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-05-26
Publication Date
2026-08-21
Estimated Expiration
2046-05-26

AI Technical Summary

Technical Problem

[0003]现有数据备份方案主要分为两类:一是纯软件远程备份方案,例如ToDesk、向日葵、TeamViewer等软件,其核心缺陷在于无法在个人计算机关机或睡眠状态下运行,必须依赖用户手动唤醒个人计算机才能执行备份;二是独立硬件远程开机方案,如智能开机棒等,虽能实现远程开机,但普遍存在配置复杂、开机指令无状态反馈等问题

Benefits of technology

[0021]在本申请实施例中,通过NFC模块获取用户控制设备标识,连接无线网络并通过所述无线网络将所述用户控制设备标识与预设本地设备标识发送至云端服务器,用于所述云端服务器对所述用户控制设备标识与所述预设本地设备标识进行绑定验证,并反馈绑定验证结果;在接收到所述云端服务器返回的绑定验证结果为验证成功的情况下,将所述用户控制设备标识与所述预设本地设备标识进行本地关联存储,并响应于目标设备数据备份指令,根据所述目标设备数据备份指令中的用户控制设备标识进行用户权限验证;在用户权限验证成功的情况下,识别所述目标设备的工作状态,并在所述目标设备的工作状态不为开机状态的情况下,对所述目标设备进行唤醒操作,以使所述目标设备进入开机状态;在所述目标设备的工作状态为开机状态的情况下,获取所述目标设备中的待备份数据并对所述待备份数据进行备份存储。上述基于便携式存储设备的数据备份方法,无需用户手动唤醒目标设备,也无需进行复杂配置,即可安全、便捷地完成目标设备数据的自动备份,有效保障用户数据的安全性和备份任务的可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122285390B_ABST
    Figure CN122285390B_ABST
Patent Text Reader

Abstract

The application discloses a data backup method and device based on a portable storage device, equipment and medium, the method comprises the following steps: obtaining the user control device identifier through the NFC module and sending the user control device identifier and the preset local device identifier to the cloud server through the wireless network; the cloud server verifies the user control device identifier and the preset local device identifier; according to the user control device identifier in the target device data backup instruction, the user permission is verified; if the user permission verification is successful, the working state of the target device is identified, and the target device is woken up if it is not in the boot state; obtain the backup data in the target device and backup the backup data. According to the technical scheme, the automatic backup of the target device data can be safely and conveniently completed without manual awakening of the target device and complex configuration, and the data security and backup task reliability are effectively guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic digital data processing technology, specifically relating to data backup methods, apparatus, devices and media based on portable storage devices. Background Technology

[0002] With the widespread adoption of personal computers and mobile smart devices, the demand for cross-device data backup and remote access has exploded. Users need to securely and conveniently back up important data from their personal computers to designated storage locations in various scenarios such as home, office, and travel, and they urgently expect that the backup task can still be automatically triggered and completed when the personal computer is powered off or in sleep mode.

[0003] Existing data backup solutions mainly fall into two categories: First, purely software-based remote backup solutions, such as ToDesk, Sunflower, and TeamViewer. Their core drawback is that they cannot run when the personal computer is powered off or in sleep mode; the user must manually wake the computer to perform the backup. Second, standalone hardware remote power-on solutions, such as smart power-on sticks. While these can achieve remote power-on, they generally suffer from complex configurations and a lack of status feedback for power-on commands. Furthermore, regardless of whether it's a purely software or hardware-based remote power-on solution, remote control permission verification relies solely on account and password authentication, posing a serious risk of identity theft and data leakage. Summary of the Invention

[0004] This application provides a data backup method, apparatus, device, and medium based on portable storage devices. The purpose is to enable safe and convenient automatic backup of target device data without requiring the user to manually wake up the target device or perform complex configuration, thereby effectively ensuring the security of user data and the reliability of backup tasks.

[0005] In a first aspect, embodiments of this application provide a data backup method based on a portable storage device, the portable storage device including an NFC module and a main control module; the method is executed by the main control module, and the method includes: The user control device identifier is obtained through the NFC module, connected to the wireless network, and sent to the cloud server through the wireless network along with the preset local device identifier. The cloud server then performs binding verification on the user control device identifier and the preset local device identifier and returns the binding verification result. If the binding verification result returned by the cloud server is successful, the user control device identifier and the preset local device identifier are locally associated and stored, and in response to the target device data backup instruction, user permission verification is performed according to the user control device identifier in the target device data backup instruction. If user permission verification is successful, the working status of the target device is identified, and if the working status of the target device is not in the power-on state, a wake-up operation is performed on the target device to enable the target device to power on. When the target device is powered on, the data to be backed up in the target device is acquired and backed up and stored.

[0006] Furthermore, the process of backing up and storing the data to be backed up includes: Obtain current network status information, backup data volume information of the data to be backed up, and local storage capacity information of the portable storage device; Based on the current network status information, the backup data volume information, and the local storage capacity information, the target backup storage location and the corresponding target backup transmission method of the data to be backed up are determined; wherein, the target backup storage location includes portable storage devices and user control devices; The data to be backed up is stored in the target backup storage location using the target backup transmission method.

[0007] Furthermore, determining the target backup storage location and corresponding target backup transmission method for the data to be backed up based on the current network status information, the backup data volume information, and the local storage capacity information includes: Based on the current network status information, it can be determined whether the user control device and the target device belong to the same local area network; If the backup data volume is determined to be less than the local storage capacity, the target backup storage location is determined to be a portable storage device and the corresponding target backup transmission method is determined to be a preset transmission method. If the user control device and the target device are identified as belonging to the same local area network and the amount of backup data exceeds the local storage capacity information, the target backup storage location is determined to be the user control device and the corresponding target backup transmission method is determined to be local area network transmission. If the user control device and the target device are identified as not belonging to the same local area network and the amount of backup data exceeds the local storage capacity, the target backup storage location and the corresponding target backup transmission method are determined based on the current network status information.

[0008] Furthermore, determining the target backup storage location based on the current network status information includes: Determine the current network transmission level based on the current network status information; If the current network transmission level meets the conditions for remote transmission, the target backup storage location is determined to be the user control device, and the corresponding target backup transmission method is determined to be remote transmission. If the current network transmission level does not meet the conditions for remote transmission, the data to be backed up is divided into high-priority data to be backed up and low-priority data to be backed up based on the local storage capacity information. The target backup storage location for the high-priority data to be backed up is determined to be a portable storage device, and the target backup transmission method for the high-priority data to be backed up is determined to be a preset transmission method. The target backup storage location for the low-priority data to be backed up is determined to be a user control device, and the target backup transmission method for the low-priority data to be backed up is determined to be remote transmission.

[0009] Furthermore, the portable storage device also includes a USB interface, which is connected to the target device; Accordingly, identifying the working status of the target device includes: If data interaction is detected at the USB interface, the target device is determined to be in a powered-on state. or, The network probe information is sent to the target device through the wireless network, and upon receiving the probe response information returned by the target device, the working state of the target device is determined to be powered on. If no data interaction is detected at the USB interface and no probe response information is received from the target device, it is determined that the target device is not in a powered-on state.

[0010] Furthermore, the wake-up operation for the target device includes: The network wake-up message is sent to the target device through the wireless network, and the working status of the target device is re-identified; If the target device is not in an active state, a hardware-level wake-up signal is sent to the target device via the USB interface.

[0011] Furthermore, the connection to the wireless network includes: The network connection information of the target device is obtained through the USB interface, and a wireless network is connected based on the network connection information. or, The NFC module obtains the network connection information of the user control device and connects to the wireless network based on the network connection information.

[0012] Secondly, embodiments of this application provide a data backup device based on a portable storage device, the portable storage device including an NFC module and a main control module; the device is configured on the main control module, and the device includes: The device binding unit is used to obtain the user control device identifier through the NFC module, connect to the wireless network, and send the user control device identifier and the preset local device identifier to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier and returns the binding verification result. The permission verification unit is used to, when receiving a successful binding verification result from the cloud server, associate and store the user control device identifier with the preset local device identifier locally, and, in response to the target device data backup instruction, perform user permission verification based on the user control device identifier in the target device data backup instruction. The wake-up unit is used to identify the working state of the target device when the user permission verification is successful, and to perform a wake-up operation on the target device when the working state of the target device is not the power-on state, so as to enable the target device to enter the power-on state. The backup storage unit is used to acquire the data to be backed up in the target device and back up the data when the target device is in the powered-on state.

[0013] Furthermore, the backup storage unit is specifically used for: Obtain current network status information, backup data volume information of the data to be backed up, and local storage capacity information of the portable storage device; Based on the current network status information, the backup data volume information, and the local storage capacity information, the target backup storage location and the corresponding target backup transmission method of the data to be backed up are determined; wherein, the target backup storage location includes portable storage devices and user control devices; The data to be backed up is stored in the target backup storage location using the target backup transmission method.

[0014] Furthermore, the backup storage unit is specifically used for: Based on the current network status information, it can be determined whether the user control device and the target device belong to the same local area network; If the backup data volume is determined to be less than the local storage capacity, the target backup storage location is determined to be a portable storage device and the corresponding target backup transmission method is determined to be a preset transmission method. If the user control device and the target device are identified as belonging to the same local area network and the amount of backup data exceeds the local storage capacity information, the target backup storage location is determined to be the user control device and the corresponding target backup transmission method is determined to be local area network transmission. If the user control device and the target device are identified as not belonging to the same local area network and the amount of backup data exceeds the local storage capacity, the target backup storage location and the corresponding target backup transmission method are determined based on the current network status information.

[0015] Furthermore, the backup storage unit is specifically used for: Determine the current network transmission level based on the current network status information; If the current network transmission level meets the conditions for remote transmission, the target backup storage location is determined to be the user control device, and the corresponding target backup transmission method is determined to be remote transmission. If the current network transmission level does not meet the conditions for remote transmission, the data to be backed up is divided into high-priority data to be backed up and low-priority data to be backed up based on the local storage capacity information. The target backup storage location for the high-priority data to be backed up is determined to be a portable storage device, and the target backup transmission method for the high-priority data to be backed up is determined to be a preset transmission method. The target backup storage location for the low-priority data to be backed up is determined to be a user control device, and the target backup transmission method for the low-priority data to be backed up is determined to be remote transmission.

[0016] Furthermore, the portable storage device also includes a USB interface, which is connected to the target device; Accordingly, the wake-up working unit is specifically used for: If data interaction is detected at the USB interface, the target device is determined to be in a powered-on state. or, The network probe information is sent to the target device through the wireless network, and upon receiving the probe response information returned by the target device, the working state of the target device is determined to be powered on. If no data interaction is detected at the USB interface and no probe response information is received from the target device, it is determined that the target device is not in a powered-on state.

[0017] Furthermore, the wake-up working unit is specifically used for: The network wake-up message is sent to the target device through the wireless network, and the working status of the target device is re-identified; If the target device is not in an active state, a hardware-level wake-up signal is sent to the target device via the USB interface.

[0018] Furthermore, the device binding unit is specifically used for: The network connection information of the target device is obtained through the USB interface, and a wireless network is connected based on the network connection information. or, The NFC module obtains the network connection information of the user control device and connects to the wireless network based on the network connection information.

[0019] Thirdly, embodiments of this application provide a portable storage device, which includes an NFC module and a main control module, the main control module being used to perform the method described in the first aspect.

[0020] Fourthly, embodiments of this application provide a readable storage medium storing a program or instructions, which, when executed by the main control module of a portable storage device, implement the method described in the first aspect.

[0021] In this embodiment, a user control device identifier is obtained via an NFC module, connected to a wireless network, and sent to a cloud server via the wireless network along with a preset local device identifier. The cloud server verifies the binding of the user control device identifier and the preset local device identifier and returns the binding verification result. If the binding verification result returned by the cloud server indicates successful verification, the user control device identifier and the preset local device identifier are locally associated and stored. In response to a target device data backup command, user permission verification is performed based on the user control device identifier in the target device data backup command. If user permission verification is successful, the working status of the target device is identified. If the target device is not in an on state, a wake-up operation is performed to put the target device into an on state. If the target device is in an on state, the data to be backed up in the target device is obtained and backed up. This data backup method based on a portable storage device eliminates the need for manual wake-up of the target device and complex configuration, enabling secure and convenient automatic backup of target device data, effectively ensuring the security of user data and the reliability of the backup task. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating a data backup method based on a portable storage device provided in an embodiment of this application; Figure 2 This is a flowchart illustrating another data backup method based on a portable storage device provided in an embodiment of this application; Figure 3 This is a flowchart illustrating another data backup method based on a portable storage device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a data backup device based on a portable storage device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a portable storage device provided in an embodiment of this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0024] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0025] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0026] The data backup method, apparatus, device, and medium based on portable storage devices provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0027] First, a portable storage device can be a data storage hardware with independent storage capabilities that can interact with other devices via near-field communication (NFC) and wireless networks. Specifically, a portable storage device includes an NFC (Near Field Communication) module and a main control module. As examples, portable storage devices could be NFC smart USB flash drives, portable wireless backup hard drives, and multi-functional backup flash cards, etc., without further limitations.

[0028] Specifically, the NFC module can be a hardware component that enables short-range contactless data transmission based on near-field communication technology; the main control module can be the core processing unit of a portable storage device, possessing data processing, communication control, storage management, and instruction execution capabilities.

[0029] Understandably, this application applies to scenarios requiring automatic and secure backup of data on a target device; correspondingly, the executing entity of this application can be the main control module of a portable storage device. The target device can be a terminal device that requires data backup.

[0030] Understandably, when the main control module of the portable storage device executes the data backup method based on the portable storage device provided in this application embodiment, the portable storage device should be powered on. That is, the portable storage device may also include a power module, which provides stable power to the other modules in the portable storage device. Specifically, the portable storage device may also include a USB interface, which the power module connects to. This USB interface is used to connect to an external power source; the power module itself may also have energy storage capabilities. In other words, the portable storage device can execute the data backup method based on the portable storage device provided in this application embodiment regardless of whether it is connected to an external power source via the USB interface.

[0031] Figure 1 This is a flowchart illustrating a data backup method based on a portable storage device provided in an embodiment of this application. Figure 1 As shown, the specific steps include the following: S101, the user control device identifier is obtained through the NFC module, the wireless network is connected, and the user control device identifier and the preset local device identifier are sent to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier, and returns the binding verification result.

[0032] The user control device can be a mobile or portable smart terminal device with NFC communication capabilities, used to initiate and control backup actions. Correspondingly, the user control device identifier can be a unique device credential provided by the user control device in NFC communication.

[0033] In one embodiment, the method of obtaining the user control device identifier through the NFC module can be that the user control device is brought close to the NFC module, the NFC module automatically reads the NFC data exchange format message simulated or actively sent by the user control device, and parses the NFC data exchange format message to obtain the user control device identifier.

[0034] Among them, a wireless network can be a communication network that transmits data via electromagnetic waves without relying on physical cables.

[0035] In one embodiment, the connection to the wireless network can be achieved by the portable storage device's main control module automatically activating its built-in hotspot function to generate a temporary hotspot after obtaining the user control device's identifier. The user control device connects to this temporary hotspot. After a successful connection, the user inputs the network connection information of the target device's local area network (LAN) on the user control device and transmits this information to the portable storage device's main control module via the temporary hotspot. The portable storage device's main control module then disconnects the temporary hotspot, scans and locates the LAN based on the network connection information, and initiates an access request, thus completing the connection to the wireless network. It is understood that after the portable storage device connects to the wireless network, the portable storage device and the target device belong to the same LAN.

[0036] The preset local device identifier can be a unique device credential pre-written or configured in the portable storage device for self-identification.

[0037] Among them, the cloud server can be a computing service node deployed on the network side, providing identity authentication and device binding management functions.

[0038] In one embodiment, the method of sending the user control device identifier and the preset local device identifier to the cloud server via a wireless network can be achieved by encapsulating the user control device identifier and the preset local device identifier according to a preset data format, sending the encapsulated data to the router corresponding to the local area network via the local area network, and then sending the encapsulated data to a designated port of the cloud server via the router.

[0039] The binding verification result can be status information indicating whether a legitimate binding relationship exists between the user control device and the portable storage device, and can include verification success or verification failure. Specifically, successful verification may indicate that the cloud server confirms that the user control device has the permission to bind to the portable storage device; verification failure may indicate that the cloud server confirms that the user control device does not have the permission to bind to the portable storage device.

[0040] In one embodiment, the cloud server performs binding verification between the user control device identifier and the preset local device identifier, and returns the binding verification result. This can be achieved by the cloud server querying whether the preset local device identifier has a bound user control device identifier. If it exists, the binding verification result is determined to be a verification failure; if it does not exist, the binding verification result is determined to be a verification success. The binding verification result is then returned to the portable storage device via a wireless network.

[0041] S102, if the binding verification result returned by the cloud server is successful, the user control device identifier and the preset local device identifier are locally associated and stored, and in response to the target device data backup instruction, user permission verification is performed according to the user control device identifier in the target device data backup instruction.

[0042] In one embodiment, the binding verification result returned by the cloud server can be received by receiving the response message from the cloud server via a wireless network, parsing the response message, and obtaining the binding verification result therein.

[0043] In one embodiment, the method of storing the user control device identifier and the preset local device identifier locally can be achieved by storing the user control device identifier and the preset local device identifier as key-value pairs in the permission whitelist area.

[0044] The target device data backup instruction can be instruction information used to trigger the target device data backup operation.

[0045] In one embodiment, the method of verifying user rights based on the user control device identifier in the target device data backup instruction can be to compare the user control device identifier carried in the target device data backup instruction with the user control device identifier in the locally associated storage. If the comparison matches, the user rights verification is considered successful.

[0046] S103, if the user permission verification is successful, identify the working state of the target device, and if the working state of the target device is not the power-on state, perform a wake-up operation on the target device to make the target device power-on state.

[0047] The operating state can be a category describing the current power supply and system operation phase of the target device, which can include power-on state, sleep state, and power-off state. Specifically, power-on state means that the operating system is fully running and all hardware is available; sleep state means that the operating system saves its running data in memory, most hardware is powered off, and it can be quickly restored; power-off state means that the power is completely cut off, and a complete boot process is required to start.

[0048] In one embodiment, the working status of the target device can be identified by using a network detection protocol to determine whether the target device is online. If it is determined to be online, the working status of the target device is determined to be powered on.

[0049] In one embodiment, the method of waking up the target device to put it into the power-on state can be by sending a network wake-up message to the target device through a local area network, triggering the target device to return to the power-on state.

[0050] S104, when the target device is in the powered-on state, acquire the data to be backed up in the target device and back up and store the data to be backed up.

[0051] The data to be backed up can be data stored on the target device that needs to be copied to other devices.

[0052] In one embodiment, the method for obtaining the data to be backed up in the target device can be by accessing files and directories at a specified path on the target device.

[0053] In one embodiment, the method for backing up and storing the data to be backed up can be to transmit the data to be backed up to a portable storage device via a preset transmission method, and then write the data to be backed up to the non-volatile storage area on the main control module of the portable storage device.

[0054] In the case of portable storage devices that include a USB interface, the default transmission method is USB transmission; in the case of portable storage devices that do not include a USB interface, the default transmission method is local area network transmission.

[0055] Specifically, USB transmission can establish a physical data transmission channel based on the USB data communication protocol, and complete high-speed serial point-to-point transmission of the data to be backed up through USB differential signal lines; LAN transmission can establish a data interaction link between devices based on the LAN intranet communication protocol, and realize the batch transfer and transmission of the data to be backed up within the wireless LAN by means of intranet IP addressing and port mapping.

[0056] In this embodiment, a user control device identifier is obtained via an NFC module, connected to a wireless network, and sent to a cloud server via the wireless network along with a preset local device identifier. The cloud server verifies the binding of the user control device identifier and the preset local device identifier and returns the binding verification result. If the binding verification result returned by the cloud server indicates successful verification, the user control device identifier and the preset local device identifier are locally associated and stored. In response to a target device data backup command, user permission verification is performed based on the user control device identifier in the target device data backup command. If user permission verification is successful, the working status of the target device is identified. If the target device is not in an on state, a wake-up operation is performed to put the target device into an on state. If the target device is in an on state, the data to be backed up in the target device is obtained and backed up. This data backup method based on a portable storage device eliminates the need for manual wake-up of the target device and complex configuration, enabling secure and convenient automatic backup of target device data, effectively ensuring the security of user data and the reliability of the backup task.

[0057] Figure 2 This is a flowchart illustrating another data backup method based on a portable storage device provided in an embodiment of this application. Figure 2 As shown, the specific steps include the following: S201, the user control device identifier is obtained through the NFC module, the wireless network is connected, and the user control device identifier and the preset local device identifier are sent to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier, and returns the binding verification result.

[0058] S202, if the binding verification result returned by the cloud server is successful, the user control device identifier and the preset local device identifier are locally associated and stored, and in response to the target device data backup instruction, user permission verification is performed according to the user control device identifier in the target device data backup instruction.

[0059] S203, if the user permission verification is successful, identify the working state of the target device, and if the working state of the target device is not the power-on state, perform a wake-up operation on the target device to make the target device power-on state.

[0060] S204, when the target device is in the powered-on state, acquire the data to be backed up in the target device.

[0061] S205, obtain the current network status information, the backup data volume information of the data to be backed up, and the local storage capacity information of the portable storage device.

[0062] The current network status information may include the target IP address and subnet mask of the user control device and the target device.

[0063] Among them, the backup data volume information of the data to be backed up can be a quantitative value that represents the storage space occupied by the data to be backed up, specifically the expected total number of bytes in the compressed file of the data to be backed up.

[0064] Among them, the local storage capacity information of the portable storage device can be a quantitative value describing the remaining available storage space of the portable storage device.

[0065] In one embodiment, the methods for obtaining current network status information, backup data volume information of the data to be backed up, and local storage capacity information of the portable storage device can be as follows: the current network status information is obtained by reading it through the network interface; the backup data volume information of the data to be backed up is obtained by statistical analysis of the target device's file system; and the local storage capacity information is obtained by querying the partition information of the internal storage medium.

[0066] S206, based on the current network status information, the backup data volume information, and the local storage capacity information, determine the target backup storage location and the corresponding target backup transmission method for the data to be backed up; wherein, the target backup storage location includes portable storage devices and user control devices.

[0067] The target backup storage location can be a physical storage entity used to ultimately store the data to be backed up, and may include portable storage devices, user control devices, and cloud servers.

[0068] The target backup transmission method can be the implementation path that transmits the data to be backed up from the target device to the target backup storage location.

[0069] In one embodiment, the method of determining the target backup storage location and corresponding target backup transmission method of the data to be backed up based on the current network status information, backup data volume information, and local storage capacity information can be as follows: if the backup data volume information does not exceed 80% of the local storage capacity information, the target backup storage location is determined to be a portable storage device and the corresponding target backup transmission method is determined to be a preset transmission method; if the backup data volume information exceeds 80% of the local storage capacity information, the target backup storage location is determined to be a user control device, and the corresponding target backup transmission method is determined based on the target IP address and subnet mask of the user control device in the current network status information.

[0070] In one embodiment, determining the target backup storage location of the data to be backed up based on the current network status information, the backup data volume information, and the local storage capacity information includes: identifying whether the user control device and the target device belong to the same local area network (LAN) based on the current network status information; if the backup data volume information does not exceed the local storage capacity information, determining the target backup storage location as a portable storage device and determining the corresponding target backup transmission method as a preset transmission method; if the user control device and the target device belong to the same LAN and the backup data volume information exceeds the local storage capacity information, determining the target backup storage location as the user control device and determining the corresponding target backup transmission method as LAN transmission; if the user control device and the target device do not belong to the same LAN and the backup data volume information exceeds the local storage capacity information, determining the target backup storage location and the corresponding target backup transmission method based on the current network status information.

[0071] In one embodiment, the method of identifying whether the user control device and the target device belong to the same local area network based on the current network status information can be as follows: if the IP addresses of the user control device and the target device in the current network status information are consistent with the network addresses obtained by bitwise AND operation of their respective subnet masks, then it can be determined that the user control device and the target device belong to the same local area network.

[0072] The fact that the amount of backup data does not exceed the local storage capacity indicates that the portable storage device has enough space to accommodate the data to be backed up and does not require external storage. Therefore, the target backup storage location can be determined to be the portable storage device, and the corresponding target backup transmission method can be determined to be the preset transmission method (USB transmission or LAN transmission).

[0073] If the user control device and the target device belong to the same local area network and the amount of backup data exceeds the local storage capacity, it indicates that the portable storage device has insufficient space. However, since the user control device and the target device are in the same broadcast domain, they can transmit data through a high-speed local area network. Therefore, the target backup storage location can be determined to be the user control device and the corresponding target backup transmission method can be determined to be local area network transmission.

[0074] If the user control device and the target device are not on the same local area network and the amount of backup data exceeds the local storage capacity, it indicates that the portable storage device has insufficient space and cannot be directly transmitted to the user control device via the local area network. Therefore, it is necessary to further combine the current network status information to determine the target backup storage location and the corresponding target backup transmission method.

[0075] The current network status information may also include a set of parameters for the remote transmission links. Specifically, the set of parameters for the remote transmission links may include metrics such as network bandwidth, latency, and signal strength.

[0076] In one embodiment, the method of determining the target backup storage location and the corresponding target backup transmission method based on the current network status information can be as follows: if the network bandwidth in the parameter set of the remote transmission link in the current network status information exceeds 10 megabits per second and the delay does not exceed 100 milliseconds, the target backup storage location is determined to be the user control device and the corresponding target backup transmission method is remote transmission; otherwise, the user is prompted to clear the space of the portable storage device or manually select the target backup storage location.

[0077] Among them, remote transmission can be wide area network transmission based on the Internet.

[0078] In one embodiment, determining the target backup storage location based on the current network status information includes: determining the current network transmission level based on the current network status information; if the current network transmission level meets the remote transmission conditions, determining the target backup storage location as a user control device and determining the corresponding target backup transmission method as remote transmission; if the current network transmission level does not meet the remote transmission conditions, dividing the data to be backed up into high-priority data to be backed up and low-priority data to be backed up based on the local storage capacity information, determining the target backup storage location of the high-priority data to be backed up as a portable storage device and determining the target backup transmission method of the high-priority data to be backed up as a preset transmission method, and determining the target backup storage location of the low-priority data to be backed up as a user control device and determining the target backup transmission method of the low-priority data to be backed up as remote transmission.

[0079] The current network transmission level is a quantitative level that is comprehensively evaluated based on the parameter set of the remote transmission link in the current network status information, and is used to characterize the real-time transmission capability of the remote transmission link. As an example, the current network transmission level can be divided into three levels: Level 1, Level 2, and Level 3; Level 1 represents the best transmission conditions, Level 2 represents good transmission conditions, and Level 3 represents poor transmission conditions.

[0080] In one embodiment, the method for determining the current network transmission level based on the current network status information can be to map the network bandwidth, latency, and signal strength in the parameter set of the remote transmission link in the current network status information into scores, and then calculate the corresponding network transmission level as the current network transmission level by weighted summation of each score and according to a preset level threshold table.

[0081] The current network transmission level meets the remote transmission conditions. This can be either level one or level two, indicating that the current remote transmission link is of good quality and can support the stable and efficient transmission of the complete data to be backed up. Therefore, the target backup storage location can be determined to be the user control device, and the corresponding target backup transmission method can be determined to be remote transmission.

[0082] If the current network transmission level does not meet the conditions for remote transmission, it means that the quality of the current remote transmission link is poor (such as insufficient bandwidth, high latency or unstable signal), and cannot support the reliable remote transmission of the complete data to be backed up. Therefore, the data to be backed up needs to be processed in batches, and priority should be given to ensuring the local backup storage of important data on portable storage devices.

[0083] High-priority backup data can be data with relatively small volume but high value to the user. Therefore, the target backup storage location for high-priority backup data is a portable storage device, and the target backup transmission method is a preset transmission method (USB transmission or LAN transmission). Low-priority backup data can be data with large volume but low recovery cost. Therefore, the target backup storage location for low-priority backup data is a user-controlled device, and the target backup transmission method is remote transmission.

[0084] In one embodiment, the data to be backed up is divided into high-priority data and low-priority data based on the amount of backup data and the local storage capacity. This can be done by sorting the data by file type or modification time, and then selecting data from the sorted results in order of priority based on the local storage capacity until the amount of selected data reaches the local storage capacity. The selected data is then designated as high-priority data, and the remaining unselected data in the sorted results is designated as low-priority data.

[0085] The advantage of this solution is that it can automatically back up complete data remotely to the user's control device when the remote transmission network conditions are good, making full use of the convenience of remote transmission; when the remote transmission network conditions are poor, it prioritizes the reliable storage of high-priority data to portable storage devices via local transmission (USB or LAN) to ensure that critical data is not lost, while making every effort to back up low-priority data via remote transmission, thereby achieving a reasonable allocation of storage and network resources and improving the robustness of the backup process and user experience.

[0086] The advantage of this solution is that it automatically backs up data remotely to the user's control device when network conditions meet the requirements, making full use of remote transmission capabilities to solve the problem of insufficient local storage; when network conditions are poor, it promptly prompts the user to intervene, avoiding backup delays or data loss due to slow or failed remote transmission, thereby improving the system's adaptability and user experience while ensuring backup reliability.

[0087] S207, The data to be backed up is stored in the target backup storage location using the target backup transmission method.

[0088] The advantage of this solution is that it dynamically selects the optimal backup storage location by comprehensively considering current network status information, backup data volume information, and local storage capacity information, thus avoiding backup failures due to insufficient local space or poor network conditions and enhancing the flexibility and robustness of backup tasks.

[0089] Figure 3 This is a flowchart illustrating another data backup method based on a portable storage device provided in this application. Figure 3 As shown, the specific steps include the following: S301, the user control device identifier is obtained through the NFC module, the wireless network is connected, and the user control device identifier and the preset local device identifier are sent to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier, and returns the binding verification result.

[0090] The USB interface can be a physical connection port conforming to the Universal Serial Bus standard, which directly establishes a wired data communication link with the target device. It is understood that this USB interface is a data communication interface, independent of the aforementioned USB interface used to connect to an external power source; the two are physically separate, each handling power supply and data transmission functions respectively.

[0091] In one embodiment, connecting to the wireless network includes: obtaining network connection information of the target device through the USB interface and connecting to the wireless network based on the network connection information; or, obtaining network connection information of the user control device through the NFC module and connecting to the wireless network based on the network connection information.

[0092] The network connection information of the target device can be a set of parameters describing the local area network currently connected to the target device, which may include service set identifiers and authentication credentials.

[0093] In one embodiment, the method of obtaining the network connection information of the target device through the USB interface can be that the main control module of the portable storage device initiates a request to the target device through the USB interface, and the target device returns the network connection information of its currently connected local area network.

[0094] The network connection information of the user control device can be a set of parameters describing the local area network currently accessed by the user control device, assuming that the user control device and the target device belong to the same local area network. Understandably, in this case, the network connection information of the user control device is consistent with that of the target device.

[0095] In one embodiment, obtaining network connection information of a user control device via an NFC module can be achieved when the user control device and the target device are on the same local area network. The user control device is brought close to the NFC module, and the NFC module automatically reads NFC data exchange format messages simulated or actively sent by the user control device, and parses these messages to obtain the user control device's network connection information. In other words, a portable storage device can simultaneously obtain both the user control device's identifier and its network connection information via the NFC module.

[0096] In one embodiment, the method of connecting to a wireless network based on network connection information can be achieved by having the main control module of a portable storage device scan and select a matching wireless access point based on the network connection information, and establish a wireless network connection after completing identity authentication.

[0097] The advantage of this setup is that portable storage devices can automatically obtain available network connection information from the target device or user control device without needing to pre-configure or manually enter wireless network credentials, thus reducing the complexity of user operations.

[0098] S302, if the binding verification result returned by the cloud server is successful, the user control device identifier and the preset local device identifier are locally associated and stored, and in response to the target device data backup instruction, user permission verification is performed according to the user control device identifier in the target device data backup instruction.

[0099] S303, if user authorization verification is successful and data interaction is detected at the USB interface, determine that the target device is in a powered-on state; or, send network probe information to the target device via the wireless network, and determine that the target device is in a powered-on state upon receiving probe response information returned by the target device.

[0100] Data interaction can refer to data packets or link layer handshake signals transmitted via the USB bus.

[0101] In one embodiment, the method for identifying whether data interaction exists on the USB interface can be to detect changes in the bus activity flag or port status register on the USB interface at a preset period. If a non-idle bus state is detected or a valid USB data packet is received, it is determined that data interaction exists.

[0102] The detection of data interaction at the USB interface indicates that the target device has been powered on and completed the initialization of the USB controller, and is able to respond to transmission requests on the USB bus. Therefore, it can be determined that the target device is in the powered-on state.

[0103] Among them, network probe information can be request messages used to verify the network activity and operating system reachability of the target device.

[0104] In one embodiment, the method of sending network probe information to the target device via a wireless network can be by sending an ICMP echo request to the target device via a local area network or by sending a TCP SYN packet to a specific port.

[0105] The probe response information can be the response message returned by the target device in response to the network probe information.

[0106] The receipt of a probe response from the target device indicates that the target device has connected to the network and its operating system is in a state that can respond to external requests. Therefore, it can be determined that the target device is in a powered-on state.

[0107] S304, if no data interaction is detected at the USB interface and no probe response information is received from the target device, it is determined that the target device is not in the powered-on state.

[0108] If no data interaction is detected at the USB interface and no probe response is received from the target device, it indicates that the target device is not communicating via USB and is not responding at the network layer. This means that the target device may be in a sleep, hibernation, or power-off state. Therefore, it can be determined that the target device is not in a powered-on state.

[0109] S305, if the target device is not in the power-on state, a wake-up operation is performed on the target device to make the target device power on.

[0110] In one embodiment, the wake-up operation of the target device includes: sending network wake-up information to the target device through the wireless network and re-identifying the working state of the target device; and, if the working state of the target device is not power-on, sending a hardware-level wake-up signal to the target device through the USB interface.

[0111] The network wake-up information can be a data frame used to trigger the target device to restore from a non-power-on state to a power-on state, such as a WOL (Wake-on-LAN) magic packet. Specifically, a WOL magic packet can be a specific Ethernet frame payload structure that contains the target device's data link layer address and repeats that address sixteen times.

[0112] In one embodiment, the method of sending Wake-up Network information to a target device via a wireless network can be to send UDP (User Datagram Protocol) data packets to the broadcast address or a specified IP address of the target device via a local area network. The UDP data packets are encapsulated with WOL magic packets.

[0113] Among them, the working status of the target device is re-identified to confirm whether the network wake-up operation has successfully put the target device into the power-on state. If it is still unsuccessful, the backup wake-up scheme is activated.

[0114] Among them, the hardware-level wake-up signal can be an electrical or protocol-level signal that is sent directly to the target device via the USB bus, simulating the behavior of a human-machine interface (HID) device to trigger system recovery.

[0115] In one embodiment, sending a hardware-level wake-up signal to a target device via a USB interface can be achieved by configuring the USB controller to HID device mode, simulating a standard HID device via the USB interface to send a wake-up button sequence (i.e., a hardware-level wake-up signal) to the target device, and using the USB suspend-resume mechanism or an interrupt request to bring the target device into the power-on state.

[0116] The advantage of this solution is that it prioritizes Wake-on-LAN, which requires no physical contact and has a wide coverage area. When Wake-on-LAN fails, it automatically degrades to USB hardware-level wake-on-LAN, leveraging the high reliability and low latency of wired connections to provide a redundant wake-on-LAN mechanism, significantly improving the wake-on-LAN success rate.

[0117] S306, when the target device is in the powered-on state, acquire the data to be backed up in the target device and back up and store the data to be backed up.

[0118] The advantage of this solution is that by using two complementary working state recognition mechanisms, the robustness and applicability of the target device's power-on status detection are improved, avoiding misjudgments due to the failure of a single detection method, thereby ensuring that the wake-up operation is only performed when necessary.

[0119] Figure 4 This is a schematic diagram of a data backup device based on a portable storage device provided in an embodiment of this application. Figure 4 As shown, the device includes: The device binding unit 410 is used to obtain the user control device identifier through the NFC module, connect to the wireless network, and send the user control device identifier and the preset local device identifier to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier and returns the binding verification result. The permission verification unit 420 is used to, when receiving a successful binding verification result from the cloud server, associate and store the user control device identifier with the preset local device identifier locally, and, in response to the target device data backup instruction, perform user permission verification based on the user control device identifier in the target device data backup instruction. The wake-up unit 430 is used to identify the working state of the target device when the user permission verification is successful, and to perform a wake-up operation on the target device when the working state of the target device is not the power-on state, so as to enable the target device to enter the power-on state. The backup storage unit 440 is used to acquire the data to be backed up in the target device and back up the data when the target device is in the power-on state.

[0120] Furthermore, the backup storage unit 440 is specifically used for: Obtain current network status information, backup data volume information of the data to be backed up, and local storage capacity information of the portable storage device; Based on the current network status information, the backup data volume information, and the local storage capacity information, the target backup storage location and the corresponding target backup transmission method of the data to be backed up are determined; wherein, the target backup storage location includes portable storage devices and user control devices; The data to be backed up is stored in the target backup storage location using the target backup transmission method.

[0121] Furthermore, the backup storage unit 440 is specifically used for: Based on the current network status information, it can be determined whether the user control device and the target device belong to the same local area network; If the backup data volume is determined to be less than the local storage capacity, the target backup storage location is determined to be a portable storage device and the corresponding target backup transmission method is determined to be a preset transmission method. If the user control device and the target device are identified as belonging to the same local area network and the amount of backup data exceeds the local storage capacity information, the target backup storage location is determined to be the user control device and the corresponding target backup transmission method is determined to be local area network transmission. If the user control device and the target device are identified as not belonging to the same local area network and the amount of backup data exceeds the local storage capacity, the target backup storage location and the corresponding target backup transmission method are determined based on the current network status information.

[0122] Furthermore, the backup storage unit 440 is specifically used for: Determine the current network transmission level based on the current network status information; If the current network transmission level meets the conditions for remote transmission, the target backup storage location is determined to be the user control device, and the corresponding target backup transmission method is determined to be remote transmission. If the current network transmission level does not meet the conditions for remote transmission, the data to be backed up is divided into high-priority data to be backed up and low-priority data to be backed up based on the local storage capacity information. The target backup storage location for the high-priority data to be backed up is determined to be a portable storage device, and the target backup transmission method for the high-priority data to be backed up is determined to be a preset transmission method. The target backup storage location for the low-priority data to be backed up is determined to be a user control device, and the target backup transmission method for the low-priority data to be backed up is determined to be remote transmission.

[0123] Furthermore, the portable storage device also includes a USB interface, which is connected to the target device; Accordingly, the wake-up working unit 430 is specifically used for: If data interaction is detected at the USB interface, the target device is determined to be in a powered-on state. or, The network probe information is sent to the target device through the wireless network, and upon receiving the probe response information returned by the target device, the working state of the target device is determined to be powered on. If no data interaction is detected at the USB interface and no probe response information is received from the target device, it is determined that the target device is not in a powered-on state.

[0124] Furthermore, the wake-up working unit 430 is specifically used for: The target device is sent a Wake-on-LAN message via the wireless network, and the working status of the target device is re-identified. If the target device is not in an active state, a hardware-level wake-up signal is sent to the target device via the USB interface.

[0125] Furthermore, the device binding unit 410 is specifically used for: The network connection information of the target device is obtained through the USB interface, and a wireless network is connected based on the network connection information. or, The NFC module obtains the network connection information of the user control device and connects to the wireless network based on the network connection information.

[0126] In this embodiment, the device binding unit is used to obtain a user control device identifier via an NFC module, connect to a wireless network, and send the user control device identifier and a preset local device identifier to a cloud server via the wireless network. The cloud server verifies the binding of the user control device identifier and the preset local device identifier and returns the binding verification result. The permission verification unit, upon receiving a successful binding verification result from the cloud server, locally associates and stores the user control device identifier and the preset local device identifier, and, in response to a target device data backup instruction, performs user permission verification based on the user control device identifier in the target device data backup instruction. The wake-up unit, upon successful user permission verification, identifies the working state of the target device and, if the target device is not in a powered-on state, performs a wake-up operation to put the target device into a powered-on state. The backup storage unit, when the target device is in a powered-on state, obtains the data to be backed up in the target device and performs backup storage of the data to be backed up. The aforementioned data backup device based on portable storage devices can safely and conveniently complete the automatic backup of target device data without requiring users to manually wake up the target device or perform complex configurations, effectively ensuring the security of user data and the reliability of backup tasks.

[0127] The data backup device based on portable storage device provided in this application can realize the various processes implemented in the above embodiments. To avoid repetition, it will not be described again here.

[0128] Figure 5 This is a schematic diagram of the structure of a portable storage device provided in an embodiment of this application. For example... Figure 5 As shown in the figure, this application embodiment also provides a portable storage device 500, including an NFC module 501 and a main control module 502. The main control module 502 is used to execute the various processes of the above-described data backup method embodiment based on the portable storage device, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0129] In one embodiment, the portable storage device further includes a power module, a USB interface 1, and a USB interface 2. Specifically, the power module provides stable power to each module in the portable storage device and has energy storage capabilities; the USB interface 1 is used to connect to an external power source to input power to the power module; and the USB interface 2 is used to establish a wired data communication link with the target device to achieve data interaction.

[0130] The portable storage device in this application embodiment can be a standalone device, or it can be an integrated component or pluggable part in other devices (which can be mobile electronic devices or non-mobile electronic devices).

[0131] For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. The embodiments of this application do not impose specific limitations.

[0132] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by the main control module of the portable storage device, they implement the various processes of the above-described data backup method embodiments based on the portable storage device and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0133] The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0134] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are 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 limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0136] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0137] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.

Claims

1. A data backup method based on a portable storage device, characterized in that, The portable storage device includes an NFC module, a main control module, and a USB interface, the USB interface being connected to the target device; The method is executed by the main control module, and the method includes: The user control device identifier is obtained through the NFC module, connected to the wireless network, and sent to the cloud server through the wireless network along with the preset local device identifier. The cloud server then performs binding verification on the user control device identifier and the preset local device identifier and returns the binding verification result. If the binding verification result returned by the cloud server is successful, the user control device identifier and the preset local device identifier are locally associated and stored, and in response to the target device data backup instruction, user permission verification is performed according to the user control device identifier in the target device data backup instruction. If user authorization verification is successful and data interaction is detected at the USB interface, the target device is determined to be in a powered-on state; alternatively, network probe information is sent to the target device via the wireless network, and if a probe response is received from the target device, the target device is determined to be in a powered-on state; if no data interaction is detected at the USB interface and no probe response is received from the target device, the target device is determined to be in a powered-on state; if the target device is not in a powered-on state, a wake-up operation is performed on the target device to bring it into a powered-on state. When the target device is powered on, the data to be backed up in the target device is acquired and backed up and stored.

2. The data backup method based on a portable storage device according to claim 1, characterized in that, The process of backing up and storing the data to be backed up includes: Obtain current network status information, backup data volume information of the data to be backed up, and local storage capacity information of the portable storage device; Based on the current network status information, the backup data volume information, and the local storage capacity information, the target backup storage location and the corresponding target backup transmission method of the data to be backed up are determined; wherein, the target backup storage location includes portable storage devices and user control devices; The data to be backed up is stored in the target backup storage location using the target backup transmission method.

3. The data backup method based on a portable storage device according to claim 2, characterized in that, The step of determining the target backup storage location and corresponding target backup transmission method for the data to be backed up based on the current network status information, the backup data volume information, and the local storage capacity information includes: Based on the current network status information, it can be determined whether the user control device and the target device belong to the same local area network; If the backup data volume is determined to be less than the local storage capacity, the target backup storage location is determined to be a portable storage device and the corresponding target backup transmission method is determined to be a preset transmission method. If the user control device and the target device are identified as belonging to the same local area network and the amount of backup data exceeds the local storage capacity information, the target backup storage location is determined to be the user control device and the corresponding target backup transmission method is determined to be local area network transmission. If the user control device and the target device are identified as not belonging to the same local area network and the amount of backup data exceeds the local storage capacity, the target backup storage location and the corresponding target backup transmission method are determined based on the current network status information.

4. The data backup method based on a portable storage device according to claim 3, characterized in that, Determining the target backup storage location based on the current network status information includes: Determine the current network transmission level based on the current network status information; If the current network transmission level meets the conditions for remote transmission, the target backup storage location is determined to be the user control device, and the corresponding target backup transmission method is determined to be remote transmission. If the current network transmission level does not meet the conditions for remote transmission, the data to be backed up is divided into high-priority data to be backed up and low-priority data to be backed up based on the local storage capacity information. The target backup storage location for the high-priority data to be backed up is determined to be a portable storage device, and the target backup transmission method for the high-priority data to be backed up is determined to be a preset transmission method. The target backup storage location for the low-priority data to be backed up is determined to be a user control device, and the target backup transmission method for the low-priority data to be backed up is determined to be remote transmission.

5. The data backup method based on a portable storage device according to claim 1, characterized in that, The wake-up operation of the target device includes: The target device is sent a Wake-on-LAN message via the wireless network, and the working status of the target device is re-identified. If the target device is not in an active state, a hardware-level wake-up signal is sent to the target device via the USB interface.

6. The data backup method based on a portable storage device according to claim 1, characterized in that, The connection to the wireless network includes: The network connection information of the target device is obtained through the USB interface, and a wireless network is connected based on the network connection information. or, The NFC module obtains the network connection information of the user control device and connects to the wireless network based on the network connection information.

7. A data backup device based on a portable storage device, characterized in that, The portable storage device includes an NFC module, a main control module, and a USB interface, the USB interface being connected to the target device; The device is configured in the main control module, and the device includes: The device binding unit is used to obtain the user control device identifier through the NFC module, connect to the wireless network, and send the user control device identifier and the preset local device identifier to the cloud server through the wireless network. The cloud server performs binding verification on the user control device identifier and the preset local device identifier and returns the binding verification result. The permission verification unit is used to, when receiving a successful binding verification result from the cloud server, associate and store the user control device identifier with the preset local device identifier locally, and, in response to the target device data backup instruction, perform user permission verification based on the user control device identifier in the target device data backup instruction. The wake-up unit is configured to: upon successful user authorization verification and detection of data interaction at the USB interface, determine that the target device is in a powered-on state; or, send network probe information to the target device via the wireless network and, upon receiving probe response information from the target device, determine that the target device is in a powered-on state; if no data interaction is detected at the USB interface and no probe response information is received from the target device, determine that the target device is not in a powered-on state; and, if the target device is not in a powered-on state, perform a wake-up operation on the target device to bring it into a powered-on state. The backup storage unit is used to acquire the data to be backed up in the target device and back up the data when the target device is in the powered-on state.

8. A portable storage device, characterized in that, It includes an NFC module, a main control module, and a USB interface, wherein the USB interface is connected to a target device, and the main control module is used to execute the data backup method based on a portable storage device as described in any one of claims 1-6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instruction, which, when executed by the main control module of the portable storage device, implements the data backup method based on the portable storage device as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Data backup method suitable for energy consumption control platform

    CN103634133A

  • Mobile terminal data intelligent backup method and device, mobile terminal and storage medium

    CN120973600A

  • NFC trigger control method integrating wireless charging and automatic data backup

    CN121166448A