Data backup method and device
By determining the wake-up strategy and flag information in the smart device, the application is only woken up to perform data backup when necessary, which solves the problems of low data backup efficiency and high resource consumption of mobile devices and realizes an efficient and low-consumption data backup process.
Patent Information
- Application Number
- CN202510798291.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-13
- Publication Date
- 2025-10-28
AI Technical Summary
In the prior art, the important data backup process of mobile devices such as smartphones has problems such as low efficiency, high resource consumption and easy data loss, especially when unnecessary activities are running in the background, which affects the user experience.
By determining the wake-up strategy and obtaining multi-dimensional flag information, we can determine whether to wake up the target application for data backup and perform backup operations only when necessary. We use flag information to ensure that the application is woken up for data backup only under appropriate conditions, avoiding unnecessary background activities and resource consumption.
It reduces the risk of data loss, lowers resource consumption, improves user experience, and ensures automatic data backup without interfering with user operations.
Smart Images

Figure CN120849183A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing, and more particularly to the field of artificial intelligence, specifically to a data backup method and apparatus. Background Technology
[0002] As smartphones become the primary devices for users to produce and store information, the amount of data generated by users is growing exponentially. In high-frequency usage scenarios such as taking photos, recording audio, scanning QR codes, and editing documents, files are generated rapidly and widely distributed, containing a large amount of important data (such as photos, recordings, and work documents), which often requires backup. Therefore, efficient and reliable file backup technology has become a core requirement for mobile device data management. Summary of the Invention
[0003] This disclosure provides a data backup method, apparatus, device, and storage medium.
[0004] According to one aspect of this disclosure, a data backup method is provided, comprising: determining at least one wake-up policy, wherein the wake-up policy is used to wake up a target application to perform data backup; acquiring flag information of multiple dimensions related to the wake-up policy; determining whether to wake up the target application based on the flag information; and in response to determining to wake up the target application, acquiring the data to be backed up on the current device, and backing up the data to be backed up in the background based on the target application.
[0005] This application wakes up the target application for backup under specific conditions, which can reduce the risk of data loss. By determining whether to wake up the target application based on flag information, rather than keeping the target application running in the background, it can ensure that the backup operation is only started when necessary, effectively avoiding unnecessary background activities and resource consumption. This application can automatically perform data backup in the background without interfering with the user and will not affect the user's normal operation.
[0006] According to another aspect of this disclosure, a data backup apparatus is provided, comprising: a determining module, configured to determine at least one wake-up strategy, wherein the wake-up strategy is used to wake up a target application to perform data backup; an acquiring module, configured to acquire flag information of multiple dimensions related to the wake-up strategy; a judging module, configured to determine whether to wake up the target application based on the flag information; and a backup module, configured to, in response to determining that the target application is to be woken up, acquire the data to be backed up on the current device, and back up the data to be backed up in the background based on the target application.
[0007] According to another aspect of this disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the data backup method described above.
[0008] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the above-described data backup method.
[0009] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described data backup method.
[0010] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0011] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0012] Figure 1 This is a schematic diagram illustrating an exemplary implementation of a data backup method according to an exemplary embodiment of the present disclosure.
[0013] Figure 2 This is a schematic diagram illustrating an exemplary implementation of a data backup method according to an exemplary embodiment of the present disclosure.
[0014] Figure 3 This is a schematic diagram illustrating an exemplary implementation of a data backup method according to an exemplary embodiment of the present disclosure.
[0015] Figure 4 This is a schematic diagram illustrating an exemplary implementation of a data backup method according to an exemplary embodiment of the present disclosure.
[0016] Figure 5 This is an exemplary schematic diagram of a data backup apparatus according to an exemplary embodiment of the present disclosure.
[0017] Figure 6 This is a schematic diagram of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0018] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0019] Artificial intelligence (AI) is the study of enabling computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It involves both hardware and software technologies. AI hardware technologies generally include computer vision, speech recognition, natural language processing, and related technologies such as deep learning, big data processing, and knowledge graphs.
[0020] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0021] Figure 1 This is a schematic diagram illustrating an exemplary implementation of a data backup method shown in this application, such as... Figure 1 As shown, this data backup method includes the following steps:
[0022] S101, determine at least one wake-up policy, wherein the wake-up policy is used to wake up the target application to perform data backup.
[0023] The target application is a program with automatic backup functionality.
[0024] Wake-up strategies are used to wake up the target application to perform data backup. Examples include location-based wake-up strategies, silent notification-based wake-up strategies, user call-based wake-up strategies, user habit-based wake-up strategies, and device current mode-based wake-up strategies.
[0025] S102, obtain flag information of multiple dimensions related to the wake-up strategy.
[0026] The flag information may include the flags for each dimension (such as various permission dimensions and device status dimensions) and the real-time values corresponding to those flags.
[0027] For example, the value of the flag bit can be a binary parameter. In this application, the value of the flag bit can be set to 0 or 1. For example, for a flag bit of a certain permission dimension, if the value of the flag bit is 0, it means that the permission corresponding to the flag bit is in the open state (that is, the user has chosen to enable the permission), and if the value of the flag bit is 1, it means that the permission corresponding to the flag bit is in the closed state (that is, the user has chosen to disable the permission).
[0028] Different wake-up strategies can correspond to different flag bits.
[0029] In some implementations, the wake-up strategy can be a location-based wake-up strategy. For example, if the device location change is detected to exceed a preset range (e.g., 2 kilometers), the information of various flag bits related to the location-based wake-up strategy can be obtained.
[0030] In some implementations, the wake-up strategy can be based on a silent notification. For example, if the target application is monitored for pushing silent PUSH messages (which can be pushed at regular intervals), then the various flag information related to the silent notification-based wake-up strategy can be obtained.
[0031] In some implementations, the wake-up strategy can be based on the user's call. For example, if an incoming call notification is detected, the various flag information related to the user's call-based wake-up strategy can be obtained.
[0032] In some implementations, the wake-up strategy can be based on user habits. For example, if a user rarely uses the device during the midday period, the various flag information related to the wake-up strategy based on user habits can be obtained at a certain time during the midday period.
[0033] In some implementations, the wake-up strategy can be based on the current device mode. For example, if the user rarely uses the device in night mode, the various flag information related to the wake-up strategy based on the current device mode can be obtained after the user switches the device to night mode.
[0034] S103 determines whether to wake up the target application based on the flag information.
[0035] In this application, each wake-up strategy is pre-defined with its associated flag bits, and the values corresponding to each flag bit are pre-set to determine the wake-up target application.
[0036] For example, a location-based wake-up policy can correspond to five permission-related flags. When all five flags are 0, it means that the target application meets the wake-up conditions, and the target application can be woken up. When any flag is not 0, it is determined that the target application will not be woken up.
[0037] S104, in response to determining that the target application is to be woken up, the device obtains the data to be backed up, and backs up the data to be backed up in the background based on the target application.
[0038] If the target application is determined to be woken up, the current data on the device can be compared with the data that has been backed up in the target application, and the data that has not yet been backed up can be used as the data to be backed up.
[0039] Considering that a large amount of data is often generated during the use of terminal devices, some of which is important and needs to be backed up, while other data does not need to be backed up, the data to be backed up on the current device can be determined based on the data type selected by the user (such as contacts, photos, documents, etc.). For example, taking contacts as an example, the current real-time contacts on the device are compared with the contacts already backed up by the target application, and the contacts that have not been backed up are selected as the data to be backed up.
[0040] In some implementations, after determining the data to be backed up on the current device, the data to be backed up is divided into fragments, and the backup is performed sequentially according to the fragment data.
[0041] In some implementations, if a backup of a certain data fails, the backup of that data can be retried.
[0042] This application's embodiments determine at least one wake-up strategy, wherein the wake-up strategy is used to wake up a target application to perform data backup; acquire multiple dimensions of flag information related to the wake-up strategy; determine whether to wake up the target application based on the flag information; in response to determining to wake up the target application, acquire the data to be backed up on the current device, and back up the data to be backed up in the background based on the target application. This application wakes up the target application for backup under specific conditions, which can reduce the risk of data loss; by determining whether to wake up the target application based on flag information, rather than keeping the target application running in the background indefinitely, it can ensure that the backup operation is only initiated when necessary, effectively avoiding unnecessary background activity and resource consumption; this application can automatically perform data backup in the background without interfering with the user's normal operation.
[0043] In the above embodiments, obtaining the data to be backed up on the current device includes: obtaining first index information of the backed-up data corresponding to the target application, wherein the first index information records the identification information, backup time, storage location, and other information of each backed-up data; then, obtaining second index information of the current data of the current device, wherein the second index information records the identification information, storage location, data size, and other information of various data currently stored on the device; finally, determining the data to be backed up on the current device based on the first index information and the second index information. Specifically, by comparing the first index information and the second index information, it is determined which data is new and which is not backed up, and thus these data are used as the data to be backed up. By comparing the index information, it is possible to accurately determine which data has been backed up and which data is new or has changed, without having to back up the entire dataset every time, but only backing up the necessary data, thereby reducing the system load and resource consumption of the device and avoiding unnecessary duplicate backup operations.
[0044] Figure 2 This is a schematic diagram illustrating an exemplary implementation of a data backup method shown in this application, such as... Figure 2 As shown, this data backup method includes the following steps:
[0045] S201, determine at least one wake-up policy, wherein the wake-up policy is used to wake up the target application to perform data backup.
[0046] S202, Determine the permission flags related to the wake-up policy.
[0047] In this application, the permission flags include at least the wake-up permission flag, the backup permission flag, and the policy permission flag.
[0048] In this application, considering that some users can accept the target application being woken up in the background to perform data backup, while others prefer manual backup, a wake-up permission flag is set to indicate whether the target application is allowed to be woken up.
[0049] In this application, considering that the target application often has other functions besides backup, even if the user can accept that the target application is woken up, it may be configured to perform other functions after being woken up. Therefore, this application sets a backup permission flag to indicate whether the target application is allowed to perform automatic backup tasks.
[0050] In this application, considering that multiple wake-up strategies are often set to wake up the target application to perform backups, and users can choose their preferred wake-up strategy from a variety of wake-up strategies, a policy permission flag is set to indicate whether the wake-up strategy has been selected by the user to wake up the target application.
[0051] By setting flags for wake-up permissions, backup permissions, and policy permissions, the data backup process becomes more flexible and personalized, enhancing users' control over the backup function of the target application, improving user experience, and adapting to the needs and preferences of different users.
[0052] S203, obtain the relevant permission information of the user for the target application and wake-up policy settings, and determine the value of the flag bit corresponding to the permission flag bit based on the relevant permission information.
[0053] After determining the permission flags as described above, obtain the relevant permission information of the user for the target application and wake-up policy settings to determine the flag values corresponding to each permission flag.
[0054] For example, if the value of the wake-up permission flag corresponding to the target application is 0, it means that the target application is allowed to be woken up; if the value of the wake-up permission flag corresponding to the target application is 1, it means that the target application is not allowed to be woken up.
[0055] For example, if the value of the backup permission flag corresponding to the target application is 0, it means that the target application is allowed by the user to perform automatic backup tasks; if the value of the backup permission flag corresponding to the target application is 1, it means that the target application is not allowed by the user to perform automatic backup tasks.
[0056] For example, if the value of the policy permission flag corresponding to the wake-up policy is 0, it means that the user has selected the wake-up policy; if the value of the policy permission flag corresponding to the wake-up policy is 1, it means that the user has not selected the wake-up policy.
[0057] S204, determine the status flags related to the wake-up strategy.
[0058] Considering that the decision to wake up the target application depends not only on various permissions but also on the device's state parameters—for example, if the device's current load rate is high, it is not suitable to wake up the target application for backup—this application specifically sets a status flag. This status flag indicates whether the current device state is suitable for waking up the target application.
[0059] S205, obtain the real-time status parameters and historical operating parameters of the current device, and determine the flag value corresponding to the status flag based on the real-time status parameters and historical operating parameters.
[0060] The real-time status parameters of the current device may include parameters such as real-time battery level, real-time network status, real-time timestamp, and real-time heat level of the device.
[0061] The historical operating parameters of the current device may include parameters such as the number of times the target application has been woken up on the current day and the timestamp of the last time the target application was woken up.
[0062] In some implementations, multiple backup suppression conditions corresponding to the target application can be obtained first. These backup suppression conditions refer to device state conditions that are not suitable for waking up the target application.
[0063] For example, backup suppression conditions can be set as follows:
[0064] 1. The front and back offices have already reported the activity on the same day.
[0065] 2. The target application is woken up more than 8 times on the same day.
[0066] 3. The time since the last wake-up of the target application is less than 1.5 hours.
[0067] 4. The device's battery level is currently below 20%.
[0068] 5. The device is currently in a state of no network connection.
[0069] 6. The current heat level of the device is greater than level 1.
[0070] If, based on real-time status parameters and historical operating parameters, it is determined that the current device does not meet any backup suppression condition, the value of the number of flag bits corresponding to the status flag is set to a first preset value. In this application, the first preset value is set to 0, that is, if the value of the number of flag bits corresponding to the status flag is 0, it means that the current device status allows the target application to be woken up.
[0071] If, based on real-time status parameters and historical operating parameters, it is determined that the current device meets any backup suppression condition, the value of the number of flag bits corresponding to the status flag is set to a second preset value. In this application, the second preset value is set to 1, that is, if the value of the number of flag bits corresponding to the status flag is 1, it means that the current device state does not allow the target application to be woken up.
[0072] By setting backup suppression conditions, the backup is ensured to be performed when the device is in a suitable condition, thereby improving the backup success rate, reducing backup failures caused by poor device condition, and avoiding frequent background backups that result in a poor user experience.
[0073] S206, determine whether to wake up the target application based on the flag information.
[0074] As explained above, for the permission flag, a value of 0 indicates that the user possesses the permission corresponding to that flag. For the status flag, a value of 0 indicates that the current device status allows the target application to be woken up. Therefore, in this application, if the flag values corresponding to both the permission flag and the status flag are the first preset values (i.e., both are 0), meaning that both the permission requirement and the device status requirement are met, then the target application is determined to be woken up.
[0075] S207, in response to determining that the target application is to be woken up, the device obtains the data to be backed up, and backs up the data to be backed up in the background based on the target application.
[0076] This application describes in detail how to determine whether to wake up the target application based on various flag bits, instead of keeping the target application running in the background. This ensures that the backup operation is only started when necessary, which not only reduces the risk of data loss, but also effectively avoids unnecessary background activities and resource consumption. This application can automatically perform data backup in the background without interfering with the user and will not affect the user's normal operation.
[0077] Figure 3 This is a schematic diagram illustrating an exemplary implementation of a data backup method shown in this application, such as... Figure 3 As shown, this data backup method includes the following steps:
[0078] S301, determine at least one wake-up policy, wherein the wake-up policy is used to wake up the target application to perform data backup.
[0079] S302, obtain real-time operating parameters related to the wake-up strategy.
[0080] For example, if the wake-up policy is a wake-up policy based on the device's geographical location, then the current geographical location change information of the device is obtained.
[0081] S303, in response to the real-time operating parameters meeting the wake-up determination conditions, obtains multiple dimensions of flag information related to the wake-up strategy.
[0082] If the real-time running parameters meet the wake-up determination conditions, it means that the next step is to determine whether to wake up the target application based on the flag information.
[0083] If the wake-up strategy is based on the device's geographic location, and the geographic location change information meets the preset location change conditions (for example, the location change exceeds 2 kilometers), then the flag information of multiple dimensions related to the wake-up strategy is obtained.
[0084] In addition to the wake-up permission flag, backup permission flag, policy permission flag, and status flag mentioned above, the wake-up policy based on device geolocation also requires a location permission flag. The location permission flag indicates whether the target application is permitted to access the current device's geolocation.
[0085] In this application, in addition to determining the flag bits related to the wake-up strategy based on the device's geographical location, it is necessary to obtain the flag bit values corresponding to each flag bit.
[0086] S304 determines whether to wake up the target application based on the flag information.
[0087] S305, in response to determining that the target application is to be woken up, obtains the data to be backed up on the current device, and performs backup of the data to be backed up in the background based on the target application.
[0088] This application determines whether to wake up the target application based on flag information when the real-time operating parameters of the device meet the wake-up judgment conditions. This ensures that the backup operation is only started when necessary, reducing the risk of data loss and effectively avoiding unnecessary background activities and resource consumption. This application can automatically perform data backup in the background without interfering with the user and will not affect the user's normal operation.
[0089] Figure 4 This is a schematic diagram illustrating an exemplary implementation of a data backup method shown in this application, such as... Figure 4 As shown, this data backup method includes the following steps:
[0090] S401, determine at least one wake-up policy, wherein the wake-up policy is used to wake up the target application to perform data backup.
[0091] S402, Obtain real-time operating parameters related to the wake-up strategy.
[0092] S403, determine whether the real-time operating parameters meet the wake-up determination conditions.
[0093] For details on the specific implementation of steps S401 to S403, please refer to the relevant parts of the above embodiments, which will not be repeated here.
[0094] S404, if satisfied, determine the permission flags related to the wake-up policy.
[0095] S405: Obtain the relevant permission information of the user for the target application and wake-up policy settings, and determine the value of the flag bit corresponding to the permission flag bit based on the relevant permission information.
[0096] S406, if satisfied, determine the status flag bits related to the wake-up strategy.
[0097] S407: Obtain the real-time status parameters and historical operating parameters of the current device, and determine the flag value corresponding to the status flag based on the real-time status parameters and historical operating parameters.
[0098] S408, in response to the fact that the values of the flag bits corresponding to the permission flag bit and the status flag bit are both the first preset values, determine to wake up the target application.
[0099] For details on the specific implementation of steps S404 to S408, please refer to the relevant parts of the above embodiments, which will not be repeated here.
[0100] S409, Obtain the first index information of the backed-up data corresponding to the target application.
[0101] S410, obtain the second index information of the current data of the current device.
[0102] S411, determine the data to be backed up for the current device based on the first index information and the second index information.
[0103] S412, backs up the data to be backed up in the background based on the target application.
[0104] For details on the specific implementation of steps S409 to S412, please refer to the relevant parts of the above embodiments, which will not be repeated here.
[0105] This application wakes up the target application for backup under specific conditions, which can reduce the risk of data loss. By determining whether to wake up the target application based on flag information, rather than keeping the target application running in the background, it can ensure that the backup operation is only started when necessary, effectively avoiding unnecessary background activities and resource consumption. This application can automatically perform data backup in the background without interfering with the user and will not affect the user's normal operation.
[0106] Figure 5 This is an exemplary schematic diagram of a data backup device shown in this application, such as... Figure 5 As shown, the data backup device includes a determining module 501, an acquiring module 502, a judging module 503, and a backup module 504, wherein:
[0107] The determination module 501 is used to determine at least one wake-up strategy, wherein the wake-up strategy is used to wake up the target application to perform data backup.
[0108] The acquisition module 502 is used to acquire flag information of multiple dimensions related to the wake-up strategy.
[0109] The judgment module 503 is used to determine whether to wake up the target application based on the flag information.
[0110] Backup module 504 is used to respond to the determination to wake up the target application, obtain the data to be backed up on the current device, and back up the data to be backed up in the background based on the target application.
[0111] This device can wake up the target application to perform backup under specific conditions, which can reduce the risk of data loss. By determining whether to wake up the target application based on flag information, rather than keeping the target application running in the background, it can ensure that the backup operation is only started when necessary, effectively avoiding unnecessary background activities and resource consumption. This application can automatically perform data backup in the background without interfering with the user and will not affect the user's normal operation.
[0112] Furthermore, the acquisition module 502 is also used to: determine the permission flags related to the wake-up policy; acquire the relevant permission information set by the user for the target application and the wake-up policy, and determine the flag value corresponding to the permission flags based on the relevant permission information; determine the status flags related to the wake-up policy; acquire the real-time status parameters and historical operating parameters of the current device, and determine the flag value corresponding to the status flags based on the real-time status parameters and historical operating parameters.
[0113] Furthermore, the permission flags include at least the following flags: wake-up permission flag, used to indicate whether the target application is allowed to be woken up; backup permission flag, used to indicate whether the target application is allowed to perform automatic backup tasks; and policy permission flag, used to indicate whether the wake-up policy is selected by the user to wake up the target application.
[0114] Furthermore, the acquisition module 502 is also used to: acquire multiple backup suppression conditions corresponding to the target application; in response to determining that the current device does not meet any backup suppression condition based on real-time status parameters and historical operating parameters, determine that the number of flag bits corresponding to the status flag bit is a first preset value; in response to determining that the current device meets any backup suppression condition based on real-time status parameters and historical operating parameters, determine that the number of flag bits corresponding to the status flag bit is a second preset value.
[0115] Furthermore, the judgment module 503 is also used to: determine the target application to be woken up in response to the fact that the values of the flag bits corresponding to the permission flag bit and the status flag bit are both the first preset values.
[0116] Furthermore, the backup module 504 is also used to: obtain first index information of the backed-up data corresponding to the target application; obtain second index information of the current data of the current device; and determine the data to be backed up of the current device based on the first index information and the second index information.
[0117] Furthermore, the acquisition module 502 is also used to: acquire real-time operating parameters related to the wake-up strategy; and in response to the real-time operating parameters meeting the wake-up determination conditions, acquire multiple dimensions of flag information related to the wake-up strategy.
[0118] Furthermore, in response to the wake-up strategy being a wake-up strategy based on the device's geographic location, the acquisition module 502 is also used to: acquire the current device's geographic location change information; in response to the geographic location change information satisfying preset location change conditions, acquire multiple dimensions of flag information related to the wake-up strategy; wherein, the flag information includes at least the flag value corresponding to the location permission flag, and the location permission flag is used to indicate whether the target application is allowed to acquire the current device's geographic location.
[0119] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0120] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0121] like Figure 6 As shown, device 600 includes a computing unit 601, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 602 or a computer program loaded from storage unit 608 into random access memory (RAM) 603. RAM 603 may also store various programs and data required for the operation of device 600. The computing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0122] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as keyboard, mouse, etc.; output unit 607, such as various types of monitors, speakers, etc.; storage unit 608, such as disk, optical disk, etc.; and communication unit 609, such as network card, modem, wireless transceiver, etc. Communication unit 609 allows device 600 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0123] The computing unit 601 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the data backup method. For example, in some embodiments, the data backup method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the data backup method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the data backup method by any other suitable means (e.g., by means of firmware).
[0124] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0125] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0126] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0127] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0128] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0129] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0130] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0131] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A data backup method, comprising: Determine at least one wake-up strategy, wherein the wake-up strategy is used to wake up the target application to perform data backup; Obtain flag information from multiple dimensions related to the wake-up strategy; Based on the flag information, determine whether to wake up the target application; In response to determining that the target application is to be woken up, the device obtains the data to be backed up on the current device and backs up the data to be backed up in the background based on the target application.
2. The method according to claim 1, wherein, The acquisition of multiple dimensions of flag information related to the wake-up strategy includes: Determine the permission flags associated with the wake-up strategy; Obtain the relevant permission information of the user for the target application and the wake-up policy settings, and determine the flag value corresponding to the permission flag based on the relevant permission information; Determine the status flag bits associated with the wake-up strategy; Obtain the real-time status parameters and historical operating parameters of the current device, and determine the flag bit value corresponding to the status flag bit based on the real-time status parameters and the historical operating parameters.
3. The method according to claim 2, wherein, The permission flags include at least the following flags: The wake-up permission flag indicates whether the target application is allowed to be woken up. The backup permission flag indicates whether the target application is allowed to perform automatic backup tasks; The policy permission flag is used to indicate whether the wake-up policy has been selected by the user to wake up the target application.
4. The method according to claim 2, wherein, Determining the flag value corresponding to the status flag based on the real-time status parameters and the historical operating parameters includes: Obtain multiple backup suppression conditions corresponding to the target application; In response to determining, based on the real-time status parameters and the historical operating parameters, that the current device does not meet any of the backup suppression conditions, the number of flag bits corresponding to the status flag bit is determined to be a first preset value; In response to determining that the current device meets any of the backup suppression conditions based on the real-time status parameters and the historical operating parameters, the number of flag bits corresponding to the status flag bit is determined to be a second preset value.
5. The method according to any one of claims 2-4, wherein, The step of determining whether to wake up the target application based on the flag information includes: In response to the fact that the values of the flag bits corresponding to the permission flag bit and the status flag bit are both the first preset values, it is determined to wake up the target application.
6. The method according to claim 5, wherein, The step of obtaining the data to be backed up on the current device includes: Obtain the first index information of the backed-up data corresponding to the target application; Obtain the second index information of the current data of the current device; The data to be backed up for the current device is determined based on the first index information and the second index information.
7. The method according to claim 5, wherein, The acquisition of multiple dimensions of flag information related to the wake-up strategy includes: Obtain the real-time operating parameters related to the wake-up strategy; In response to the real-time operating parameters satisfying the wake-up determination conditions, multiple dimensions of flag information related to the wake-up strategy are obtained.
8. The method according to claim 7, wherein, In response to the wake-up strategy being a device geolocation-based wake-up strategy, the step of obtaining real-time operating parameters related to the wake-up strategy includes: Obtain the current location change information of the device; The response is that the real-time operating parameters meet the wake-up determination condition, and the system obtains multiple dimensions of flag information related to the wake-up strategy, including: In response to the geographical location change information satisfying the preset location change conditions, multiple dimensions of flag information related to the wake-up strategy are obtained; The flag information includes at least the flag value corresponding to the location permission flag, which indicates whether the target application is allowed to obtain the current device's geographic location.
9. A data backup device, comprising: A determining module is configured to determine at least one wake-up strategy, wherein the wake-up strategy is used to wake up a target application to perform data backup; The acquisition module is used to acquire flag information of multiple dimensions related to the wake-up strategy; The determination module is used to determine whether to wake up the target application based on the flag information; The backup module is used to respond to the determination to wake up the target application, obtain the data to be backed up on the current device, and back up the data to be backed up in the background based on the target application.
10. An electronic device, comprising: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
11. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-8.
12. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-8.