CN105786649A - Data backup method and device - Google Patents
Data backup method and device Download PDFInfo
- Publication number
- CN105786649A CN105786649A CN201610108084.XA CN201610108084A CN105786649A CN 105786649 A CN105786649 A CN 105786649A CN 201610108084 A CN201610108084 A CN 201610108084A CN 105786649 A CN105786649 A CN 105786649A
- Authority
- CN
- China
- Prior art keywords
- data
- backup
- incremental data
- incremental
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000001514 detection method Methods 0.000 claims abstract description 26
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端技术领域,特别是涉及一种数据的备份方法及装置。The present invention relates to the technical field of terminals, in particular to a data backup method and device.
背景技术Background technique
随着平板电脑、智能手机等终端的快速发展,终端已经成为用户生活中不可或缺的一部分。特别是,用户将越来越多的数据存储在终端上,使得对数据备份的要求越来越高。With the rapid development of terminals such as tablet computers and smart phones, terminals have become an indispensable part of users' lives. In particular, users store more and more data on terminals, which makes the requirements for data backup more and more high.
现有的备份方法是选择需要备份的数据定时备份或者手动备份,由于这种定时备份方式必须到预定时间才能进行备份,如果用户在预设时间到达之前将数据误删除,由于数据未及时备份,导致这些数据的信息在备份之前丢失,给用户带来了损失。另外,手动备份不仅操作繁琐,而且有时候用户会忘记备份,带来数据丢失的隐患。可见,现有的备份方式不能对重要数据进行及时备份,导致备份的灵活性较差,容易丢失重要数据。The existing backup method is to select the data that needs to be backed up to be backed up regularly or manually. Because this kind of timed backup method can only be backed up at a predetermined time, if the user deletes the data by mistake before the preset time arrives, because the data is not backed up in time, Information leading to these data is lost before backing up, causing losses to users. In addition, manual backup is not only cumbersome to operate, but sometimes users forget to back up, which brings hidden dangers of data loss. It can be seen that the existing backup method cannot back up important data in time, resulting in poor backup flexibility and easy loss of important data.
发明内容Contents of the invention
本发明实施例提供一种数据的备份方法及装置,以解决现有的数据的备份方法不能对重要数据进行及时备份,灵活性较差、容易丢失重要数据的技术问题。Embodiments of the present invention provide a data backup method and device to solve the technical problems that the existing data backup method cannot back up important data in time, has poor flexibility, and is easy to lose important data.
为解决上述问题,本发明提供的技术方案如下:In order to solve the above problems, the technical solutions provided by the present invention are as follows:
本发明实施例提供一种数据的备份方法,其包括:The embodiment of the present invention provides a kind of data backup method, it comprises:
当检测到终端有数据增加时,获取增量数据的内容信息,其中所述增量数据为增加后的数据相对于增加前的数据所增加的数据;When it is detected that there is data increase in the terminal, the content information of the incremental data is acquired, wherein the incremental data is the data added to the data after the increase relative to the data before the increase;
检测所述内容信息是否存在预设标识信息,得到检测结果;Detecting whether there is preset identification information in the content information, and obtaining a detection result;
根据所述检测结果对所述增量数据进行备份。The incremental data is backed up according to the detection result.
本发明实施例还提供一种数据的备份装置,其包括:The embodiment of the present invention also provides a data backup device, which includes:
获取模块,用于当检测到终端有数据增加时,获取增量数据的内容信息,其中所述增量数据为增加后的数据相对于增加前的数据所增加的数据;An acquisition module, configured to acquire the content information of the incremental data when it is detected that there is data increase in the terminal, where the incremental data is the increased data after the increase relative to the data before the increase;
检测模块,用于检测所述内容信息是否存在预设标识信息,得到检测结果;A detection module, configured to detect whether there is preset identification information in the content information, and obtain a detection result;
备份模块,用于根据所述检测结果对所述增量数据进行备份。A backup module, configured to back up the incremental data according to the detection result.
相较于现有技术,本实施例的数据的备份方法及装置,当检测到终端有数据增加时,获取增量数据的内容信息,其中该增量数据为增加后的数据相对于增加前的数据所增加的数据;检测该内容信息是否存在预设标识信息,得到检测结果;根据该检测结果对该增量数据进行备份。由于通过检测新增加的数据中是否存在预设标识信息,以判断终端是否有重要的数据增加,以便对重要数据进行及时备份,提高了备份的灵活性,避免了重要数据的丢失。Compared with the prior art, the data backup method and device of this embodiment acquires the content information of the incremental data when it is detected that the terminal has increased data, wherein the incremental data is the data after the increase relative to the data before the increase The data added by the data; detecting whether the content information has preset identification information, and obtaining the detection result; backing up the incremental data according to the detection result. By detecting whether there is preset identification information in the newly added data, it is judged whether the terminal has important data added, so as to back up the important data in time, the flexibility of backup is improved, and the loss of important data is avoided.
附图说明Description of drawings
图1为本发明实施例一提供的数据的备份方法的流程图;FIG. 1 is a flowchart of a data backup method provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的数据的备份方法的流程图;FIG. 2 is a flowchart of a data backup method provided in Embodiment 2 of the present invention;
图3为本发明实施例三提供的数据的备份方法的流程图;FIG. 3 is a flowchart of a data backup method provided in Embodiment 3 of the present invention;
图4为本发明实施例四提供的数据的备份装置的结构示意图;FIG. 4 is a schematic structural diagram of a data backup device provided in Embodiment 4 of the present invention;
图5为本发明实施例四提供的数据的备份装置的优选结构示意图。FIG. 5 is a schematic diagram of a preferred structure of a data backup device provided in Embodiment 4 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
请参照图1,图1为本发明实施例一提供的数据的备份方法的流程图。Please refer to FIG. 1 . FIG. 1 is a flowchart of a data backup method provided by Embodiment 1 of the present invention.
本优选实施例的数据的备份方法,包括:The data backup method of this preferred embodiment includes:
步骤S101,当检测到终端有数据增加时,获取增量数据的内容信息。Step S101, when it is detected that the terminal has increased data, acquire the content information of the incremental data.
例如,当终端检测到其有数据增加时,获取增加的数据的存储内容;其中,该增量数据为增加后的数据相对于增加前的数据所增加的数据。该终端可以为手机、平板电脑等设备。For example, when the terminal detects that there is data increase, it acquires the storage content of the increased data; wherein, the incremental data is data added to the added data relative to the data before the increase. The terminal may be a device such as a mobile phone or a tablet computer.
步骤S102,检测该内容信息是否存在预设标识信息,得到检测结果。Step S102, detecting whether the content information has preset identification information, and obtaining a detection result.
例如,终端检测该内容信息是否存在预设关键字,该预设标识信息比如为预设关键字,该预设关键字用于标识重要的数据,即该重要的数据为对用户比较重要的数据,以对重要的数据进行监控。比如预设关键字可以为重要的数据的名称,该重要的数据的名称比如用户指定的应用程序的名称或者为指定应用程序中的指定文件夹或者指定文件的名称等。如果终端检测到在增加的数据内容中存在该预设关键字,表明重要的数据的内容有增加;如果终端检测到在增加的数据内容中不存在该预设关键字,表明重要的数据的内容没有增加。For example, the terminal detects whether there is a preset keyword in the content information. The preset identification information is, for example, a preset keyword. The preset keyword is used to identify important data, that is, the important data is data that is more important to the user. , to monitor important data. For example, the preset keyword may be the name of important data, such as the name of the application program specified by the user, or the name of the specified folder or file in the specified application program. If the terminal detects that the preset keyword exists in the increased data content, it indicates that the content of important data has increased; if the terminal detects that the preset keyword does not exist in the increased data content, it indicates that the content of important data No increase.
步骤S103,根据该检测结果对该增量数据进行备份。Step S103, backup the incremental data according to the detection result.
例如,当终端检测到在增加的数据内容中存在该预设关键字时,对预设关键字对应的增加的数据进行备份,以便及时对重要的数据进行备份;当终端检测到在增加的数据内容中不存在该预设关键字时,终端可以根据增加的数据的容量,对增加的数据进行备份,也可以间隔一定的时长对增加的数据进行备份。For example, when the terminal detects that the preset keyword exists in the increased data content, it backs up the increased data corresponding to the preset keyword, so as to back up important data in time; when the terminal detects that the increased data When the preset keyword does not exist in the content, the terminal may back up the added data according to the capacity of the added data, or may back up the added data at certain intervals.
例如,上述步骤S103,根据该检测结果对该增量数据进行备份的步骤可以包括:For example, in the above step S103, the step of backing up the incremental data according to the detection result may include:
(1)显示提示信息,该提示信息用于提示用户输入存储位置;(1) displaying prompt information, the prompt information is used to prompt the user to input the storage location;
(2)接收用户根据该提示信息输入的存储位置;(2) receiving the storage location input by the user according to the prompt information;
(3)将该增量数据备份至该存储位置。(3) Backing up the incremental data to the storage location.
例如,终端显示提示框,以提示用户输入存储路径,之后,用户在提示框内输入具体的存储路径,之后终端将该增量数据存储到该存储路径对应的位置中。For example, the terminal displays a prompt box to prompt the user to input a storage path, and then the user inputs a specific storage path in the prompt box, and then the terminal stores the incremental data in a location corresponding to the storage path.
本优选实施例的数据的备份方法,由于通过检测新增加的数据中是否存在预设标识信息,以判断终端是否有重要的数据增加,以便对重要数据进行及时备份,提高了备份的灵活性,避免了重要的数据丢失。The data backup method in this preferred embodiment, because by detecting whether there is preset identification information in the newly added data, to judge whether the terminal has important data increase, so as to back up the important data in time, the flexibility of backup is improved, Important data loss is avoided.
请参照图2,图2为本发明实施例二提供的数据的备份方法的流程图。Please refer to FIG. 2 . FIG. 2 is a flowchart of a data backup method provided in Embodiment 2 of the present invention.
本优选实施例的数据的备份方法,包括:The data backup method of this preferred embodiment includes:
步骤201,当检测到终端有数据增加时,获取增量数据的内容信息。Step 201, when it is detected that the terminal has increased data, acquire the content information of the incremental data.
例如,当终端检测到其有数据增加时,获取增加的数据的存储内容;其中,该增量数据为增加后的数据相对于增加前的数据所增加的数据。该终端可以为手机、平板电脑等设备。For example, when the terminal detects that there is data increase, it acquires the storage content of the increased data; wherein, the incremental data is data added to the added data relative to the data before the increase. The terminal may be a device such as a mobile phone or a tablet computer.
步骤S202,检测该内容信息是否存在预设标识信息,得到检测结果。Step S202, detecting whether the content information has preset identification information, and obtaining a detection result.
例如,终端检测该内容信息是否存在预设关键字,该预设标识信息比如为预设关键字,该预设关键字用于标识重要的数据,即该重要的数据为对用户比较重要的数据,以对重要的数据进行监控。比如预设关键字,可以为重要的数据的名称,该重要的数据的名称比如用户指定的应用程序的名称或者为指定应用程序中的指定文件夹或者指定文件的名称等。For example, the terminal detects whether there is a preset keyword in the content information. The preset identification information is, for example, a preset keyword. The preset keyword is used to identify important data, that is, the important data is data that is more important to the user. , to monitor important data. For example, the preset keyword may be the name of important data, such as the name of the application program specified by the user, or the name of the specified folder or file in the specified application program.
比如,终端预先接收用户输入的标识信息并存储,得到该预设标识信息。比如,用户预先在终端内设置关键字并存储,以得到该预设标识信息。如果终端检测到在增加的数据内容中存在该预设关键字,表明重要的数据的内容有增加;如果终端检测到在增加的数据内容中不存在该预设关键字,表明重要的数据的内容没有增加。For example, the terminal receives and stores the identification information input by the user in advance to obtain the preset identification information. For example, the user pre-sets and stores keywords in the terminal to obtain the preset identification information. If the terminal detects that the preset keyword exists in the increased data content, it indicates that the content of important data has increased; if the terminal detects that the preset keyword does not exist in the increased data content, it indicates that the content of important data No increase.
步骤S203,若该内容信息存在该预设标识信息,则对该预设标识信息对应的增量数据进行备份;Step S203, if the content information has the preset identification information, backup the incremental data corresponding to the preset identification information;
例如,当终端检测到在增加的数据内容中存在该预设关键字时,则对该预设关键字对应的所增加的数据进行备份;即对重要的数据进行备份。For example, when the terminal detects that the preset keyword exists in the added data content, the added data corresponding to the preset keyword is backed up; that is, important data is backed up.
例如,上述步骤S203,对该预设标识信息对应的增量数据进行备份的步骤可以包括:For example, in the above step S203, the step of backing up the incremental data corresponding to the preset identification information may include:
(1)显示提示信息,该提示信息用于提示用户输入存储位置;(1) displaying prompt information, the prompt information is used to prompt the user to input the storage location;
(2)接收用户根据该提示信息输入的存储位置;(2) receiving the storage location input by the user according to the prompt information;
(3)将该预设标识信息对应的增量数据备份至该存储位置。(3) Backup the incremental data corresponding to the preset identification information to the storage location.
例如,终端显示提示框,以提示用户输入存储路径,之后,用户在提示框内输入具体的存储路径,之后终端将预设标识信息对应的增量数据存储到该存储路径对应的位置中。For example, the terminal displays a prompt box to prompt the user to input a storage path, and then the user inputs a specific storage path in the prompt box, and then the terminal stores the incremental data corresponding to the preset identification information in a location corresponding to the storage path.
步骤S204,若该内容信息不存在该预设标识信息,则获取该增量数据的容量,根据该增量数据的容量对该增量数据进行备份。Step S204, if the preset identification information does not exist in the content information, the capacity of the incremental data is obtained, and the incremental data is backed up according to the capacity of the incremental data.
例如,当终端检测到在增加的数据内容中不存在该预设关键字,可以根据增加的数据的容量,对增加的数据进行备份。比如,终端也可以根据用户指定的存储位置,将该增量数据备份到用户指定的存储位置中。For example, when the terminal detects that the preset keyword does not exist in the added data content, the added data may be backed up according to the capacity of the added data. For example, the terminal may also back up the incremental data to the storage location specified by the user according to the storage location specified by the user.
为了降低系统消耗,当增加的数据的容量大于一定数值时,终端才进行备份,即,该根据该增量数据的容量对该增量数据进行备份的步骤包括:In order to reduce system consumption, when the capacity of the increased data is greater than a certain value, the terminal performs backup, that is, the step of backing up the incremental data according to the capacity of the incremental data includes:
(1)判断该增量数据的容量是否超过预设阈值;(1) judging whether the capacity of the incremental data exceeds a preset threshold;
(2)若判定该增量数据的容量超过该预设阈值,则对该增量数据进行备份。(2) If it is determined that the capacity of the incremental data exceeds the preset threshold, the incremental data is backed up.
例如,该预设阈值可以根据用户的需求设置,当终端检测到该增加的数据的容量大于预设阈值时,对增加的数据进行备份,如果终端检测到该增加的数据的容量小于或者等于预设阈值时,不对增加的数据进行备份。For example, the preset threshold can be set according to user needs. When the terminal detects that the increased data capacity is greater than the preset threshold, the increased data will be backed up; if the terminal detects that the increased data capacity is less than or equal to the preset When the threshold is set, the increased data will not be backed up.
步骤S205,生成备份记录信息并存储。Step S205, generating and storing backup record information.
例如,在对增加的数据进行备份的同时,终端记录备份时间、备份的对象、以及备份原因等,以得到该备份记录信息;之后将该备份记录信息存储在预设数据库中。For example, while backing up the increased data, the terminal records the backup time, backup object, backup reason, etc. to obtain the backup record information; and then stores the backup record information in the preset database.
本优选实施例的数据的备份方法,由于通过检测新增加的数据中是否存在预设标识信息,以判断终端是否有重要的数据增加,以便对重要数据进行及时备份,提高了备份的灵活性,避免了重要数据的丢失。当新增加的数据中不存在预设标识信息时,也即仅有不重要的数据增加时,根据增加的数据的容量对不重要的数据进行备份,降低了功耗。The data backup method in this preferred embodiment, because by detecting whether there is preset identification information in the newly added data, to judge whether the terminal has important data increase, so as to back up the important data in time, the flexibility of backup is improved, Avoid the loss of important data. When there is no preset identification information in the newly added data, that is, when only unimportant data is added, the unimportant data is backed up according to the capacity of the added data, thereby reducing power consumption.
请参照图3,图3为本发明实施例三提供的数据的备份方法的流程图。Please refer to FIG. 3 . FIG. 3 is a flowchart of a data backup method provided in Embodiment 3 of the present invention.
本实施例以终端为智能手机为例进行详细说明,本优选实施例的数据的备份方法,包括:In this embodiment, the terminal is a smart phone as an example for detailed description. The data backup method in this preferred embodiment includes:
步骤S301,当智能手机检测到其有数据增加时,获取增量数据的内容信息。Step S301, when the smart phone detects that there is data increase, acquire the content information of the incremental data.
例如,当智能手机检测到其有数据增加时,获取增加的数据的存储内容;其中,该增量数据为增加后的数据相对于增加前的数据所增加的数据。比如智能手机中有短信的数据增加时,获取短信增加的数据。For example, when the smart phone detects that there is an increase in data, it acquires the storage content of the increased data; wherein, the incremental data is the increased data after the increase relative to the data before the increase. For example, when there is an increase in the data of the text message in the smart phone, the increased data of the text message is obtained.
步骤S302,智能手机检测该内容信息是否存在预设标识信息,得到检测结果。In step S302, the smart phone detects whether the content information has preset identification information, and obtains the detection result.
例如,该预设标识信息比如为备忘录的名称或者备忘录中的某个文件或者某个文件夹的名称;比如以预设关键字为备忘录的名称为例,当智能手机检测到数据增加时,智能手机获取增加的数据对应的根目录文件名称,智能手机检测该增加的数据对应的根目录文件名称中是否存在备忘录的名称,如果智能手机检测到该根目录文件名称中存在备忘录的名称,则执行步骤S303;如果智能手机检测到该根目录文件名称中不存在备忘录的名称,则执行步骤S304;For example, the preset identification information is the name of the memo or the name of a certain file or folder in the memo; for example, if the preset keyword is the name of the memo, when the smart phone detects that the The mobile phone obtains the name of the root directory file corresponding to the added data, and the smart phone detects whether the name of the memo exists in the name of the root directory file corresponding to the added data, and if the smart phone detects that the name of the memo exists in the name of the root directory file, execute Step S303; if the smart phone detects that the name of the memo does not exist in the file name of the root directory, then execute step S304;
步骤S303,若该内容信息存在该预设标识信息,则对该预设标识信息对应的增量数据进行备份;Step S303, if the content information has the preset identification information, backup the incremental data corresponding to the preset identification information;
例如,智能手机中有短信或者备忘录的数据增加时,智能手机判定在增加的数据内容中存在该预设关键字,此时智能手机对备忘录增加的数据进行备份。对于短信增加的数据,智能手机可以按现有的存储方式进行存储;或者判读短信增加的数据的容量是否大于预设阈值,如果大于,则对短信增加的数据进行备份。For example, when there is an increase in text messages or memo data in the smart phone, the smart phone determines that the preset keyword exists in the added data content, and at this time the smart phone backs up the added data of the memo. For the data added by the text message, the smart phone can store it according to the existing storage method; or judge whether the capacity of the data added by the text message is greater than a preset threshold, and if it is greater, the data added by the text message is backed up.
步骤S304,若该内容信息不存在该预设标识信息,则获取该增量数据的容量。Step S304, if the preset identification information does not exist in the content information, acquire the capacity of the incremental data.
例如,智能手机中有短信或者微信的数据增加时,智能手机检测到在增加的数据内容中不存在备忘录的名称,此时智能手机便获取短信增加的数据大小或者微信增加的数据大小。For example, when there is an increase in text messages or WeChat data in the smart phone, the smart phone detects that the name of the memo does not exist in the increased data content, and the smart phone then obtains the increased data size of the text message or the increased data size of the WeChat.
步骤S305,智能手机判断该增量数据的容量是否超过预设阈值;Step S305, the smart phone judges whether the capacity of the incremental data exceeds a preset threshold;
例如,该预设阈值比如为200M,智能手机判断短信增加的数据大小或者微信增加的数据大小是否超过200M;如果智能手机判断短信增加的数据大小或者微信增加的数据大小没有超过200M,则执行步骤S306。如果智能手机判断短信增加的数据大小或者微信增加的数据大小超过200M,则执行步骤S307。For example, if the preset threshold is 200M, the smart phone judges whether the increased data size of the SMS or the increased data size of WeChat exceeds 200M; if the smart phone determines that the increased data size of the SMS or the increased data size of the WeChat does not exceed 200M, then perform the steps S306. If the smart phone judges that the data size added by the text message or the data size added by WeChat exceeds 200M, step S307 is executed.
步骤S306,若判定该增量数据的容量未超过该预设阈值,则不对增加的数据进行备份。Step S306, if it is determined that the capacity of the incremental data does not exceed the preset threshold, then the increased data is not backed up.
例如,当智能手机判断短信增加的数据大小或者微信增加的数据大小没有超过200M时,智能手机不对短信或者微信增加的数据进行备份。For example, when the smart phone judges that the data size added by the text message or the data size added by WeChat does not exceed 200M, the smart phone does not back up the data added by the text message or WeChat.
步骤S307,若判定该增量数据的容量超过该预设阈值,则对该增量数据进行备份。Step S307, if it is determined that the capacity of the incremental data exceeds the preset threshold, backup the incremental data.
例如,当智能手机判断短信增加的数据大小超过200M时,智能手机对短信增加的数据进行备份;或者当智能手机判断微信增加的数据大小超过200M时,智能手机对微信增加的数据进行备份。For example, when the smartphone judges that the data size added by the SMS exceeds 200M, the smartphone backs up the data added by the SMS; or when the smartphone judges that the data size added by WeChat exceeds 200M, the smartphone backs up the data added by WeChat.
本优选实施例的数据的备份方法,由于通过检测智能手机新增加的数据中是否存在预设标识信息,以判断终端是否有重要的数据增加,以便对重要数据进行及时备份,提高了备份的灵活性,避免了重要数据的丢失;当智能手机中新增加的数据中不存在预设标识信息时,也即仅有不重要的数据增加时,根据增加的数据的容量对不重要的数据进行备份,降低了功耗。The data backup method in this preferred embodiment, because by detecting whether the preset identification information exists in the newly added data of the smart phone, to judge whether the terminal has important data increase, so as to back up the important data in time, the flexibility of the backup is improved To avoid the loss of important data; when there is no preset identification information in the newly added data in the smart phone, that is, when only unimportant data increases, the unimportant data is backed up according to the capacity of the increased data , reduces power consumption.
请参照图4,图4为本发明实施例四提供的数据的备份装置的结构示意图。本优选实施例的数据的备份装置40包括:获取模块41、检测模块42、备份模块43;Please refer to FIG. 4 , which is a schematic structural diagram of a data backup device provided in Embodiment 4 of the present invention. The data backup device 40 of this preferred embodiment includes: an acquisition module 41, a detection module 42, and a backup module 43;
获取模块41,用于当检测到终端有数据增加时,获取增量数据的内容信息,其中该增量数据为增加后的数据相对于增加前的数据所增加的数据;The obtaining module 41 is used to obtain the content information of the incremental data when it is detected that the terminal has data increase, wherein the incremental data is the data added to the data after the increase relative to the data before the increase;
检测模块42,用于检测该内容信息是否存在预设标识信息,得到检测结果;A detection module 42, configured to detect whether the content information has preset identification information, and obtain a detection result;
备份模块43,用于根据该检测结果对该增量数据进行备份。The backup module 43 is configured to back up the incremental data according to the detection result.
该备份模块43,还用于:生成备份记录信息并存储。The backup module 43 is also used to generate and store backup record information.
如图5所示,该备份模块43还可以包括:第一备份子模块431和第二备份子模块432;As shown in Figure 5, the backup module 43 may also include: a first backup submodule 431 and a second backup submodule 432;
第一备份子模块431,用于当该内容信息存在该预设标识信息时,对该预设标识信息对应的增量数据进行备份;The first backup submodule 431 is configured to back up the incremental data corresponding to the preset identification information when the content information has the preset identification information;
第二备份子模块432,用于当该内容信息不存在该预设标识信息时,获取该增量数据的容量,根据该增量数据的容量对该增量数据进行备份。The second backup submodule 432 is configured to acquire the capacity of the incremental data when the content information does not have the preset identification information, and back up the incremental data according to the capacity of the incremental data.
该第二备份子模块432,具体用于:The second backup submodule 432 is specifically used for:
判断该增量数据的容量是否超过预设阈值;Judging whether the capacity of the incremental data exceeds a preset threshold;
若判定该增量数据的容量超过该预设阈值,则对该增量数据进行备份。If it is determined that the capacity of the incremental data exceeds the preset threshold, the incremental data is backed up.
该备份模块43还可以包括:提示子模块433、接收子模块434、备份子模块435;The backup module 43 may also include: a prompting submodule 433, a receiving submodule 434, and a backup submodule 435;
提示子模块433,用于显示提示信息,该提示信息用于提示用户输入存储位置;Prompt sub-module 433, configured to display prompt information, the prompt information is used to prompt the user to input the storage location;
接收子模块434,用于接收用户根据该提示信息输入的存储位置;The receiving submodule 434 is configured to receive the storage location input by the user according to the prompt information;
第三备份子模块435,用于将该增量数据备份至该存储位置。The third backup submodule 435 is configured to back up the incremental data to the storage location.
本优选实施例的数据的备份装置,由于通过检测新增加的数据中是否存在预设标识信息,以判断终端是否有重要的数据增加,以便对重要数据进行及时备份,提高了备份的灵活性,避免了重要的数据丢失。The data backup device in this preferred embodiment, by detecting whether there is preset identification information in the newly added data, to judge whether the terminal has important data increase, so as to back up the important data in time, and improve the flexibility of backup, Important data loss is avoided.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,ReadOnlyMemory)、随机存取记忆体(RAM,RandomAccessMemory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk, etc.
以上对本发明实施例所提供的一种数据的备份方法和装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to a data backup method and device provided by the embodiment of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only used to help understand the present invention. The method of the invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as Limitations on the Invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610108084.XA CN105786649A (en) | 2016-02-26 | 2016-02-26 | Data backup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610108084.XA CN105786649A (en) | 2016-02-26 | 2016-02-26 | Data backup method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105786649A true CN105786649A (en) | 2016-07-20 |
Family
ID=56402837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610108084.XA Pending CN105786649A (en) | 2016-02-26 | 2016-02-26 | Data backup method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786649A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648974A (en) * | 2016-11-16 | 2017-05-10 | 广东欧珀移动通信有限公司 | Data backup method and mobile terminal |
CN107643962A (en) * | 2017-09-27 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of backup method of data storage, device, equipment and readable storage medium storing program for executing |
CN108399580A (en) * | 2018-02-09 | 2018-08-14 | 国网浙江省电力有限公司信息通信分公司 | Power industry full-service uniform data server system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101378571A (en) * | 2008-10-07 | 2009-03-04 | 深圳市戴文科技有限公司 | Communication terminal, and information-incoming backup method and system thereof |
CN101720140A (en) * | 2009-12-21 | 2010-06-02 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for copying and recovering mobile terminal data as well as mobile terminal |
CN101901175A (en) * | 2010-02-11 | 2010-12-01 | 宇龙计算机通信科技(深圳)有限公司 | Data backup method and electronic terminal |
CN102662794A (en) * | 2012-03-09 | 2012-09-12 | 无锡华御信息技术有限公司 | System and method for document data backup |
-
2016
- 2016-02-26 CN CN201610108084.XA patent/CN105786649A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101378571A (en) * | 2008-10-07 | 2009-03-04 | 深圳市戴文科技有限公司 | Communication terminal, and information-incoming backup method and system thereof |
CN101720140A (en) * | 2009-12-21 | 2010-06-02 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for copying and recovering mobile terminal data as well as mobile terminal |
CN101901175A (en) * | 2010-02-11 | 2010-12-01 | 宇龙计算机通信科技(深圳)有限公司 | Data backup method and electronic terminal |
CN102662794A (en) * | 2012-03-09 | 2012-09-12 | 无锡华御信息技术有限公司 | System and method for document data backup |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106648974A (en) * | 2016-11-16 | 2017-05-10 | 广东欧珀移动通信有限公司 | Data backup method and mobile terminal |
CN107643962A (en) * | 2017-09-27 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of backup method of data storage, device, equipment and readable storage medium storing program for executing |
CN108399580A (en) * | 2018-02-09 | 2018-08-14 | 国网浙江省电力有限公司信息通信分公司 | Power industry full-service uniform data server system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111294459B (en) | Method, device and storage medium for detecting privacy of android mobile phone | |
CN111698669A (en) | Method and device for sharing application information | |
CN104573093B (en) | A method and device for managing file directories | |
CN111277696A (en) | Method and device for detecting privacy of apple mobile phone | |
CN104657681B (en) | A kind of date storage method and device | |
CN103281798A (en) | Method, device and system for achieving modification synchronization | |
US20170270106A1 (en) | Methods and apparatuses for storing file path and accessing local file | |
CN106201574A (en) | Method and device for starting an application interface | |
US9451423B2 (en) | Method and apparatus for recording information during a call | |
CN105786649A (en) | Data backup method and device | |
CN104298933A (en) | Configuration information safety processing method and system | |
CN104182479B (en) | A kind of method and device handling information | |
CN103164492A (en) | File copying method between electronic devices and electronic devices | |
US9977621B2 (en) | Multimedia data backup method, user terminal and synchronizer | |
US20170171128A1 (en) | Method and electronic device for email processing | |
CN105404663A (en) | A method and system for displaying an Android device file list | |
CN105786650A (en) | Data management method and device | |
CN106657316B (en) | Message withdrawing method and device | |
CN106155520A (en) | A method and terminal for adjusting duration | |
CN115437847A (en) | Data backup method, device, electronic device and storage medium | |
CN110019631A (en) | The processing method and processing device of multi-dimensional map | |
CN104850551B (en) | Data processing method and device and mobile terminal | |
CN105653337A (en) | Application deleting method andce | |
CN104636031A (en) | Application unloading prompting method and system | |
CN111143012B (en) | Method, device, equipment and storage medium for completely displaying display elements |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160720 |