Data backup method and electronic device
By detecting the depth, temperature and status information of electronic devices and dynamically selecting the backup method, the problem of low data backup efficiency in emergencies is solved, and fast and flexible data backup is achieved.
Patent Information
- Application Number
- CN202111480800.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2041-12-06
AI Technical Summary
In the prior art, electronic devices cannot backup data in a timely manner in an emergency (such as falling into the water), resulting in low backup efficiency.
By detecting the depth information, temperature information and status information of electronic devices, dynamically selecting a backup method suitable for the current scenario, such as using SD cards when falling into the water, using remote devices when falling, and using SD cards when falling.
It realizes rapid data backup in emergencies, improves the efficiency and flexibility of backup data of electronic devices, and avoids data loss.
Smart Images

Figure CN114296997B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technologies, and particularly relates to a data backup method and an electronic device. Background Art
[0002] Currently, data backup is a basic function in electronic devices. Generally, users can back up the data that needs to be saved to the cloud through a cloud disk application.
[0003] However, in the above method, the electronic device needs to store the data that the user needs to save to the cloud through the network. In case of an emergency (such as falling into water), the electronic device may not be able to back up the data in time. Thus, due to the relatively single data backup method of the electronic device, the efficiency of backing up data by the electronic device is low. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a data backup method and an electronic device, which can solve the problem of low efficiency of backing up data by the electronic device.
[0005] In a first aspect, the embodiments of this application provide a data backup method, which includes: when it is detected that the electronic device is in a preset state, obtaining first information, where the first information includes at least one of the following: depth information, temperature information, and status information; according to the first information, using a corresponding first method to back up first content in the electronic device; where the depth information is used to indicate the water depth detected after the electronic device falls into water, the temperature information is used to indicate the device temperature of the electronic device or the environmental temperature where the electronic device is located, and the status information is used to indicate whether the electronic device is in a falling state.
[0006] In a second aspect, the embodiments of this application provide a data backup device, which includes: an obtaining module and a backup module. The obtaining module is configured to obtain first information when it is detected that the electronic device is in a preset state, where the first information includes at least one of the following: depth information, temperature information, and status information. The backup module is configured to, according to the first information obtained by the obtaining module, use a corresponding first method to back up first content in the electronic device; where the depth information is used to indicate the water depth detected after the electronic device falls into water, the temperature information is used to indicate the device temperature of the electronic device or the environmental temperature where the electronic device is located, and the status information is used to indicate whether the electronic device is in a falling state.
[0007] In a third aspect, the embodiments of this application provide an electronic device, which includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] Fourthly, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] Fifthly, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a program or instructions to implement the method described in the first aspect.
[0010] In the embodiment of the present application, the electronic device can determine a backup device corresponding to the first information according to the first information to perform data backup. Through the solution of the present application, since the electronic device can determine the current scenario of the electronic device according to the first information to select a more suitable backup method for data backup in the current scenario, that is, the electronic device can dynamically select a corresponding backup method according to the current scenario of the electronic device to perform data backup, so as to quickly back up the data in the electronic device to the backup device. Therefore, the problem that the electronic device cannot back up data in time in an emergency is avoided, thereby improving the flexibility and efficiency of data backup of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is one of the flowcharts of a data backup method provided by an embodiment of the present application;
[0012] Figure 2 is the second flowchart of a data backup method provided by an embodiment of the present application;
[0013] Figure 3 is the third flowchart of a data backup method provided by an embodiment of the present application;
[0014] Figure 4 is the fourth flowchart of a data backup method provided by an embodiment of the present application;
[0015] Figure 5 is the structural schematic diagram of a data table backup device provided by an embodiment of the present application;
[0016] Figure 6 is the first hardware structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0017] Figure 7 is the second hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.
[0020] The data backup method provided in the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0021] With the continuous development of cloud service technology, cloud backup technology has become increasingly mature. Since cloud backup has the characteristics of backing up a large amount of data, supporting multi-platform management, encrypted and secure data transmission, and being unrestricted by space and electronic devices, generally, in order to reduce the storage pressure of electronic devices and the costs of data maintenance and management, users can back up some important personal data (such as address books, text messages, and pictures) on the cloud server through cloud storage, so as to avoid data loss on the electronic device due to user operation errors. When a user backs up personal data to the cloud server, the electronic device needs to transmit the data in the electronic device to the cloud server through the network. However, in an emergency (such as when the electronic device falls into water), due to the poor network quality of the environment where the electronic device is located, the rate at which the electronic device sends backup data to the cloud server is low, resulting in the electronic device being unable to back up the data to the cloud server in time. Thus, the efficiency of backing up data on the electronic device is low.
[0022] It should be noted that data backup is the basis of disaster recovery, which refers to the process of copying all or part of the data set from the hard disk or array of the application host to other storage media to prevent data loss caused by system operation errors or system failures.
[0023] In an embodiment of the present application, an electronic device may determine a backup device corresponding to the first information according to the first information to perform data backup. Through the solution of the present application, since the electronic device can determine the scene where the electronic device is currently located according to the first information, so as to select a backup method more suitable for the current scene to perform data backup, that is, the electronic device can dynamically select a corresponding backup method according to the scene where the electronic device is currently located and the state of the electronic device in the current scene to perform data backup, so as to quickly back up the data in the electronic device to the backup device. Therefore, the problem that the electronic device cannot back up data in time in an emergency is avoided, thereby improving the flexibility and efficiency of the electronic device for backing up data.
[0024] An embodiment of the present application provides a data backup method. Figure 1 The flowchart of a data backup method provided by an embodiment of the present application is shown. As Figure 1 shown, the data backup method provided by the embodiment of the present application may include the following steps 201 and 202.
[0025] Step 201: When it is detected that the electronic device is in a preset state, the electronic device obtains the first information.
[0026] In an embodiment of the present application, the above first information includes at least one of the following: depth information, temperature information, and status information. The depth information is used to indicate the water depth detected after the electronic device falls into the water. The temperature information is used to indicate the device temperature of the electronic device or the environmental temperature where the electronic device is located. The status information is used to indicate whether the electronic device is in a falling state.
[0027] In an embodiment of the present application, the electronic device may detect in real time whether the electronic device is in a preset state (such as a falling into water state, a high temperature state, or a falling state) through a sensor in the electronic device to obtain the first information. Thus, the electronic device can determine a corresponding backup device according to the first information to back up the data in the electronic device to the backup device. It can be understood that when the electronic device detects that the current state is a preset state, the electronic device can perform emergency backup, that is, select the device with the maximum data transmission rate in this state (that is, the device corresponding to the first information) to quickly back up the data in the electronic device to this device.
[0028] Optionally, in an embodiment of the present application, the electronic device may obtain the water depth after the electronic device falls into the water through an ultrasonic sensor (that is, the electronic device can determine the water depth through the round-trip time of the ultrasonic signal and the propagation rate of the ultrasonic signal); or, the electronic device may obtain the device temperature of the electronic device or the temperature of the surrounding environment of the electronic device through a temperature sensor; or, the electronic device may determine whether the electronic device is in a falling state through an acceleration sensor.
[0029] Optionally, in the embodiments of the present application, the above ultrasonic sensor may be any one of the following: a general ultrasonic sensor, a broadband ultrasonic sensor, a sealed ultrasonic sensor, a high-frequency ultrasonic sensor, etc. Specifically, it may be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.
[0030] Optionally, in the embodiments of the present application, the above temperature sensor may be any one of the following: a platinum resistance temperature sensor, a thermocouple temperature sensor, a thermistor temperature sensor, an analog temperature sensor, a digital temperature sensor, etc. Specifically, it may be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.
[0031] Optionally, in the embodiments of the present application, the above acceleration sensor may be any one of the following: a piezoelectric acceleration sensor, a piezoresistive acceleration sensor, a capacitive acceleration sensor, a servo acceleration sensor, etc. Specifically, it may be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.
[0032] Optionally, in the embodiments of the present application, the above device temperature refers to the temperature of the battery in the electronic device or the temperature of the main board in the electronic device.
[0033] Optionally, in the embodiments of the present application, the electronic device may determine whether the change amount of the acceleration value of the electronic device is greater than or equal to a preset threshold, or whether the acceleration value of the electronic device is the gravitational acceleration value through the acceleration sensor to determine that the electronic device is in a falling state.
[0034] Step 202, the electronic device backs up the first content in the electronic device by using a corresponding first method according to the first information.
[0035] In the embodiments of the present application, the electronic device may determine a backup method (i.e., the first method) corresponding to the first information according to the first information of the scene where the electronic device is located, so as to back up the data (i.e., the first content) in the electronic device to a backup device.
[0036] In the first case, when the electronic device is in a water entry scenario / water entry state, since the SD card has the largest data transmission rate compared with other electronic devices and cloud servers and is not easily damaged in water, the electronic device may preferentially use the SD card as the backup device, that is, preferentially back up the data in the electronic device to the SD card.
[0037] In the second case, when the electronic device detects that it is in a high-temperature scenario, since high temperature can cause the SD card to fail, the electronic device can preferentially use a remote device (i.e., other electronic devices or cloud servers) as a backup device. That is, the data to be backed up in the electronic device is preferentially backed up to the remote device.
[0038] In the third case, when the electronic device detects that it is in a fallen state, since the SD card has the highest data transfer rate compared to other electronic devices and cloud servers, the efficiency of backing up data is the highest. Therefore, the electronic device can use the SD card as a backup device, that is, the data to be backed up in the electronic device is preferentially backed up to the SD card.
[0039] It should be noted that the data in the above-mentioned electronic device can be understood as the data to be backed up in the electronic device, and the data to be backed up is all or part of the data in the electronic device.
[0040] Optionally, in the embodiments of the present application, the above-mentioned partial data can be the data to be backed up selected by the user preset in the electronic device, or the data to be backed up selected by the electronic device according to the usage information of the data in the electronic device (such as the total number of uses, usage frequency, usage time, usage duration, etc.). It can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit it.
[0041] Optionally, in the embodiments of the present application, the above-mentioned backup device may include at least one of the following: a Secure Digital Memory (SD) card, other electronic devices, cloud servers, hard disks, or optical discs and other electronic devices with storage functions.
[0042] Optionally, in the embodiments of the present application, the user can add at least one device identifier (such as the identifier of the SD card, the identifier of other electronic devices, etc.) to the backup device list in the settings interface in advance, so that the electronic device can determine the device corresponding to this device identifier as the backup device.
[0043] It should be noted that the above-mentioned SD card can be the SD card in the electronic device, or it can also be the SD card in other electronic devices; the above-mentioned other electronic devices are electronic devices having a connection relationship with the electronic device; the above-mentioned cloud server is a server having an association relationship with the electronic device.
[0044] Optionally, in the embodiments of the present application, when the electronic device is not in the preset state (i.e., when the electronic device is in the normal state), the electronic device can back up data according to the backup device selected by the user.
[0045] Optionally, in the embodiments of the present application, when the electronic device is not in the preset state, the electronic device can automatically trigger data backup (that is, every preset time period, the electronic device can automatically perform data backup processing). When performing data backup, the electronic device can detect whether there is remaining storage space in the cloud server. If there is remaining storage space in the cloud server, the electronic device will back up the data to be backed up to the cloud server. If the remaining storage space in the cloud server is less than the preset storage space, the electronic device detects whether there is remaining space in the SD card. If there is remaining space in the SD card, the electronic device backs up the data to be backed up to the SD card. If there is no remaining space in the SD card, the electronic device can back up the data to be backed up to other electronic devices connected to the electronic device.
[0046] Optionally, in the embodiments of the present application, step 202 above can be specifically implemented by the following step 203.
[0047] Step 203: According to the first information, the electronic device sequentially backs up the data of multiple application programs in the device corresponding to the first information according to the target priority information.
[0048] In the embodiments of the present application, the above target priority information is used to indicate the backup priorities of the data of multiple application programs.
[0049] Optionally, in the embodiments of the present application, the above target priority information can be determined by the system default priority information (such as the sorting of the data volumes of the data), the priority information set by the user, or the historical usage information of the application program (such as the data of the application program with the most usage times).
[0050] In the embodiments of the present application, after the electronic device determines the backup device according to the first information, the electronic device can back up the data to be backed up according to the priority of the data to be backed up, that is, the electronic device can back up the data in the electronic device according to the backup priority, avoiding the loss of important data in the electronic device and improving the efficiency of backing up data of the electronic device.
[0051] The embodiments of the present application provide a data backup method. The electronic device can determine a backup device corresponding to the first information to perform data backup. Through the solution of the present application, since the electronic device can determine the current scenario where the electronic device is located according to the first information, so as to select a more suitable backup method for the current scenario to perform data backup, that is, the electronic device can dynamically select the corresponding backup method according to the current scenario where the electronic device is located and the current state of the electronic device to perform data backup, so as to quickly back up the data in the electronic device to the backup device. Therefore, it avoids the problem that the electronic device cannot back up the data in time in an emergency, thereby improving the flexibility and efficiency of the electronic device in backing up data.
[0052] Optionally, in an implementation manner of the embodiments of the present application, the above-mentioned first information includes depth information. Combining Figure 1 , as Figure 2 shown, before the above-mentioned step 202, the data backup method provided by the embodiments of the present application further includes the following step 301, and the above-mentioned step 202 can be specifically implemented by the following step 202a or step 202b.
[0053] Step 301: The electronic device determines whether the water depth after the electronic device falls into the water is less than or equal to a preset depth.
[0054] In the embodiments of the present application, the electronic device can detect the water depth after the current electronic device falls into the water through an ultrasonic sensor, so as to judge whether the water depth is greater than or equal to the preset depth according to the detection result.
[0055] Step 202a: When the water depth detected after the electronic device is in the water-falling state is less than or equal to the preset depth, the electronic device backs up the data in the electronic device in the SD card of the electronic device.
[0056] In the embodiments of the present application, when the water depth detected after the electronic device detects the water-falling state is less than or equal to the preset water depth (for example, 1.8 meters), it can be determined that the water depth when the electronic device is in the water-falling state is relatively shallow, that is, it is judged that the water-falling scenario of the electronic device is specifically a swimming pool or a washbasin, etc. In this scenario, the user can retrieve the electronic device. Since the SD card is not easily damaged in water and the speed of backing up data is relatively fast, the electronic device can choose to back up the data in the electronic device in the SD card.
[0057] It can be understood that when the water depth detected after the electronic device is in the water-falling state is less than or equal to the preset depth and the remaining storage space of the SD card is sufficient (greater than or equal to a preset threshold), the electronic device can back up the data in the electronic device in the SD card.
[0058] Optionally, in the embodiments of the present application, when the water depth detected by the electronic device after the water entry state is less than or equal to a preset depth and the remaining storage space of the SD card is insufficient (less than a preset threshold), the electronic device may back up the data in the electronic device by overwriting at least a part of the data stored in the SD card (such as the data with the longest storage time, the least number of uses, the data with a usage duration less than a preset duration, etc.), or the electronic device may back up the data in the electronic device in a cloud server associated with the electronic device or other electronic devices.
[0059] Step 202b: When the water depth detected by the electronic device after the water entry state is greater than the preset depth, the electronic device backs up the data in the electronic device in a cloud server associated with the electronic device or other electronic devices.
[0060] In the embodiments of the present application, when the water depth of the electronic device after detecting the water entry state is greater than the preset water depth (such as 1.8 meters), it may be determined that the water depth of the electronic device when in the water entry state is relatively deep, that is, it is determined that the water entry scenario of the electronic device is specifically a river or a lake, etc. In this scenario, it is difficult for the user to retrieve the electronic device, so the electronic device preferentially uses a remote device associated with the electronic device as a backup device.
[0061] It should be noted that the cloud server associated with the electronic device may be understood as: the cloud server corresponding to the application program in the electronic device, or the cloud server corresponding to the application account of the electronic device. The other electronic devices associated with the electronic device may be understood as: the electronic devices having a connection relationship with the electronic device.
[0062] Optionally, in the embodiments of the present application, the electronic device may back up the data in the electronic device to the SD card in other electronic devices; or, the electronic device may back up the data in the electronic device to the local storage area of other electronic devices, and the local storage area may be a storage area corresponding to the data type in the electronic device, or may be a dedicated storage area for the data in the electronic device.
[0063] Optionally, in the embodiments of the present application, the user may add the device identifier of other electronic devices (such as a smart watch) to the backup device list in the setting interface, so that the electronic device can directly connect to the other electronic device when backing up data.
[0064] Optionally, in the embodiments of the present application, the electronic device may establish a connection with other electronic devices through a network (such as Wireless Fidelity (WIFI) or a mobile network), or establish a connection with other electronic devices through Bluetooth.
[0065] Optionally, in the embodiments of the present application, the above device identifier may include at least one of the following: device model, device status identifier (such as connectable status or non-connectable status), and device name, etc. Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not limit it.
[0066] Optionally, in the embodiments of the present application, when other electronic devices include multiple devices, the electronic device may preferentially select the device with the highest connection priority for connection according to the connection priorities of the multiple devices. The connection priority may be determined by at least one of the following: the distance between the electronic device and each of the multiple devices, the order in which the user adds device identifiers, and the connection priority of the device preset by the user.
[0067] In the embodiments of the present application, when the electronic device detects that the current scenario where the electronic device is located is a water immersion scenario, it may determine the most suitable backup device for data backup according to the depth of the water, so as to quickly back up the data in the electronic device to the backup device, improving the efficiency and flexibility of backing up data of the electronic device.
[0068] Optionally, in the embodiments of the present application, when the water depth detected by the electronic device in the water immersion state is greater than a preset depth, the electronic device may also combine the estimated backup duration of the data in the electronic device to determine whether to back up the data in the cloud server or other electronic devices. The above step 202b may be specifically implemented by the following step 202b1 or step 202b2.
[0069] Step 202b1: When the water depth detected by the electronic device after being in the water immersion state is greater than the preset depth and the estimated backup duration of the data in the electronic device is less than or equal to the preset duration, back up the data in the electronic device in the cloud server.
[0070] In the embodiments of the present application, the electronic device may count the data capacity of the data in the electronic device and estimate the backup duration of the data in the electronic device according to the data capacity and the data transmission rate (i.e., the data transmission rate of the network after the electronic device is in the water immersion state).
[0071] It should be noted that since various functions of the electronic device can be used normally within a preset duration (such as 30 seconds) after the electronic device falls into the water, when the estimated backup duration is less than or equal to the preset duration (the backup duration is short), that is, the electronic device has sufficient time for data backup, then a device with better data transmission integrity (i.e., the data packet loss rate is lower than the preset packet loss rate) can be selected as the backup device, and the cloud server has the characteristic that the backed-up data is not easily lost. Therefore, the electronic device may preferentially use the cloud server for data backup.
[0072] Step 202b2: When the water depth detected after the electronic device falls into water is greater than a preset depth and the estimated backup duration of the data in the electronic device is greater than a preset duration, back up the data in the electronic device to other electronic devices.
[0073] It should be noted that when the falling water duration of the electronic device is greater than a preset duration (such as 30 seconds), since the falling water depth of the electronic device is too deep and the network transmission rate is poor, the estimated backup duration of the electronic device is relatively long. Therefore, the cloud server cannot back up the data in a timely manner. Then, the electronic device can select a device with a faster data transmission rate as the backup device. When other electronic devices are connected to the electronic device, data transmission does not need to be carried out through the network. Thus, the electronic device can choose to back up the data to be backed up to other electronic devices connected to the electronic device.
[0074] In the embodiment of the present application, after obtaining the estimated backup duration of the data to be backed up, the electronic device can determine the most suitable backup method for data backup according to the estimated backup duration. That is, when the electronic device detects that the estimated backup duration is short, while ensuring the data transmission rate, to ensure the integrity of data transmission, the electronic device determines the backup device as the cloud server; when the estimated backup duration is long, to ensure the data transmission rate, the electronic device determines the backup device as other electronic devices associated with the electronic device. In this way, the integrity and flexibility of data backup of the electronic device are improved.
[0075] In this manner of the embodiment of the present application, after the electronic device detects that the electronic device is in a falling water state, the electronic device can, at the moment of falling into water (i.e., the moment when the electronic device contacts water), detect the water depth (i.e., the depth of water) of the current falling water scenario where the electronic device is located through an ultrasonic sensor, and determine whether the current water depth is greater than a preset depth (such as 1.8 meters). When the water depth is less than the preset depth, the electronic device can preferentially back up the data to be backed up to the SD card in the electronic device. When the water depth is greater than the preset depth, the electronic device can continue to judge the backup method according to the estimated backup duration. Thus, when the estimated backup duration is less than a preset duration (such as 30 seconds), the data to be backed up is backed up to the cloud server. When the estimated backup duration is greater than 30 seconds, other electronic devices connected to the electronic device are used for backup. In this way, while ensuring the integrity of data backup of the electronic device, the diversity of data backup of the electronic device is improved, thereby improving the backup efficiency of the electronic device.
[0076] Optionally, in another implementation manner of the embodiment of the present application, the above first information includes temperature information. Combining Figure 1 , such as Figure 3As shown, before the above-mentioned step 202, the data backup method provided by the embodiment of the present application further includes the following step 401 and step 402, and the above-mentioned step 202 can be specifically implemented by the following step 202c or step 202d.
[0077] Step 401: The electronic device determines whether the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature.
[0078] Optionally, in the embodiment of the present application, the electronic device can detect the device temperature of the electronic device through a temperature sensor and obtain the device temperature, so as to determine whether the current device temperature or the ambient temperature where the electronic device is located is greater than or equal to the preset temperature.
[0079] Step 402: When the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to the preset temperature, the electronic device determines whether there is another electronic device associated with the electronic device.
[0080] Step 202c: When there is another electronic device associated with the electronic device, the electronic device backs up the data in the electronic device in the other electronic device.
[0081] It should be noted that when the electronic device detects that the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to the preset temperature (for example, 90 degrees), since the SD card in the electronic device will fail in a high-temperature state, and if the data in the electronic device is backed up to the cloud server, it will exacerbate the damage of the electronic device. Therefore, the electronic device can preferentially select other electronic devices for backup.
[0082] Step 202d: When there is no other electronic device associated with the electronic device, the electronic device backs up the data in the electronic device in the cloud server associated with the electronic device or the SD card in the electronic device.
[0083] It should be noted that when the electronic device is in a high-temperature state and there is no other electronic device associated with the electronic device, to ensure that the data to be backed up in the electronic device is not lost, the electronic device can back up the data in the electronic device through the cloud server or the SD card.
[0084] In the embodiment of the present application, the electronic device can detect the current device temperature value of the electronic device, so as to determine the most suitable backup device for data backup according to the device temperature value, so as to quickly back up the data in the electronic device to the backup device, improving the efficiency and flexibility of data backup of the electronic device.
[0085] Optionally, in the embodiment of the present application, the above-mentioned step 202d can be specifically implemented by the following step 202d1 or step 202d2.
[0086] Step 202d1: When there are no other electronic devices associated with the electronic device and the remaining storage space of the cloud server is greater than or equal to a preset threshold, back up the data in the electronic device in the cloud server.
[0087] In the embodiments of the present application, the electronic device may send a request message to the cloud server, and the request message is used to indicate to view the remaining storage space in the cloud server. Thus, the electronic device can obtain the remaining storage space of the cloud server according to the request message, so that when the remaining storage space of the cloud server is greater than or equal to a preset threshold (such as 50M), the electronic device can send the data to be backed up to the cloud server.
[0088] It should be noted that when the electronic device is in a high-temperature scenario, since the high temperature may cause the SD card to fail and there are no other electronic devices associated with the electronic device, in order to ensure that the data in the electronic device is not lost, when the remaining storage space in the cloud server is greater than or equal to the preset threshold, the electronic device can select the cloud server for data backup.
[0089] Optionally, in the embodiments of the present application, the electronic device may calculate the data size of the data to be backed up, and then after the electronic device obtains the remaining storage space of the cloud server, it decides whether to back up through the cloud server. That is, when the size of the data to be backed up is greater than the remaining storage space of the cloud server, the data is backed up through the SD card, otherwise, it is backed up through the cloud server.
[0090] Step 202d2: When there are no other electronic devices associated with the electronic device and the remaining storage space of the cloud server is less than the preset threshold, the electronic device backs up the data in the electronic device in the SD card of the electronic device.
[0091] It should be noted that when the electronic device is in a high-temperature scenario, since there are no other electronic devices associated with the electronic device and the remaining storage space in the cloud server is less than the preset threshold, in order to ensure that the data in the electronic device is not lost, the electronic device can select the SD card for data backup.
[0092] In the embodiments of the present application, the electronic device may detect the remaining storage space of the cloud server to determine the most suitable backup device for data backup according to the size of the remaining storage space of the cloud server, so as to quickly back up the data in the electronic device to the backup device, improving the efficiency and flexibility of the electronic device for backing up data.
[0093] In this manner of the embodiment of the present application, when the electronic device is in a high-temperature scenario, the electronic device can detect the current temperature of the electronic device or the temperature of the environment where the electronic device is currently located through a temperature sensor. When the temperature of the electronic device or the temperature of the environment where the electronic device is currently located is greater than or equal to a preset temperature, the electronic device can determine whether there is another device connected. When there is another device connected to the electronic device, the electronic device backs up the data in the electronic device through the other device; when there is no other device connected to the electronic device, the electronic device can determine whether the storage space of the cloud server associated with the electronic device is full. When the remaining space in the cloud server is greater than a preset threshold, the electronic device backs up the data in the electronic device through the cloud server; when the remaining space in the cloud server is less than the preset threshold, the electronic device backs up the data in the electronic device through the SD card. In this way, while ensuring the integrity of the data backed up by the electronic device, the diversity of the data backed up by the electronic device is improved, thereby improving the backup efficiency of the electronic device.
[0094] Optionally, in another implementation manner of the embodiment of the present application, the above first information includes status information. Combining Figure 1 , such as Figure 4 shown, before the above step 202, the data backup method provided by the embodiment of the present application further includes the following step 501 and step 502, and the above step 202 can be specifically implemented by the following step 202e or step 202f.
[0095] Step 501: The electronic device determines whether the electronic device is in a dropped state.
[0096] Optionally, in the embodiment of the present application, the electronic device can determine whether the electronic device is in a dropped state through an acceleration sensor.
[0097] Step 502: When the electronic device is in a dropped state, the electronic device determines whether the electronic device contains an SD card.
[0098] Step 202e: When the electronic device contains an SD card, the electronic device backs up the data in the electronic device in the SD card.
[0099] It should be noted that when the electronic device is in a dropped state and the electronic device contains an SD card, since the backup rate of the electronic device backing up data to the SD card is the fastest, the electronic device can choose to back up the data in the electronic device in the SD card.
[0100] Step 202f: When the electronic device does not contain an SD card, the electronic device backs up the data in the electronic device in the cloud server associated with the electronic device or another electronic device.
[0101] In an embodiment of the present application, when there is no SD card, the electronic device can detect the current network transmission rate (i.e., network speed). When the network transmission rate is greater than or equal to the preset transmission rate (5M), the electronic device backs up the data in the electronic device through the cloud server. Otherwise, it backs up the data in the electronic device in other electronic devices connected to the electronic device.
[0102] Optionally, in an embodiment of the present application, when the electronic device is not in a falling state, the electronic device can back up data according to the backup device selected by the user.
[0103] In an embodiment of the present application, the electronic device can detect whether the electronic device is in a falling state. When the electronic device is in a falling state, the electronic device can determine the backup device according to the data backup rate and the network transmission rate, thus avoiding the situation where the electronic device cannot back up data in time, so as to quickly back up the data in the electronic device to the backup device. In this way, the efficiency and flexibility of backing up data by the electronic device are improved.
[0104] Optionally, in an embodiment of the present application, step 202f can be specifically implemented by the following step 202f1 or step 202f2.
[0105] Step 202f1: When there is no SD card in the electronic device and the falling height of the electronic device is greater than or equal to the preset height, the electronic device backs up the data in the electronic device in the cloud server.
[0106] Optionally, in an embodiment of the present application, the electronic device can use an ultrasonic sensor to detect the difference between the height of the electronic device when it is in a falling state and the current falling height of the electronic device in real time, so as to determine the falling height of the electronic device. When the falling height of the electronic device is greater than or equal to the preset height (for example, 15 meters), the electronic device backs up the data in the electronic device through the cloud server.
[0107] It should be noted that since the effective distance for other electronic devices to establish a WIFI connection is 15 meters, when the falling height of the electronic device is greater than the preset height (for example, 15 meters), the electronic device can back up the data in the electronic device through the cloud server.
[0108] Step 202f2: When there is no SD card in the electronic device and the falling height of the electronic device is less than the preset height, the electronic device backs up the data in the electronic device in other electronic devices.
[0109] It should be noted that when the electronic device does not include an SD card and the drop height of the electronic device is less than the preset height, since the data backup rate when the electronic device is connected to other electronic devices is relatively faster than the data backup rate of the electronic device to the cloud server, the electronic device backs up the data in the electronic device in other electronic devices.
[0110] In the embodiment of the present application, the electronic device can detect the current drop height of the electronic device, and thus select a backup device with a faster backup rate according to the drop height, avoiding the situation that when the network device is in a dropped state, due to the relatively fast drop, the data in the electronic device cannot be backed up in time. In this way, the efficiency and flexibility of backing up data by the electronic device are improved.
[0111] In this manner of the embodiment of the present application, when the electronic device detects that the electronic device is in a drop scenario, the electronic device preferentially backs up data to the SD card. In the case that the electronic device does not include an SD card, the electronic device can obtain the drop height of the electronic device through an ultrasonic sensor. When the drop height is less than 15 meters, the electronic device backs up the data to be backed up to other electronic devices. When the drop height is greater than 15 meters, the electronic device backs up the data to the cloud server. In this way, while ensuring the integrity of the data backed up by the electronic device, the diversity of the data backed up by the electronic device is improved, thereby improving the backup efficiency of the electronic device.
[0112] Optionally, in the embodiment of the present application, before the above step 202, the data backup method provided by the embodiment of the present application further includes the following step 601 and step 602.
[0113] Step 601: The electronic device obtains the network state of the electronic device.
[0114] In the embodiment of the present application, after the electronic device obtains the first information, the electronic device can obtain the network state of the electronic device according to the current scenario, so that the electronic device can adjust the priority of the backup device according to the network state.
[0115] Optionally, in the embodiment of the present application, the above network state includes at least one of the following: network transmission rate, network throughput, network packet loss rate, and network signal interference quality, etc.
[0116] Step 602: When the network state meets the preset network conditions, the electronic device adjusts the backup priorities of the cloud server and other electronic devices.
[0117] In the embodiment of the present application, when the electronic device detects that the current network status meets the preset network conditions (for example, the network transmission rate is greater than 5M), the electronic device can select a backup method with better data transmission integrity (that is, the data packet loss rate is lower than the preset packet loss rate) for data backup. Since the cloud server has the characteristic that the backup data is not easily lost, the electronic device can preferentially use the cloud server for data backup. When the electronic device detects that the current network status does not meet the preset network conditions (for example, the network transmission rate is less than 5M), the electronic device can select a device with faster data transmission as the backup device. When other electronic devices are connected to the electronic device, they do not need to transmit data through the network. Therefore, the electronic device can preferentially use other electronic devices connected to the electronic device for data backup.
[0118] In the embodiment of the present application, the electronic device can dynamically adjust the backup device according to the network status in the current scenario, thereby avoiding the loss of important data in the electronic device, improving the diversity of the backup data of the electronic device, and at the same time improving the efficiency of the backup data of the electronic device.
[0119] It should be noted that for the data backup method provided in the embodiment of the present application, the execution subject can be a data backup device. In the embodiment of the present application, the data backup method executed by the data backup device is taken as an example to illustrate the data backup device provided in the embodiment of the present application.
[0120] Figure 5 Fig. shows a possible structural schematic diagram of the data backup device involved in the embodiment of the present application. As Figure 5 shown, the data backup device 70 may include: an acquisition module 71 and a backup module 72.
[0121] Among them, the acquisition module 71 is configured to obtain first information when it is detected that the electronic device is in a preset state. The first information includes at least one of the following: depth information, temperature information, and status information. The backup module is configured to back up the first content in the electronic device by using a corresponding first method according to the first information obtained by the acquisition module 71. The depth information is used to indicate the water depth detected after the electronic device falls into the water. The temperature information is used to indicate the device temperature of the electronic device or the environmental temperature where the electronic device is located. The status information is used to indicate whether the electronic device is in a falling state.
[0122] In a possible implementation, the above-mentioned first information includes depth information. The backup module 72 is specifically configured to back up the data in the electronic device in the secure digital (SD) card of the electronic device when the water depth detected after the electronic device falls into water is less than or equal to a preset depth; or, when the water depth detected after the electronic device falls into water is greater than the preset depth, back up the data in the electronic device in a cloud server or other electronic device associated with the electronic device.
[0123] In a possible implementation, the above-mentioned first information includes temperature information. The backup module 72 is specifically configured to, when the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature, if there is another electronic device associated with the electronic device, back up the data in the electronic device in the other electronic device; or, when the device temperature of the electronic device is greater than or equal to the preset temperature, if there is no other electronic device associated with the electronic device, back up the data in the electronic device in a cloud server or the SD card in the electronic device.
[0124] In a possible implementation, the above-mentioned first information includes status information. The backup module 72 is specifically configured to, when the electronic device is in a falling state, if the electronic device includes an SD card, back up the data in the electronic device in the SD card; or, when the electronic device is in a falling state, if the electronic device does not include an SD card, back up the data in the electronic device in a cloud server or other electronic device associated with the electronic device.
[0125] In a possible implementation, the above-mentioned data backup device 70 further includes: an adjustment module. The acquisition module 71 is further configured to acquire the network status of the electronic device before the backup module 72 backs up the first content in the electronic device in a corresponding first manner according to the first information. The adjustment module is configured to adjust the backup priorities of the cloud server and other electronic devices when the network status meets a preset network condition.
[0126] The embodiment of the present application provides a data backup device. Since the electronic device can determine the current scenario of the electronic device according to the first information to select a more suitable backup device for data backup in the current scenario, that is, the electronic device can dynamically select a corresponding backup device for data backup according to the current scenario of the electronic device, so as to quickly back up the data in the electronic device to the backup device, thus avoiding the problem that the electronic device cannot back up the data in time in an emergency, and improving the flexibility and efficiency of data backup of the electronic device.
[0127] The data backup device in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in an electronic device. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0128] The data backup device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0129] The data backup device provided in the embodiments of the present application can implement each process implemented in the above method embodiments and can achieve the same technical effects. To avoid repetition, details are not described herein again.
[0130] Optionally, as Figure 6 shown, the embodiments of the present application further provide an electronic device 90, including a processor 91, a memory 92, a program or instruction stored on the memory 92 and executable on the processor 91. When the program or instruction is executed by the processor 91, it can implement each process in the above method embodiments and can achieve the same technical effects. To avoid repetition, details are not described herein again.
[0131] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0132] Figure 7 FIG. is a schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.
[0133] The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.
[0134] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The structure of the electronic device shown in Figure 7 does not limit the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine some components, or have different component arrangements, which will not be elaborated here.
[0135] Among them, the processor 110 is configured to obtain first information when it detects that the electronic device is in a preset state. The first information includes at least one of the following: depth information, temperature information, and status information. The processor 110 is further configured to back up first content in the electronic device in a corresponding first manner according to the first information; wherein, the depth information is used to indicate the water depth detected after the electronic device falls into water, the temperature information is used to indicate the device temperature of the electronic device or the environmental temperature where the electronic device is located, and the status information is used to indicate whether the electronic device is in a falling state.
[0136] The embodiment of the present application provides an electronic device. Since the electronic device can determine the current scene where the electronic device is located according to the first information, so as to select a backup device more suitable for the current scene for data backup, that is, the electronic device can dynamically select a corresponding backup device according to the current scene where the electronic device is located for data backup, so as to quickly back up the data in the electronic device to the backup device. Therefore, the problem that the electronic device cannot back up data in time in an emergency is avoided, thereby improving the flexibility and efficiency of data backup of the electronic device.
[0137] Optionally, in the embodiment of the present application, the above first information includes depth information. Specifically, the processor 110 is configured to back up the data in the electronic device in the Secure Digital (SD) card in the electronic device when the water depth detected after the electronic device falls into water is less than or equal to a preset depth; or back up the data in the electronic device in a cloud server associated with the electronic device or other electronic devices when the water depth detected when the electronic device is in a falling state is greater than the preset depth.
[0138] Optionally, in the embodiments of the present application, the above first information includes temperature information. The processor 110 is specifically configured to, when the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature, if there are other electronic devices associated with the electronic device, back up the data in the electronic device in the other electronic devices; or, when the device temperature of the electronic device is greater than or equal to the preset temperature, if there are no other electronic devices associated with the electronic device, back up the data in the electronic device in the cloud server associated with the electronic device or the SD card in the electronic device.
[0139] Optionally, in the embodiments of the present application, the above first information includes status information. The processor 110 is specifically configured to, when the electronic device is in a dropped state, if the electronic device contains an SD card, back up the data in the electronic device in the SD card; or, when the electronic device is in a dropped state, if the electronic device does not contain an SD card, back up the data in the electronic device in the cloud server associated with the electronic device or other electronic devices.
[0140] Optionally, in the embodiments of the present application, the processor 110 is further configured to, before backing up the first content in the electronic device in a corresponding first manner according to the first information, obtain the network status of the electronic device; and adjust the backup priorities of the cloud server and other electronic devices when the network status meets the preset network conditions.
[0141] The electronic device provided by the embodiments of the present application can implement each process implemented by the above method embodiments and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0142] The beneficial effects of various implementation manners in this embodiment can specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments. To avoid repetition, it will not be elaborated here.
[0143] It should be understood that in the embodiments of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of static pictures or videos obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here. The memory 109 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 110 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 110.
[0144] The embodiments of the present application further provide a readable storage medium. A program or instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0145] Among them, the processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc, etc.
[0146] The embodiments of the present application further provide a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run a program or instruction to implement each process of the above method embodiment, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0147] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system chip, a chip system, or a system-on-chip, etc.
[0148] It should be noted that in this text, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0149] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0150] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of the present application and without departing from the spirit and scope protected by the claims of the present application, can also make many forms, all of which fall within the protection scope of the present application.
Claims
1. A data backup method, characterized in that, The method includes: When it is detected that the electronic device is in a preset state, obtaining first information, where the first information includes at least one of the following: depth information, temperature information, status information, and the preset state includes any one of the following: water immersion state, high temperature state, drop state; According to the first information, using a corresponding first method to back up first content in the electronic device; Wherein, the depth information is used to indicate the water depth detected after the electronic device is immersed in water, the temperature information is used to indicate the device temperature of the electronic device or the ambient temperature where the electronic device is located, and the status information is used to indicate whether the electronic device is in a dropped state; The first method includes: Backing up the first content in the electronic device in the SD card in the electronic device; Backing up the first content in the electronic device in a cloud server associated with the electronic device; Backing up the first content in the electronic device in other mobile electronic devices associated with the electronic device; The step of backing up the first content in the electronic device using a corresponding first method according to the first information includes: When the electronic device is in a water immersion state and the first information includes the depth information, and the water depth detected after the electronic device is immersed in water is less than or equal to a preset depth, backing up the data in the electronic device in the Secure Digital (SD) card in the electronic device; When the electronic device is in a high temperature state and the first information includes the temperature information, and the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature, if there are other mobile electronic devices associated with the electronic device, backing up the data in the electronic device in the other mobile electronic devices; When the electronic device is in a dropped state and the first information includes the status information, and the electronic device is in a dropped state, if the electronic device contains an SD card, backing up the data in the electronic device in the SD card.
2. The method according to claim 1, characterized in that, The step of backing up the first content in the electronic device using a corresponding first method according to the first information includes: When the electronic device is in a water immersion state and the first information includes the depth information, and the water depth detected when the electronic device is in the water immersion state is greater than the preset depth, backing up the data in the electronic device in the cloud server or the other mobile electronic devices associated with the electronic device.
3. The method according to claim 1, characterized in that, The step of backing up the first content in the electronic device using a corresponding first method according to the first information includes: When the electronic device is in a high temperature state and the first information includes the temperature information, and the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature, if there are no other mobile electronic devices associated with the electronic device, backing up the data in the electronic device in the cloud server associated with the electronic device or the SD card in the electronic device.
4. The method according to claim 1, characterized in that, Performing backup on a first content in the electronic device according to the first information by using a corresponding first method includes: When the electronic device is in a dropped state and the first information includes the state information, if the electronic device does not include the SD card, back up the data in the electronic device in the cloud server associated with the electronic device or in the other mobile electronic device.
5. The method according to any one of claims 1 to 4, characterized in that, Before performing backup on a first content in the electronic device according to the first information by using a corresponding first method, the method further includes: Obtaining the network state of the electronic device; Adjusting the backup priorities of the cloud server and the other mobile electronic device when the network state meets a preset network condition.
6. A data backup device, characterized in that, The data backup device includes: an obtaining module and a backup module; The obtaining module is configured to obtain first information when detecting that the electronic device is in a preset state, where the first information includes at least one of the following: depth information, temperature information, state information, and the preset state includes any one of the following: water entry state, high temperature state, dropped state; The backup module is configured to perform backup on a first content in the electronic device by using a corresponding first method according to the first information obtained by the obtaining module; where the depth information is used to indicate the water depth detected after the electronic device enters the water, the temperature information is used to indicate the device temperature of the electronic device or the ambient temperature where the electronic device is located, and the state information is used to indicate whether the electronic device is in a dropped state; The first method includes: Backing up the first content in the electronic device in the SD card in the electronic device; Backing up the first content in the electronic device in the cloud server associated with the electronic device; Backing up the first content in the electronic device in the other mobile electronic device associated with the electronic device; Performing backup on a first content in the electronic device according to the first information by using a corresponding first method includes: When the electronic device is in a water entry state and the first information includes the depth information, if the water depth detected after the electronic device enters the water is less than or equal to a preset depth, back up the data in the electronic device in the Secure Digital (SD) card in the electronic device; When the electronic device is in a high temperature state and the first information includes the temperature information, if the device temperature of the electronic device or the ambient temperature where the electronic device is located is greater than or equal to a preset temperature, if there is another mobile electronic device associated with the electronic device, back up the data in the electronic device in the other mobile electronic device; When the electronic device is in a dropped state and the first information includes the state information, if the electronic device includes an SD card when the electronic device is in a dropped state, back up the data in the electronic device in the SD card.
7. The device according to claim 6, characterized in that, The backup module is specifically configured to: when the electronic device is in a water immersion state and the first information includes the depth information, back up the data in the electronic device in the cloud server associated with the electronic device or the other mobile electronic device when the water depth detected when the electronic device is in the water immersion state is greater than a preset depth.
8. The device according to claim 6, characterized in that, The backup module is specifically configured to: when the electronic device is in a high-temperature state and the first information includes the temperature information, if there is no other mobile electronic device associated with the electronic device, back up the data in the electronic device in the cloud server associated with the electronic device or the SD card in the electronic device when the device temperature of the electronic device is greater than or equal to a preset temperature.
9. The device according to claim 6, characterized in that, The backup module is specifically configured to: when the electronic device is in a dropped state and the first information includes the status information, if the electronic device does not include the SD card, back up the data in the electronic device in the cloud server associated with the electronic device or the other mobile electronic device.
10. The device according to any one of claims 6 to 9, characterized in that, The data backup device further includes: an adjustment module; The acquisition module is further configured to acquire the network state of the electronic device before the backup module backs up the first content in the electronic device in a corresponding first manner according to the first information. The adjustment module is configured to adjust the backup priorities of the cloud server and the other mobile electronic device when the network state meets a preset network condition.
Citation Information
Patent Citations
Data backup method and device for mobile terminal and mobile terminal
CN104008027A
Intelligent terminal data backup method, intelligent terminal and device with storage function
CN107943614A