CN106453511A - A data backup method and device - Google Patents
A data backup method and device Download PDFInfo
- Publication number
- CN106453511A CN106453511A CN201610825116.8A CN201610825116A CN106453511A CN 106453511 A CN106453511 A CN 106453511A CN 201610825116 A CN201610825116 A CN 201610825116A CN 106453511 A CN106453511 A CN 106453511A
- Authority
- CN
- China
- Prior art keywords
- terminal
- data
- unit
- standby state
- network
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/23—Manipulation of direct-mode connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及终端技术领域,尤其涉及一种数据备份方法及设备。The present invention relates to the technical field of terminals, in particular to a data backup method and equipment.
背景技术Background technique
随着终端技术的发展,人们可以利用智能手机、平板电脑和个人数字助理(Personal Digital Assistant,PDA)等终端设备实现日常生活的各种活动,如进行娱乐、办公和交流等。With the development of terminal technology, people can use terminal devices such as smart phones, tablet computers and personal digital assistants (Personal Digital Assistant, PDA) to implement various activities in daily life, such as entertainment, office work and communication.
在使用过程中,终端设备往往会存储大量的用户数据,如通讯录、短消息、备忘录、照片、视频和应用程序内部数据等。然而,用户的终端设备遗失或者损毁的情况时有发生,当这样的情况发生时,终端设备中的用户信息也随之遗失而无法恢复,为用户带来一定的损失。During use, terminal devices often store a large amount of user data, such as address books, short messages, memos, photos, videos, and internal data of applications. However, the user's terminal equipment is lost or damaged from time to time. When such a situation occurs, the user information in the terminal equipment is also lost and cannot be recovered, which brings certain losses to the user.
因此,如何保证终端设备中数据的安全性,是一个亟待解决的问题。Therefore, how to ensure the security of data in the terminal device is an urgent problem to be solved.
发明内容Contents of the invention
本发明实施例提供了一种数据备份方法及设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。The embodiment of the present invention provides a data backup method and device, which can automatically back up the data in the user terminal device to other terminal devices for storage, so as to prevent the user's terminal device from being lost or data lost.
本发明实施例第一方面公开了一种数据备份方法,包括:The first aspect of the embodiment of the present invention discloses a data backup method, including:
监测第一终端是否进入待机状态;monitoring whether the first terminal enters the standby state;
若所述第一终端已进入待机状态,则确定所述第一终端与第二终端之间是否已建立网络连接;If the first terminal has entered the standby state, then determining whether a network connection has been established between the first terminal and the second terminal;
若所述第一终端与所述第二终端之间已建立网络连接,则将所述第一终端中的数据同步到所述第二终端中。If a network connection has been established between the first terminal and the second terminal, synchronizing the data in the first terminal to the second terminal.
作为一种可选的实施方式,所述第一终端通过接入第一无线保真WIFI网络建立与所述第二终端之间的网络连接;As an optional implementation manner, the first terminal establishes a network connection with the second terminal by accessing a first wireless fidelity WIFI network;
所述将所述第一终端中的数据同步到所述第二终端中之前,所述方法还包括:Before synchronizing the data in the first terminal to the second terminal, the method further includes:
获取所述第一WIFI网络的账号信息;Obtain account information of the first WIFI network;
确定预设的安全WIFI列表中是否包含所述第一WIFI网络的账号信息,以判断所述第一WIFI网络是否为可信任网络。Determine whether the account information of the first WIFI network is included in the preset safe WIFI list, so as to determine whether the first WIFI network is a trusted network.
作为一种可选的实施方式,所述方法还包括:As an optional implementation, the method also includes:
若所述第一WIFI网络为可信任网络,则确定所述第二终端当前也通过接入所述第一WIFI网络建立与所述第一终端之间的网络连接。If the first WIFI network is a trusted network, it is determined that the second terminal also currently establishes a network connection with the first terminal by accessing the first WIFI network.
作为一种可选的实施方式,所述将所述第一终端中的数据同步到所述第二终端中,包括:As an optional implementation manner, the synchronizing the data in the first terminal to the second terminal includes:
获取所述第一终端中在预设的时间点之后修改和/或新增的数据;Acquiring data modified and/or newly added after a preset time point in the first terminal;
将所述在预设的时间点之后修改和/或新增的数据同步到所述第二终端中。Synchronizing the modified and/or newly added data after the preset time point to the second terminal.
作为一种可选的实施方式,所述将所述第一终端中的数据同步到所述第二终端中之前,所述方法还包括:As an optional implementation manner, before synchronizing the data in the first terminal to the second terminal, the method further includes:
统计所述在预设的时间点之后修改和/或新增的数据的总数据量;Counting the total data volume of the modified and/or newly added data after the preset time point;
获取所述第二终端中可用于同步的存储空间大小;Obtain the size of storage space available for synchronization in the second terminal;
判断所述存储空间大小是否足够存储需同步的所述总数据量;Judging whether the size of the storage space is sufficient to store the total amount of data to be synchronized;
若否,则输出通知消息以提醒用户切换至其他终端设备来接收所述在预设的时间点之后修改和/或新增的数据。If not, a notification message is output to remind the user to switch to another terminal device to receive the data modified and/or added after the preset time point.
作为一种可选的实施方式,所述方法还包括:As an optional implementation, the method also includes:
监测所述第一终端是否由所述待机状态进入唤醒状态;monitoring whether the first terminal enters a wake-up state from the standby state;
若所述第一终端由所述待机状态进入到所述唤醒状态,则中断所述将所述第一终端中的数据同步到所述第二终端中的同步过程,并记录所述同步过程的断点用以进行断点续传。If the first terminal enters the wake-up state from the standby state, interrupt the synchronization process of synchronizing the data in the first terminal to the second terminal, and record the synchronization process Breakpoints are used to continue uploading from breakpoints.
本发明实施例第二方面公开了一种数据备份设备,包括:The second aspect of the embodiment of the present invention discloses a data backup device, including:
第一监测单元,用于监测第一终端是否进入待机状态;a first monitoring unit, configured to monitor whether the first terminal enters a standby state;
第一确定单元,用于当所述第一终端已进入待机状态后,确定所述第一终端与第二终端之间是否已建立网络连接;a first determining unit, configured to determine whether a network connection has been established between the first terminal and the second terminal after the first terminal has entered a standby state;
同步单元,用于当所述第一终端与所述第二终端之间已建立网络连接后,将所述第一终端中的数据同步到所述第二终端中。A synchronization unit, configured to synchronize data in the first terminal to the second terminal after a network connection has been established between the first terminal and the second terminal.
作为一种可选的实施方式,所述第一终端通过接入第一无线保真WIFI网络建立与所述第二终端之间的网络连接;As an optional implementation manner, the first terminal establishes a network connection with the second terminal by accessing a first wireless fidelity WIFI network;
所述设备还包括:The device also includes:
第一获取单元,用于获取所述第一WIFI网络的账号信息;a first obtaining unit, configured to obtain account information of the first WIFI network;
第一判断单元,用于确定预设的安全WIFI列表中是否包含所述第一WIFI网络的账号信息,以判断所述第一WIFI网络是否为可信任网络。The first judging unit is configured to determine whether the account information of the first WIFI network is included in the preset safe WIFI list, so as to judge whether the first WIFI network is a trusted network.
作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:
第二确定单元,用于当所述第一WIFI网络为可信任网络时,确定所述第二终端当前也通过接入所述第一WIFI网络建立与所述第一终端之间的网络连接。The second determining unit is configured to determine that the second terminal also currently establishes a network connection with the first terminal by accessing the first WIFI network when the first WIFI network is a trusted network.
作为一种可选的实施方式,所述同步单元,包括:As an optional implementation manner, the synchronization unit includes:
获取子单元,用于获取所述第一终端中在预设的时间点之后修改和/或新增的数据;an acquisition subunit, configured to acquire data modified and/or newly added in the first terminal after a preset time point;
同步子单元,用于将所述在预设的时间点之后修改和/或新增的数据同步到所述第二终端中。A synchronization subunit, configured to synchronize the modified and/or newly added data after a preset time point to the second terminal.
作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:
统计单元,用于统计所述在预设的时间点之后修改和/或新增的数据的总数据量;A statistical unit, configured to count the total data volume of the modified and/or newly added data after the preset time point;
第二获取单元,用于获取所述第二终端中可用于同步的存储空间大小;a second acquiring unit, configured to acquire the size of storage space available for synchronization in the second terminal;
第二判断单元,用于判断所述存储空间大小是否足够存储需同步的所述总数据量;A second judging unit, configured to judge whether the size of the storage space is sufficient to store the total amount of data to be synchronized;
提示单元,用于当所述存储空间大小不足以存储需同步的所述总数据量时,输出通知消息以提醒用户切换至其他终端设备来接收所述在预设的时间点之后修改和/或新增的数据。A prompting unit, configured to output a notification message to remind the user to switch to another terminal device to receive the modified and/or Added data.
作为一种可选的实施方式,所述设备还包括:As an optional implementation manner, the device further includes:
第二监测单元,用于监测所述第一终端是否由所述待机状态进入唤醒状态;a second monitoring unit, configured to monitor whether the first terminal enters the wake-up state from the standby state;
中断单元,用于当所述第一终端由所述待机状态进入到所述唤醒状态时,中断所述将所述第一终端中的数据同步到所述第二终端中的同步过程;an interruption unit, configured to interrupt the synchronization process of synchronizing the data in the first terminal to the second terminal when the first terminal enters the wake-up state from the standby state;
记录单元,用于记录所述同步过程的断点用以进行断点续传。The recording unit is configured to record the breakpoint of the synchronization process for resuming the transmission from the breakpoint.
本发明实施例第三方面公开了一种终端设备,包括:处理器和存储器,所述处理器用于执行上述第一方面所公开的方法。The third aspect of the embodiments of the present invention discloses a terminal device, including: a processor and a memory, and the processor is configured to execute the method disclosed in the first aspect above.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例中,监测第一终端是否进入待机状态;若所述第一终端已进入待机状态,则确定所述第一终端与第二终端之间是否已建立网络连接;若所述第一终端与所述第二终端之间已建立网络连接,则将所述第一终端中的数据同步到所述第二终端中。由此可见,实施本发明实施例,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。In the embodiment of the present invention, it is monitored whether the first terminal enters the standby state; if the first terminal has entered the standby state, it is determined whether a network connection has been established between the first terminal and the second terminal; if the first If a network connection has been established between the terminal and the second terminal, the data in the first terminal is synchronized to the second terminal. It can be seen that, by implementing the embodiment of the present invention, the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to prevent data loss in the terminal device due to accidents such as loss or damage of the user's terminal device.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例公开的一种数据备份方法的流程示意图;FIG. 1 is a schematic flow diagram of a data backup method disclosed in an embodiment of the present invention;
图2为本发明实施例公开的另一种数据备份方法的流程示意图;FIG. 2 is a schematic flow diagram of another data backup method disclosed in an embodiment of the present invention;
图3为本发明实施例公开的一种数据备份设备的结构示意图;FIG. 3 is a schematic structural diagram of a data backup device disclosed in an embodiment of the present invention;
图4为本发明实施例公开的另一种数据备份设备的结构示意图;FIG. 4 is a schematic structural diagram of another data backup device disclosed in an embodiment of the present invention;
图5为本发明实施例公开的一种终端设备的结构示意图;FIG. 5 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present invention;
图6为本发明实施例公开的另一种终端设备的结构示意图。FIG. 6 is a schematic structural diagram of another terminal device disclosed in an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods or apparatuses.
本发明实施例提供了一种数据备份方法及设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。以下分别进行详细说明。The embodiment of the present invention provides a data backup method and device, which can automatically back up the data in the user terminal device to other terminal devices for storage, so as to prevent the user's terminal device from being lost or data lost. Each will be described in detail below.
请参阅图1,图1是本发明实施例公开的一种数据备份方法的流程示意图。其中,图1所示的数据备份方法可以包括以下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a data backup method disclosed in an embodiment of the present invention. Wherein, the data backup method shown in Figure 1 may include the following steps:
101、监测第一终端是否进入待机状态。101. Monitor whether the first terminal enters a standby state.
本发明实施例中,终端设备可为智能手机、智能手表、掌上电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。In the embodiment of the present invention, the terminal device may be a smart phone, a smart watch, a handheld computer, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a sales terminal (Point of Sales, POS), etc. repeat.
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。In the embodiment of the present invention, when the first terminal enters the standby state, it means that the user is not using the terminal device, so the data backup operation can be performed, so as to prevent the backup operation from occupying network bandwidth and processor resources when the user is using the terminal device. affect the user experience.
102、若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接。102. If the first terminal has entered the standby state, determine whether a network connection has been established between the first terminal and the second terminal.
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。In the embodiment of the present invention, the first terminal may be a terminal device commonly used by users, such as a smart phone. However, general users of smart phones need to carry them with them, so they are more likely to be damaged or lost by external forces, which will cause the loss of user data in the smart phone. Therefore, it may be considered to send the data in the smart phone to the user's second terminal for backup when the user is not operating the terminal device (that is, in a standby state). Preferably, the second terminal can be the user's desktop computer, notebook computer and other idle smart phones, etc. These devices are generally placed at home and have relatively sufficient free storage space, so they are very suitable for use as backup devices.
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。In the embodiment of the present invention, a network connection can be established between the first terminal and the second terminal in various ways, such as establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network connection through a wireless network connection. For connection, available wireless network connection methods include: WIFI, Bluetooth, infrared, Zigbee, Near Field Communication (NFC), etc. The specific method is not limited in the embodiment of the present invention.
103、若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。103. If a network connection has been established between the first terminal and the second terminal, synchronize the data in the first terminal to the second terminal.
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。If before this operation, the first terminal has performed the work of synchronizing the data in the first terminal to the second terminal, then in this synchronization operation, some of the data in the first terminal have already been stored in the second terminal. data. As an optional implementation manner, the first terminal records the time when the last synchronization operation was performed as a preset time point, and during this synchronization operation, obtains the data in the first terminal modified and/or The newly added data, and then the above-mentioned modified and/or newly added data after the preset time point are synchronized to the second terminal.
由此可见,实施图1所描述的方法,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。It can be seen that implementing the method described in FIG. 1 can automatically back up the data in the user terminal device to other terminal devices for storage, so as to avoid data loss in the terminal device due to accidents such as loss or damage of the user's terminal device. .
请参阅图2,图2是本发明实施例公开的另一种数据备份方法的流程示意图。如图2所示,该方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of another data backup method disclosed in an embodiment of the present invention. As shown in Figure 2, the method may include the following steps:
201、监测第一终端是否进入待机状态。201. Monitor whether the first terminal enters a standby state.
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。In the embodiment of the present invention, when the first terminal enters the standby state, it means that the user is not using the terminal device, so the data backup operation can be performed, so as to prevent the backup operation from occupying network bandwidth and processor resources when the user is using the terminal device. affect the user experience.
202、若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接。202. If the first terminal has entered the standby state, determine whether a network connection has been established between the first terminal and the second terminal.
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。In the embodiment of the present invention, the first terminal may be a terminal device commonly used by users, such as a smart phone. However, general users of smart phones need to carry them with them, so they are more likely to be damaged or lost by external forces, which will cause the loss of user data in the smart phone. Therefore, it may be considered to send the data in the smart phone to the user's second terminal for backup when the user is not operating the terminal device (that is, in a standby state). Preferably, the second terminal can be the user's desktop computer, notebook computer and other idle smart phones, etc. These devices are generally placed at home and have relatively sufficient free storage space, so they are very suitable for use as backup devices.
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。In the embodiment of the present invention, a network connection can be established between the first terminal and the second terminal in various ways, such as establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network connection through a wireless network connection. For connection, available wireless network connection methods include: WIFI, Bluetooth, infrared, Zigbee, Near Field Communication (NFC), etc. The specific method is not limited in the embodiment of the present invention.
203、若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。203. If a network connection has been established between the first terminal and the second terminal, synchronize the data in the first terminal to the second terminal.
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。If before this operation, the first terminal has performed the work of synchronizing the data in the first terminal to the second terminal, then in this synchronization operation, some of the data in the first terminal have already been stored in the second terminal. data. As an optional implementation manner, the first terminal records the time when the last synchronization operation was performed as a preset time point, and during this synchronization operation, obtains the data in the first terminal modified and/or The newly added data, and then the above-mentioned modified and/or newly added data after the preset time point are synchronized to the second terminal.
204、监测第一终端是否由上述待机状态进入唤醒状态。204. Monitor whether the first terminal enters the wake-up state from the standby state.
本发明实施例中,为了避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,当终端设备由待机状态进入唤醒状态时,即推断用户需要使用终端设备,因此可以考虑中断将第一终端中的数据同步到第二终端中的同步过程。In the embodiment of the present invention, in order to avoid the network bandwidth and processor resources occupied by the backup operation when the user is using the terminal device, when the terminal device enters the wake-up state from the standby state, it is inferred that the user needs to use the terminal device, so it can be considered to interrupt the first Synchronization of data in one terminal to a synchronization process in a second terminal.
205、若第一终端由上述待机状态进入到上述唤醒状态,则中断上述将第一终端中的数据同步到第二终端中的同步过程。205. If the first terminal enters the wake-up state from the standby state, interrupt the synchronization process of synchronizing the data in the first terminal to the second terminal.
206、记录上述同步过程的断点用以进行断点续传。206. Record the breakpoints of the above synchronization process for resuming transmission from breakpoints.
本发明实施例中,在中断数据同步过程时,记录同步过程的断点,以便于在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。In the embodiment of the present invention, when the data synchronization process is interrupted, the breakpoint of the synchronization process is recorded, so as to resume transmission at the breakpoint during the next data synchronization, save backup time, and improve backup efficiency.
由此可见,实施图2所描述的方法,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。It can be seen that implementing the method described in FIG. 2 can automatically back up the data in the user terminal device to other terminal devices for storage, so as to avoid data loss in the terminal device caused by accidents such as loss or damage of the user's terminal device. . In addition, when the user needs to use the terminal device, the data synchronization process is interrupted and the breakpoint is recorded for resuming the breakpoint, which can avoid the backup operation when the user uses the terminal device from occupying network bandwidth and processor resources, and Resume downloading from breakpoints during the next data synchronization, saving backup time and improving backup efficiency.
请参阅图3,图3是本发明实施例公开的一种数据备份设备的结构示意图。如图3所示,该设备可以包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a data backup device disclosed in an embodiment of the present invention. As shown in Figure 3, the equipment can include:
第一监测单元301,用于监测第一终端是否进入待机状态。The first monitoring unit 301 is configured to monitor whether the first terminal enters a standby state.
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。In the embodiment of the present invention, when the first terminal enters the standby state, it means that the user is not using the terminal device, so the data backup operation can be performed, so as to prevent the backup operation from occupying network bandwidth and processor resources when the user is using the terminal device. affect the user experience.
第一确定单元302,用于当第一终端已进入待机状态后,确定第一终端与第二终端之间是否已建立网络连接。The first determining unit 302 is configured to determine whether a network connection has been established between the first terminal and the second terminal after the first terminal enters the standby state.
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。In the embodiment of the present invention, the first terminal may be a terminal device commonly used by users, such as a smart phone. However, general users of smart phones need to carry them with them, so they are more likely to be damaged or lost by external forces, which will cause the loss of user data in the smart phone. Therefore, it may be considered to send the data in the smart phone to the user's second terminal for backup when the user is not operating the terminal device (that is, in a standby state). Preferably, the second terminal can be the user's desktop computer, notebook computer and other idle smart phones, etc. These devices are generally placed at home and have relatively sufficient free storage space, so they are very suitable for use as backup devices.
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。In the embodiment of the present invention, a network connection can be established between the first terminal and the second terminal in various ways, such as establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network connection through a wireless network connection. For connection, available wireless network connection methods include: WIFI, Bluetooth, infrared, Zigbee, Near Field Communication (NFC), etc. The specific method is not limited in the embodiment of the present invention.
同步单元303,用于当第一终端与第二终端之间已建立网络连接后,将第一终端中的数据同步到第二终端中。The synchronization unit 303 is configured to synchronize the data in the first terminal to the second terminal after a network connection has been established between the first terminal and the second terminal.
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。If before this operation, the first terminal has performed the work of synchronizing the data in the first terminal to the second terminal, then in this synchronization operation, some of the data in the first terminal have already been stored in the second terminal. data. As an optional implementation manner, the first terminal records the time when the last synchronization operation was performed as a preset time point, and during this synchronization operation, obtains the data in the first terminal modified and/or The newly added data, and then the above-mentioned modified and/or newly added data after the preset time point are synchronized to the second terminal.
由此可见,利用图3所描述的设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。It can be seen that by using the device described in Figure 3, the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to avoid data loss in the terminal device due to accidents such as loss or damage of the user's terminal device .
请一并参阅图4,图4是本发明实施例公开的另一种数据备份设备的结构示意图。其中,图4所示的数据备份设备是由图3所示的设备进行优化得到的,与图3所示的设备相比,图4所示的设备还包括:Please also refer to FIG. 4 . FIG. 4 is a schematic structural diagram of another data backup device disclosed in an embodiment of the present invention. Wherein, the data backup device shown in Figure 4 is obtained by optimizing the device shown in Figure 3. Compared with the device shown in Figure 3, the device shown in Figure 4 also includes:
统计单元304,用于统计上述在预设的时间点之后修改和/或新增的数据的总数据量。The statistical unit 304 is configured to count the total data amount of the above-mentioned modified and/or newly added data after the preset time point.
第二获取单元305,用于获取第二终端中可用于同步的存储空间大小。The second acquiring unit 305 is configured to acquire the size of storage space available for synchronization in the second terminal.
第二判断单元306,用于判断上述存储空间大小是否足够存储需同步的上述总数据量。The second judging unit 306 is configured to judge whether the size of the storage space is sufficient to store the total amount of data to be synchronized.
提示单元307,用于当上述存储空间大小不足以存储需同步的上述总数据量时,输出通知消息以提醒用户切换至其他终端设备来接收上述在预设的时间点之后修改和/或新增的数据。Prompt unit 307, configured to output a notification message to remind the user to switch to another terminal device to receive the modification and/or addition after the preset time point when the size of the storage space is not enough to store the total amount of data to be synchronized The data.
第二监测单元308,用于监测第一终端是否由上述待机状态进入唤醒状态。The second monitoring unit 308 is configured to monitor whether the first terminal enters the wake-up state from the standby state.
本发明实施例中,为了避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,当终端设备由待机状态进入唤醒状态时,即推断用户需要使用终端设备,因此可以考虑中断将第一终端中的数据同步到第二终端中的同步过程。In the embodiment of the present invention, in order to avoid the network bandwidth and processor resources occupied by the backup operation when the user is using the terminal device, when the terminal device enters the wake-up state from the standby state, it is inferred that the user needs to use the terminal device, so it can be considered to interrupt the first Synchronization of data in one terminal to a synchronization process in a second terminal.
中断单元309,用于当第一终端由上述待机状态进入到上述唤醒状态时,中断上述将第一终端中的数据同步到第二终端中的同步过程。The interruption unit 309 is configured to interrupt the synchronization process of synchronizing the data in the first terminal to the second terminal when the first terminal enters the wake-up state from the standby state.
记录单元310,用于记录上述同步过程的断点用以进行断点续传。The recording unit 310 is configured to record the breakpoints of the above synchronization process for resuming transmission from breakpoints.
本发明实施例中,在中断数据同步过程时,记录同步过程的断点,以便于在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。In the embodiment of the present invention, when the data synchronization process is interrupted, the breakpoint of the synchronization process is recorded, so as to resume transmission at the breakpoint during the next data synchronization, save backup time, and improve backup efficiency.
由此可见,利用图4所描述的设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。It can be seen that, using the device described in Figure 4, the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to avoid data loss in the terminal device due to accidents such as loss or damage of the user's terminal device . In addition, when the user needs to use the terminal device, the data synchronization process is interrupted and the breakpoint is recorded for resuming the breakpoint, which can avoid the backup operation when the user uses the terminal device from occupying network bandwidth and processor resources, and Resume downloading from breakpoints during the next data synchronization, saving backup time and improving backup efficiency.
请参阅图5,图5为本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present invention. As shown in FIG. 5, the terminal device includes: a processor 501 and a memory 502; wherein the memory 502 can be used for the cache required by the processor 501 to perform data processing, and can also be used to provide data for the processor 501 to perform data processing calls and The storage space for the obtained result data.
在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:In the embodiment of the present invention, the processor 501 is used to perform the following operations by calling the program code stored in the memory 502:
监测第一终端是否进入待机状态;monitoring whether the first terminal enters the standby state;
若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接;If the first terminal has entered the standby state, then determining whether a network connection has been established between the first terminal and the second terminal;
若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。If a network connection has been established between the first terminal and the second terminal, synchronizing the data in the first terminal to the second terminal.
由此可见,利用图5所描述的终端设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。It can be seen that by using the terminal device described in Figure 5, the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to prevent the user's terminal device from being lost or damaged, which may cause the data in the terminal device to lost.
请参阅图6,图6为本发明实施例公开的另一种终端设备的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of another terminal device disclosed in an embodiment of the present invention. As shown in FIG. 6 , for ease of description, only the parts related to the embodiment of the present invention are shown, and for specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The terminal can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the terminal as a mobile phone as an example:
图6示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 6 shows a block diagram of a partial structure of a mobile phone related to the terminal provided by the embodiment of the present invention. Referring to FIG. 6 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 601, a memory 602, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (wireless fidelity, WiFi) module 607, and a processor 608 , and power supply 609 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 6:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 601 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information from the base station, it is processed by the processor 608; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, the RF circuit 601 can also communicate with networks and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) , CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Message Service (Short Messaging Service, SMS), etc.
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 602 can be used to store software programs and modules, and the processor 608 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 602 . The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 603 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 603 may include a touch panel 6031 and other input devices 6032 . The touch panel 6031, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6031 or near the touch panel 6031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 6031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 608, and can receive and execute commands sent by the processor 608. In addition, the touch panel 6031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6031 , the input unit 603 may also include other input devices 6032 . Specifically, other input devices 6032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。The display unit 604 can be used to display information input by the user or provided to the user and various menus of the mobile phone. The display unit 604 may include a display panel 6041. Optionally, the display panel 6041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Furthermore, the touch panel 6031 can cover the display panel 6041. When the touch panel 6031 detects a touch operation on or near it, it sends it to the processor 608 to determine the type of the touch event, and then the processor 608 according to the touch event The type provides a corresponding visual output on the display panel 6041. Although in FIG. 6 , the touch panel 6031 and the display panel 6041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 6031 and the display panel 6041 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 6041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 6041 and/or or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。The audio circuit 606, the speaker 6061 and the microphone 6062 can provide an audio interface between the user and the mobile phone. The audio circuit 606 can transmit the electrical signal converted from the received audio data to the speaker 6061, and the speaker 6061 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 608, and then sent to another mobile phone through the RF circuit 601, or the audio data is output to the memory 602 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 607, which provides users with wireless broadband Internet access. Although FIG. 6 shows a WiFi module 607, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。The processor 608 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 608 .
手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理系统与处理器608逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 609 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 608 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作系统内核均可视为处理器608的抽象化结构的组成部分。In the foregoing embodiments, the method flow of each step can be implemented based on the structure of the terminal device. Both the application layer and the operating system kernel can be regarded as components of the abstract structure of the processor 608 .
在本发明实施例中,处理器608通过调用存储于存储器602中的程序代码,用于执行以下操作:In the embodiment of the present invention, the processor 608 is used to perform the following operations by calling the program code stored in the memory 602:
监测第一终端是否进入待机状态;monitoring whether the first terminal enters the standby state;
若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接;If the first terminal has entered the standby state, then determining whether a network connection has been established between the first terminal and the second terminal;
若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。If a network connection has been established between the first terminal and the second terminal, synchronizing the data in the first terminal to the second terminal.
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:As an optional implementation manner, the processor 608 is further configured to perform the following operations by calling the program code stored in the memory 602:
监测第一终端是否由上述待机状态进入唤醒状态;Monitoring whether the first terminal enters the wake-up state from the standby state;
若第一终端由上述待机状态进入到上述唤醒状态,则中断上述将第一终端中的数据同步到第二终端中的同步过程,并记录上述同步过程的断点用以进行断点续传。If the first terminal enters the above-mentioned wake-up state from the above-mentioned standby state, the above-mentioned synchronization process of synchronizing the data in the first terminal to the second terminal is interrupted, and the breakpoint of the above-mentioned synchronization process is recorded for resumed transmission.
由此可见,利用图6所描述的终端设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。It can be seen that using the terminal device described in Figure 6, the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to prevent the loss or damage of the user's terminal device and other accidents that may cause the data in the terminal device to lost. In addition, when the user needs to use the terminal device, the data synchronization process is interrupted and the breakpoint is recorded for resuming the breakpoint, which can avoid the backup operation when the user uses the terminal device from occupying network bandwidth and processor resources, and Resume downloading from breakpoints during the next data synchronization, saving backup time and improving backup efficiency.
值得注意的是,上述数据备份设备和终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments of the data backup device and the terminal device, the units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, each The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned method embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk and so on.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above are only preferred specific implementation modes of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present invention. , should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (13)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610825116.8A CN106453511B (en) | 2016-09-14 | 2016-09-14 | Data backup method and equipment |
PCT/CN2017/092658 WO2018049897A1 (en) | 2016-09-14 | 2017-07-12 | Data backup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610825116.8A CN106453511B (en) | 2016-09-14 | 2016-09-14 | Data backup method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106453511A true CN106453511A (en) | 2017-02-22 |
CN106453511B CN106453511B (en) | 2019-04-16 |
Family
ID=58169133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610825116.8A Active CN106453511B (en) | 2016-09-14 | 2016-09-14 | Data backup method and equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106453511B (en) |
WO (1) | WO2018049897A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107329857A (en) * | 2017-06-30 | 2017-11-07 | 联想(北京)有限公司 | A kind of data back up method and electronic equipment |
WO2018049897A1 (en) * | 2016-09-14 | 2018-03-22 | 广东欧珀移动通信有限公司 | Data backup method and device |
CN107979689A (en) * | 2017-11-03 | 2018-05-01 | 刘珉恺 | One kind tangles mobile phone pair |
CN108733833A (en) * | 2018-05-28 | 2018-11-02 | 努比亚技术有限公司 | A kind of method of data synchronization, first terminal, second terminal and storage medium |
CN109597585A (en) * | 2018-12-07 | 2019-04-09 | 珠海格力电器股份有限公司 | Data storage method and system |
CN110837439A (en) * | 2019-09-30 | 2020-02-25 | 华为终端有限公司 | File backup method, terminal and communication system |
WO2021027972A1 (en) * | 2019-08-09 | 2021-02-18 | 中科寒武纪科技股份有限公司 | Data synchronization method and apparatus and related product |
CN112531835A (en) * | 2020-11-30 | 2021-03-19 | 惠州Tcl移动通信有限公司 | Charging method and device of mobile terminal, storage medium and mobile terminal |
WO2021164121A1 (en) * | 2020-02-17 | 2021-08-26 | 深圳壹账通智能科技有限公司 | Mobile terminal and application program data synchronization method therefor, and storage medium |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639834A (en) * | 2019-01-25 | 2019-04-16 | 努比亚技术有限公司 | A kind of synchronizing information processing method, system and mobile terminal |
CN115225649A (en) * | 2022-07-19 | 2022-10-21 | 维沃移动通信有限公司 | Data synchronization method, device and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592464A (en) * | 2003-08-26 | 2005-03-09 | 三星电子株式会社 | Apparatus and method for processing a data backup service for use in a mobile terminal |
US20070149255A1 (en) * | 2005-12-27 | 2007-06-28 | Inventec Appliances Corp. | System for backing up information of a handheld electronic device and method thereof |
CN102169453A (en) * | 2011-03-08 | 2011-08-31 | 杭州电子科技大学 | File online backup method |
CN102999400A (en) * | 2012-11-22 | 2013-03-27 | 中国电信股份有限公司云计算分公司 | Data backup method and device of cloud storage system |
CN104144176A (en) * | 2013-05-07 | 2014-11-12 | 上海国富光启云计算科技有限公司 | Method for connecting intelligent desktop system clients and servers |
CN105912421A (en) * | 2016-04-06 | 2016-08-31 | 广东欧珀移动通信有限公司 | Backup method and device for data stored in mobile terminal, mobile terminal and terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453511B (en) * | 2016-09-14 | 2019-04-16 | Oppo广东移动通信有限公司 | Data backup method and equipment |
-
2016
- 2016-09-14 CN CN201610825116.8A patent/CN106453511B/en active Active
-
2017
- 2017-07-12 WO PCT/CN2017/092658 patent/WO2018049897A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1592464A (en) * | 2003-08-26 | 2005-03-09 | 三星电子株式会社 | Apparatus and method for processing a data backup service for use in a mobile terminal |
US20070149255A1 (en) * | 2005-12-27 | 2007-06-28 | Inventec Appliances Corp. | System for backing up information of a handheld electronic device and method thereof |
CN102169453A (en) * | 2011-03-08 | 2011-08-31 | 杭州电子科技大学 | File online backup method |
CN102999400A (en) * | 2012-11-22 | 2013-03-27 | 中国电信股份有限公司云计算分公司 | Data backup method and device of cloud storage system |
CN104144176A (en) * | 2013-05-07 | 2014-11-12 | 上海国富光启云计算科技有限公司 | Method for connecting intelligent desktop system clients and servers |
CN105912421A (en) * | 2016-04-06 | 2016-08-31 | 广东欧珀移动通信有限公司 | Backup method and device for data stored in mobile terminal, mobile terminal and terminal |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018049897A1 (en) * | 2016-09-14 | 2018-03-22 | 广东欧珀移动通信有限公司 | Data backup method and device |
CN107329857A (en) * | 2017-06-30 | 2017-11-07 | 联想(北京)有限公司 | A kind of data back up method and electronic equipment |
CN107979689A (en) * | 2017-11-03 | 2018-05-01 | 刘珉恺 | One kind tangles mobile phone pair |
CN108733833A (en) * | 2018-05-28 | 2018-11-02 | 努比亚技术有限公司 | A kind of method of data synchronization, first terminal, second terminal and storage medium |
CN109597585A (en) * | 2018-12-07 | 2019-04-09 | 珠海格力电器股份有限公司 | Data storage method and system |
WO2021027972A1 (en) * | 2019-08-09 | 2021-02-18 | 中科寒武纪科技股份有限公司 | Data synchronization method and apparatus and related product |
CN110837439A (en) * | 2019-09-30 | 2020-02-25 | 华为终端有限公司 | File backup method, terminal and communication system |
WO2021164121A1 (en) * | 2020-02-17 | 2021-08-26 | 深圳壹账通智能科技有限公司 | Mobile terminal and application program data synchronization method therefor, and storage medium |
CN112531835A (en) * | 2020-11-30 | 2021-03-19 | 惠州Tcl移动通信有限公司 | Charging method and device of mobile terminal, storage medium and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106453511B (en) | 2019-04-16 |
WO2018049897A1 (en) | 2018-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106453511A (en) | A data backup method and device | |
CN106484562B (en) | Data transmission processing method and terminal equipment | |
CN106020987A (en) | Method and device for determining kernel running configuration in processor | |
CN106502834A (en) | The backup method of data, apparatus and system | |
CN106658354B (en) | Data transmission method and equipment | |
CN106341809B (en) | Data transmission method and equipment | |
CN107567080A (en) | Method for reducing power consumption and terminal equipment | |
CN106330211B (en) | LTE frequency band selection method and device | |
CN106385485A (en) | Call recording method, device and mobile terminal | |
CN105812250A (en) | Control method and device for pushing message to wearable device and mobile terminal | |
CN103744574A (en) | A method and device for turning off an alarm clock for a mobile terminal, and the mobile terminal | |
CN106445739B (en) | Data migration method and terminal equipment | |
CN106658753A (en) | Data migration method and terminal equipment | |
CN106488391B (en) | A data migration method and terminal device | |
CN106658353A (en) | A data migration method and terminal equipment | |
CN107046595A (en) | Notification information processing method, device and mobile terminal | |
CN106502827A (en) | A data backup method and device | |
CN106714279A (en) | A hotspot network switching method and terminal equipment | |
CN106484563A (en) | A kind of data migration method and terminal unit | |
CN106598563A (en) | Intelligent terminal restart method, device and intelligent terminal | |
CN106792434B (en) | Hotspot establishing method and terminal equipment | |
CN106686704B (en) | Terminal monitoring method and mobile terminal | |
CN106255146B (en) | A kind of electricity-saving control method of terminal, device and terminal | |
CN106131892A (en) | Network access control method and device | |
CN106507357A (en) | An access control method, and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |