Data backup method, electronic device, and storage medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorZhifeng Ma
Life of this patent
Estimating the term…
Abstract
Provided are a data backup method, electronic device, and storage medium, the data backup method including: acquiring application data to be backed up and update frequencies of the application data in the terminal; generating backup priorities based on the update frequencies; transmitting the application data to be backed up to a server based on the backup priorities.
Claims17
A data backup method in a terminal, comprising:
- acquiring application data to be backed up and update frequencies and data changes of the application data in the terminal;
- generating backup priorities based on the update frequencies and data changes by querying an association table with correspondence between data changes, update frequencies and backup priorities;
- and
- transmitting the application data to be backed up to a server based on the backup priorities;
- wherein transmitting the application data to be backed up to the server based on the backup priorities comprises:
- transmitting the application data to be backed up corresponding to a current priority to the server;
- detecting whether the application data to be backed up corresponding to the current priority is completely transmitted;
- and
- transmitting the application data to be backed up corresponding to a next priority to the server, in response to detecting that the application data to be backed up corresponding to the current priority is completely transmitted, wherein the current priority is higher than the next priority;
- wherein, in response to detecting that the application data to be backed up corresponding to the current priority is not completely transmitted, the method further comprises:
- detecting whether a current network connection state of the terminal is in a disconnection state;
- and
- recording backup progress information of the application data to be backed up corresponding to the current priority, in response to detecting that the current network connection state of the terminal is in the disconnection state;
- wherein recording the backup progress information of the application data to be backed up corresponding to the current priority comprises:
- acquiring an initial amount of the application data to be backed up corresponding to the current priority and a backup amount of the application data to be backed up corresponding to the current priority;
- calculating a ratio of the backup amount to the initial amount to acquire a backup proportion;
- and
- recording the backup proportion as the backup progress information.
A non-transitory computer-readable storage medium, having a plurality of instructions stored therein, wherein the plurality of instructions are suitable to be loaded by a processor, so as to cause the processor to perform a data backup method in a terminal comprising:
- acquiring application data to be backed up and update frequencies and data changes of the application data in the terminal;
- generating backup priorities based on the update frequencies and data changes by querying an association table with correspondence between data changes, update frequencies and backup priorities;
- and
- transmitting the application data to be backed up to a server based on the backup priorities;
- wherein transmitting the application data to be backed up to the server based on the backup priorities comprises:
- transmitting the application data to be backed up corresponding to a current priority to the server;
- detecting whether the application data to be backed up corresponding to the current priority is completely transmitted;
- and
- transmitting the application data to be backed up corresponding to a next priority to the server, in response to detecting that the application data to be backed up corresponding to the current priority is completely transmitted, wherein the current priority is higher than the next priority;
- wherein, in response to detecting that the application data to be backed up corresponding to the current priority is not completely transmitted, the method further comprises:
- detecting whether a current network connection state of the terminal is in a disconnection state;
- and
- recording backup progress information of the application data to be backed up corresponding to the current priority, in response to detecting that the current network connection state of the terminal is in the disconnection state;
- wherein recording the backup progress information of the application data to be backed up corresponding to the current priority comprises:
- acquiring an initial amount of the application data to be backed up corresponding to the current priority and a backup amount of the application data to be backed up corresponding to the current priority;
- calculating a ratio of the backup amount to the initial amount to acquire a backup proportion;
- and
- recording the backup proportion as the backup progress information.
An electronic device, comprising a processor and a memory, wherein the processor is coupled to the memory electrically, the memory is configured to store instructions and data, the processor is configured to perform:
- acquiring application data to be backed up and update frequencies and data changes of the application data in the electronic device;
- generating backup priorities based on the update frequencies and data changes by querying an association table with correspondence between data changes, update frequencies and backup priorities;
- and
- transmitting the application data to be backed up to a server based on the backup priorities;
- wherein transmitting the application data to be backed up to the server based on the backup priorities comprises:
- transmitting the application data to be backed up corresponding to a current priority to the server;
- detecting whether the application data to be backed up corresponding to the current priority is completely transmitted;
- and
- transmitting the application data to be backed up corresponding to a next priority to the server, in response to detecting that the application data to be backed up corresponding to the current priority is completely transmitted, wherein the current priority is higher than the next priority;
- wherein, in response to detecting that the application data to be backed up corresponding to the current priority is not completely transmitted, the processor is further configured to perform:
- detecting whether a current network connection state of the electronic device is in a disconnection state;
- and
- recording backup progress information of the application data to be backed up corresponding to the current priority, in response to detecting that the current network connection state of the electronic device is in the disconnection state;
- wherein recording the backup progress information of the application data to be backed up corresponding to the current priority comprises:
- acquiring an initial amount of the application data to be backed up corresponding to the current priority and a backup amount of the application data to be backed up corresponding to the current priority;
- calculating a ratio of the backup amount to the initial amount to acquire a backup proportion;
- and
- recording the backup proportion as the backup progress information.
Dependencies are inferred from the claim text.