WO2018049897A1 - 数据备份方法及设备 - Google Patents

数据备份方法及设备 Download PDF

Info

Publication number
WO2018049897A1
WO2018049897A1 PCT/CN2017/092658 CN2017092658W WO2018049897A1 WO 2018049897 A1 WO2018049897 A1 WO 2018049897A1 CN 2017092658 W CN2017092658 W CN 2017092658W WO 2018049897 A1 WO2018049897 A1 WO 2018049897A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
data
unit
network connection
network
Prior art date
Application number
PCT/CN2017/092658
Other languages
English (en)
French (fr)
Inventor
周璇
陆天洋
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049897A1 publication Critical patent/WO2018049897A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a data backup method and device.
  • terminal devices such as smart phones, tablets and personal digital assistants (PDAs) to realize various activities of daily life, such as entertainment, office and communication.
  • PDAs personal digital assistants
  • terminal devices In use, terminal devices often store large amounts of user data, such as contacts, short messages, memos, photos, videos, and internal data for applications. However, the loss or damage of the user's terminal device sometimes occurs. When such a situation occurs, the user information in the terminal device is also lost and cannot be recovered, causing a certain loss to the user.
  • the embodiment of the invention provides a data backup method and device, which can automatically back up data in the user terminal device to other terminal devices for storage, so as to avoid accidents such as loss or damage of the user terminal device, resulting in the terminal device data lost.
  • a first aspect of the embodiments of the present invention discloses a data backup method, including:
  • the first terminal has entered the standby state, determining whether a network connection has been established between the first terminal and the second terminal;
  • a 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, after the first terminal has entered a standby state, whether a network connection has been established between the first terminal and the second terminal;
  • a synchronization unit configured to synchronize data in the first terminal to the second terminal after a network connection is established between the first terminal and the second terminal.
  • a third aspect of the embodiments of the present invention discloses a terminal device, including: a processor and a memory, the memory is configured to store a program and data, and the processor is configured to invoke the program stored in the memory to perform the first aspect.
  • the disclosed method including: a processor and a memory, the memory is configured to store a program and data, and the processor is configured to invoke the program stored in the memory to perform the first aspect.
  • a fourth aspect of an embodiment of the present invention discloses a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method as described in the first aspect above.
  • a fifth aspect of an embodiment of the present invention discloses a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the first aspect as described above Said method.
  • 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 caused by accidents such as loss or damage of the user terminal device.
  • FIG. 1 is a schematic flowchart of a data backup method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another data backup method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a data backup device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another data backup device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the embodiment of the invention provides a data backup method and device, which can automatically back up data in the user terminal device to other terminal devices for storage, so as to avoid accidents such as loss or damage of the user terminal device, resulting in the terminal device data lost.
  • the details are described below separately.
  • FIG. 1 is a schematic flowchart diagram of a data backup method according to an embodiment of the present invention.
  • the data backup method shown in FIG. 1 may include the following steps:
  • the terminal device may be a smart phone, a smart watch, a palmtop computer, or a tablet battery.
  • the present invention is not described in detail in the embodiments of the present invention, such as a brain, a personal digital assistant (PDA), a point of sales (POS), and the like.
  • PDA personal digital assistant
  • POS point of sales
  • the user when the first terminal enters the standby state, the user is not using the terminal device, so that the data backup operation can be performed to avoid the network bandwidth and processor resources occupied by the backup operation when the user uses the terminal device. Affect the user's experience.
  • the first terminal may be a terminal device commonly used by the user, such as a smart phone.
  • the general user of the smartphone needs to carry it with him, so the damage or loss of the external force may be large, which may result in the loss of user data in the smartphone. Therefore, it can be considered that the data in the smartphone is sent to the second terminal of the user for backup when the user does not operate the terminal device (ie, the standby state).
  • the second terminal can be a user's desktop computer, a notebook computer, and other unused smart phones, etc., which are generally placed at home and have sufficient free storage space, and thus are well suited for use as a backup device.
  • the desktop computer, the notebook computer, or the like can be used as a candidate terminal, and the terminal device selects one terminal from the candidate terminals as a second terminal to perform backup by using a certain rule.
  • the terminal device may acquire a remaining storage space size of each candidate terminal, and then select a candidate terminal with the largest remaining storage space as the second terminal. In this way, you can try to ensure the storage space required for the backup operation, and avoid the insufficient storage space to make the data backup fail.
  • the terminal device may acquire the current power of each candidate terminal, and then select the candidate terminal with the most current power as the second terminal. In this way, it is possible to avoid the backup interruption due to insufficient power of the second terminal during the backup process.
  • a network connection may be established between the first terminal and the second terminal in multiple manners, for example, establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network through a wireless network connection manner.
  • the wireless network connection method that can be adopted includes: WIFI, Bluetooth, infrared, Zigbee, and Near Field Communication (NFC), and the like, which is not limited by the embodiment of the present invention.
  • the first terminal in order to ensure the security of the data backup operation and prevent the user data from being stolen by the illegal elements during the backup process, the first terminal can be restricted from performing the backup operation when accessing the secure WIFI network.
  • the account information of the first WIFI network accessed by the first terminal may be obtained, and then the account information of the first WIFI network is verified to be included in the preset secure WIFI network list;
  • the account information of the network is included in the preset secure WIFI network list, and the first WIFI is determined to be a trusted network, so that the first terminal can perform a data backup operation when the link is in the first WIFI network.
  • the first terminal and the second terminal may be further restricted to access the first WIFI network, and the first terminal can back up the data to the second terminal. Since the coverage of the single WIFI network is small, when both the first terminal and the second terminal access the first WIFI network, it can be inferred that the distance between the first terminal and the second terminal is small (for example, The user accesses the home WIFI network at the same time, and operates the first terminal and the second terminal to perform data backup. The user is likely to operate the two terminals at the same time. Therefore, the current operating conditions are relatively safe, and the first terminal and the second terminal can be executed. Data backup operation between.
  • the first terminal may obtain the distance between the first terminal and the second terminal directly by using the GPS information or the WIFI indoor positioning. If the distance between the first terminal and the second terminal is less than a preset threshold, step 102 is performed. The operation of determining whether a network connection has been established between the first terminal and the second terminal.
  • the preset threshold may be set to 2 meters. If the distance between the first terminal and the second terminal does not exceed two meters, it may be determined that the user operates two terminals at the same time, and the second terminal is reduced by the criminal Get the possibility of obtaining data backups, thus improving the security of data backup operations.
  • the first terminal If, before the current operation, the first terminal has performed the work of synchronizing the data in the first terminal to the second terminal, in the current synchronization operation, the second terminal has already stored in some of the first terminals. data.
  • the first terminal records the time of performing the last synchronization operation as a preset time point.
  • the first terminal is modified and/or modified after the preset time point.
  • the newly added data is then synchronized to the second terminal by the above-mentioned modified and/or newly added data after the preset time point.
  • 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 caused by accidents such as loss or damage of the user terminal device. .
  • FIG. 2 is a schematic flowchart diagram of another data backup method according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
  • the user when the first terminal enters the standby state, the user is not using the terminal device, so that the data backup operation can be performed to avoid the network bandwidth and processor resources occupied by the backup operation when the user uses the terminal device. Affect the user's experience.
  • the first terminal may be a terminal device commonly used by the user, such as a smart phone.
  • the general user of the smartphone needs to carry it with him, so the damage or loss of the external force may be large, which may result in the loss of user data in the smartphone. Therefore, it can be considered that the data in the smartphone is sent to the second terminal of the user for backup when the user does not operate the terminal device (ie, the standby state).
  • the second terminal can be a user's desktop computer, a notebook computer, and other unused smart phones, etc., which are generally placed at home and have sufficient free storage space, and thus are well suited for use as a backup device.
  • a network connection may be established between the first terminal and the second terminal in multiple manners, for example, establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network through a wireless network connection manner.
  • the wireless network connection method that can be adopted includes: WIFI, Bluetooth, infrared, Zigbee, and Near Field Communication (NFC), and the like, which is not limited by the embodiment of the present invention.
  • the first terminal records the time of performing the last synchronization operation as a preset time point, and in the current synchronization operation, acquiring the first terminal after the preset time point is modified and/or Or new data, and then synchronize the data modified and/or added after the preset time point to the second terminal.
  • the interruption may be considered.
  • the data in one terminal is synchronized to the synchronization process in the second terminal.
  • the first terminal enters the awake state from the standby state, interrupting the synchronization process of synchronizing data in the first terminal to the second terminal.
  • the breakpoint of the synchronization process is recorded, so that the next time the data synchronization is performed, the breakpoint is resumed, the backup time is saved, and the backup efficiency is improved.
  • 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 caused by accidents such as loss or damage of the user terminal device.
  • the data synchronization process is interrupted and the breakpoint is recorded for the breakpoint transmission, which can avoid the backup operation occupying the network bandwidth and the processor resources when the user uses the terminal device, and can The next time data synchronization is performed, the resume is resumed, saving backup time and improving backup efficiency.
  • FIG. 3 is a schematic structural diagram of a data backup device according to an embodiment of the present invention. As shown in FIG. 3, the device may include:
  • the first monitoring unit 301 is configured to monitor whether the first terminal enters a standby state.
  • the user when the first terminal enters the standby state, the user is not using the terminal device, so that the data backup operation can be performed to avoid the network bandwidth and processor resources occupied by the backup operation when the user uses the terminal device. Affect the user's experience.
  • the first determining unit 302 is configured to determine, after the first terminal has entered the standby state, whether a network connection has been established between the first terminal and the second terminal.
  • the first terminal may be a terminal device commonly used by the user, such as a smart phone.
  • the general user of the smartphone needs to carry it with him, so the damage or loss of the external force may be large, which may result in the loss of user data in the smartphone. Therefore, you can consider the data in your smartphone.
  • the backup is performed in the second terminal that is sent to the user when the user does not operate the terminal device (ie, in the standby state).
  • the second terminal can be a user's desktop computer, a notebook computer, and other unused smart phones, etc., which are generally placed at home and have sufficient free storage space, and thus are well suited for use as a backup device.
  • a network connection may be established between the first terminal and the second terminal in multiple manners, for example, establishing a wired network connection through a Universal Serial Bus (USB), or establishing a network through a wireless network connection manner.
  • the wireless network connection method that can be adopted includes: WIFI, Bluetooth, infrared, Zigbee, and Near Field Communication (NFC), and the like, which is not limited by the embodiment of the present invention.
  • the synchronization unit 303 is configured to synchronize data in the first terminal to the second terminal after the network connection is established between the first terminal and the second terminal.
  • the first terminal If, before the current operation, the first terminal has performed the work of synchronizing the data in the first terminal to the second terminal, in the current synchronization operation, the second terminal has already stored in some of the first terminals. data.
  • the first terminal records the time of performing the last synchronization operation as a preset time point.
  • the first terminal is modified and/or modified after the preset time point.
  • the newly added data is then synchronized to the second terminal by the above-mentioned modified and/or newly added data after the preset time point.
  • the embodiment of the present invention may divide the functional unit into the user terminal according to the foregoing method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the first monitoring unit 301 and the first determining unit 302 may be integrated into a central processing unit (CPU);
  • the synchronization unit 303 may be a WIFI circuit or a radio frequency circuit.
  • the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • 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 caused by accidents such as loss or damage of the user terminal device. .
  • FIG. 4 is a schematic structural diagram of another data backup device according to an embodiment of the present invention.
  • the data backup device shown in FIG. 4 is optimized by the device shown in FIG. Compared with the device shown in FIG. 3, the device shown in FIG. 4 further includes:
  • the statistics unit 304 is configured to count the total amount of data of the data modified and/or added after the preset time point.
  • the second obtaining unit 305 is configured to acquire a storage space size that is available for synchronization in the second terminal.
  • the second determining unit 306 is configured to determine whether the size of the storage space is sufficient to store the total amount of data to be synchronized.
  • the prompting unit 307 is configured to: when the storage space is not large enough to store the total amount of data to be synchronized, output a notification message to remind the user to switch to another terminal device to receive the above modification and/or addition after a preset time point.
  • the data is not large enough to store the total amount of data to be synchronized.
  • the second monitoring unit 308 is configured to monitor whether the first terminal enters the awake state from the standby state.
  • the interruption may be considered.
  • the data in one terminal is synchronized to the synchronization process in the second terminal.
  • the interrupting unit 309 is configured to interrupt the synchronization process of synchronizing data in the first terminal to the second terminal when the first terminal enters the awake state from the standby state.
  • the recording unit 310 is configured to record a breakpoint of the synchronization process for performing a breakpoint retransmission.
  • the breakpoint of the synchronization process is recorded, so that the next time the data synchronization is performed, the breakpoint is resumed, the backup time is saved, and the backup efficiency is improved.
  • the statistics unit 304, the second obtaining unit 305, the second determining unit 306, the second monitoring unit 308, the interrupting unit 309, and the recording unit 310 may also be integrated in the processor; and the prompting unit 307 may be Display.
  • the terminal device may further include:
  • a third acquiring unit configured to acquire a remaining storage space size of more than one candidate terminal
  • a first selecting unit configured to select, as the second terminal, a candidate terminal with the largest remaining storage space in the more than one candidate terminal.
  • the terminal device may further include:
  • a fourth acquiring unit configured to acquire a current power of more than one candidate terminal
  • a second selecting unit configured to select, as the second terminal, a candidate terminal that has the most power in the more than one candidate terminal.
  • the third obtaining unit, the first selecting unit, the fourth obtaining unit, and the second selecting unit may also be integrated in the processor.
  • the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to avoid data loss of the terminal device due to accidents such as loss or damage of the user terminal device.
  • the data synchronization process is interrupted and the breakpoint is recorded for the breakpoint transmission, which can avoid the backup operation occupying the network bandwidth and the processor resources when the user uses the terminal device, and can The next time data synchronization is performed, the resume is resumed, saving backup time and improving backup efficiency.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device includes: a processor 501 and a memory 502; wherein the memory 502 can be used by the processor 501 to perform a buffer required for 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 resulting data.
  • the processor 501 is configured to perform the following operations by calling program code stored in the memory 502:
  • the first terminal has entered the standby state, determining whether a network connection has been established between the first terminal and the second terminal;
  • the data in the first terminal is synchronized to the second terminal.
  • the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to prevent the user terminal device from being lost or damaged, and the data in the terminal device is caused. Lost.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention. As shown in FIG. 6, for the convenience of description, only the parts related to the embodiment of the present invention are shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present invention.
  • the terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the terminal is a mobile phone as an example:
  • FIG. 6 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention.
  • the mobile phone includes: a 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 (WiFi) module 607, and a processor 608. And power supply 609 and other components.
  • RF radio frequency
  • the structure of the handset shown in FIG. 6 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 601 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 608. In addition, the uplink data is designed to be sent to the base station. Generally, RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 can also communicate with the network and other devices through wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • 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 software programs and modules stored in the memory 602.
  • the memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 602 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 603 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input unit 603 can include a touch panel 6031 and other input devices 6032.
  • the touch panel 6031 also referred to as a touch screen, can collect users a touch operation on or near the touch (such as a user using a finger, a stylus, or the like on the touch panel 6031 or in the vicinity of the touch panel 6031), and driving the corresponding connection according to a preset program Device.
  • the touch panel 6031 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a 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 the touch information into contact coordinates, and sends the touch information.
  • the processor 608 is provided and can receive commands from the processor 608 and execute them.
  • the touch panel 6031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 603 may further include other input devices 6032.
  • other input devices 6032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 604 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 604 can include a display panel 6041.
  • the display panel 6041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 6031 can cover the display panel 6041. After the touch panel 6031 detects a touch operation thereon or nearby, the touch panel 6031 transmits 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 display panel 6041.
  • touch panel 6031 and the display panel 6041 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 6, in some embodiments, the touch panel 6031 can be integrated with the display panel 6041. Realize the input and output functions of the phone.
  • the handset may also include at least one type of sensor 605, such as a light sensor, motion sensor, and other sensors.
  • 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 close the display panel 6041 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, I will not repeat them here.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, I will not repeat them here.
  • An audio circuit 606, a speaker 6061, and a microphone 6062 can provide an audio interface between the user and the handset.
  • the audio circuit 606 can transmit the converted audio data of the received audio data to the speaker 6061, and convert it into a sound signal output by the speaker 6061.
  • the microphone 6062 converts the collected sound signal into an electrical signal, and the audio circuit 606. After receiving, it is converted into audio data, and then processed by the audio data output processor 608, sent to, for example, another mobile phone via the RF circuit 601, or outputted to the memory 602 for further processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 607, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 607, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 608 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 608 may include one or more processing units; preferably, the processor 608 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 608.
  • the handset also includes a power source 609 (such as a battery) that supplies power to the various components.
  • a power source 609 such as a battery
  • the power source can be logically coupled to the processor 608 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • each step method flow may be implemented based on the structure of the terminal device.
  • Both the application layer and the operating system kernel can be considered as part of the abstraction structure of the processor 608.
  • the processor 608 is configured to perform the following operations by calling program code stored in the memory 602:
  • the first terminal has entered the standby state, determining whether a network connection has been established between the first terminal and the second terminal;
  • the data in the first terminal is synchronized to the second terminal.
  • processor 608 is further configured to perform the following operations by calling program code stored in the memory 602:
  • the first terminal enters the awake state from the standby state, interrupting the synchronization process of synchronizing data in the first terminal to the second terminal, and recording a breakpoint of the synchronization process for performing resume transmission.
  • the data in the user terminal device can be automatically backed up to other terminal devices for storage, so as to prevent the user terminal device from being lost or damaged, and the data in the terminal device is caused. Lost.
  • the data synchronization process is interrupted and the breakpoint is recorded for the breakpoint transmission, which can avoid the backup operation occupying the network bandwidth and the processor resources when the user uses the terminal device, and can The next time data synchronization is performed, the resume is resumed, saving backup time and improving backup efficiency.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes a terminal device.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names of the functional units are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

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

数据备份方法及设备
本发明要求2016年9月14日递交的发明名称为“一种数据备份方法及设备”的申请号201610825116.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及终端技术领域,尤其涉及一种数据备份方法及设备。
背景技术
随着终端技术的发展,人们可以利用智能手机、平板电脑和个人数字助理(Personal Digital Assistant,PDA)等终端设备实现日常生活的各种活动,如进行娱乐、办公和交流等。
在使用过程中,终端设备往往会存储大量的用户数据,如通讯录、短消息、备忘录、照片、视频和应用程序内部数据等。然而,用户的终端设备遗失或者损毁的情况时有发生,当这样的情况发生时,终端设备中的用户信息也随之遗失而无法恢复,为用户带来一定的损失。
发明内容
本发明实施例提供了一种数据备份方法及设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。
本发明实施例第一方面公开了一种数据备份方法,包括:
监测第一终端是否进入待机状态;
若所述第一终端已进入待机状态,则确定所述第一终端与第二终端之间是否已建立网络连接;
若所述第一终端与所述第二终端之间已建立网络连接,则将所述第一终端中的数据同步到所述第二终端中。
本发明实施例第二方面公开了一种数据备份设备,包括:
第一监测单元,用于监测第一终端是否进入待机状态;
第一确定单元,用于当所述第一终端已进入待机状态后,确定所述第一终端与第二终端之间是否已建立网络连接;
同步单元,用于当所述第一终端与所述第二终端之间已建立网络连接后,将所述第一终端中的数据同步到所述第二终端中。
本发明实施例第三方面公开了一种终端设备,包括:处理器和存储器,所述存储器用于存储程序和数据,所述处理器用于调用所述存储器存储的程序,以执行上述第一方面所公开的方法。
本发明实施例第四方面公开了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如上述第一方面所述的方法。
本发明实施例第五方面公开了一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述第一方面所述的方法。
本发明实施例中,监测第一终端是否进入待机状态;若所述第一终端已进入待机状态,则确定所述第一终端与第二终端之间是否已建立网络连接;若所述第一终端与所述第二终端之间已建立网络连接,则将所述第一终端中的数据同步到所述第二终端中。由此可见,实施本发明实施例,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的 一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例公开的一种数据备份方法的流程示意图;
图2为本发明实施例公开的另一种数据备份方法的流程示意图;
图3为本发明实施例公开的一种数据备份设备的结构示意图;
图4为本发明实施例公开的另一种数据备份设备的结构示意图;
图5为本发明实施例公开的一种终端设备的结构示意图;
图6为本发明实施例公开的另一种终端设备的结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。
由于终端设备中存储了大量用户信息,而终端设备容易出现丢失、损坏等情况,因此,如何保证终端设备中数据的安全性,是一个亟待解决的问题。
本发明实施例提供了一种数据备份方法及设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。以下分别进行详细说明。
请参阅图1,图1是本发明实施例公开的一种数据备份方法的流程示意图。其中,图1所示的数据备份方法可以包括以下步骤:
101、监测第一终端是否进入待机状态。
本发明实施例中,终端设备可为智能手机、智能手表、掌上电脑、平板电 脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point of Sales,POS)等,本发明实施例后续不作复述。
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。
102、若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接。
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。
本发明实施例中,上述台式机电脑、笔记本电脑等可以作为候选终端,终端设备通过一定的规则从候选终端中选择出一个终端作为第二终端来进行备份。
作为一种可选的实施方式,终端设备可以获取每个候选终端的剩余存储空间大小,之后从中选择剩余存储空间大小最大的候选终端作为第二终端。通过这种方式,可以尽量保证备份操作所需的存储空间,避免存储空间不足使得数据备份失败。
作为一种可选的实施方式,终端设备可以获取每个候选终端的当前电量,之后从中选择当前电量最多的候选终端作为第二终端。通过这种方式,可以避免在备份过程中第二终端电量不足造成备份中断。
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。
103、若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。
本发明实施例中,为了保障数据备份操作的安全性,避免用户数据在备份的过程中被不法分子窃取,可以限制第一终端在接入了安全WIFI网络的时候才能进行备份操作。
作为一种可选的实施方式,可以获取第一终端接入的第一WIFI网络的账号信息,之后核实第一WIFI网络的账号信息是否包含在预设的安全WIFI网络列表中;若第一WIFI网络的账号信息包含在预设的安全WIFI网络列表中,则将第一WIFI确定为可信任网络,从而第一终端可以在链接在第一WIFI网络的情况下执行数据备份操作。
在确定了第一WIFI网络为可信任网络的情况下,可以进一步限制第一终端和第二终端均接入第一WIFI网络的情况下,第一终端方能将数据备份到第二终端。由于单个WIFI网络的覆盖范围较小,因此,当第一终端和第二终端均接入到第一WIFI网络时,可以推测第一终端与第二终端之间的距离较小(举例来说,用户在家接入家庭WIFI网络,同时操作第一终端与第二终端以进行数据备份),用户很可能为同时操作两个终端,因此当前的操作条件较为安全,可以执行第一终端与第二终端间的数据备份操作。
可选地,第一终端可以直接通过GPS信息或WIFI室内定位获取第一终端与第二终端之间的距离,若第一终端与第二终端之间的距离小于预设阈值,在执行步骤102中的确定第一终端与第二终端间是否已建立网络连接的操作。举例来说,上述预设阈值可以设置为2米,若第一终端与第二终端之间的距离不超过两米,则可以确定为用户同时操作两个终端,降低了第二终端被不法分子获取从而获取数据备份的可能,从而提高数据备份操作的安全性。
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。
由此可见,实施图1所描述的方法,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。
请参阅图2,图2是本发明实施例公开的另一种数据备份方法的流程示意图。如图2所示,该方法可以包括以下步骤:
201、监测第一终端是否进入待机状态。
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。
202、若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接。
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。
203、若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/ 或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。
204、监测第一终端是否由上述待机状态进入唤醒状态。
本发明实施例中,为了避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,当终端设备由待机状态进入唤醒状态时,即推断用户需要使用终端设备,因此可以考虑中断将第一终端中的数据同步到第二终端中的同步过程。
205、若第一终端由上述待机状态进入到上述唤醒状态,则中断上述将第一终端中的数据同步到第二终端中的同步过程。
206、记录上述同步过程的断点用以进行断点续传。
本发明实施例中,在中断数据同步过程时,记录同步过程的断点,以便于在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。
由此可见,实施图2所描述的方法,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。
请参阅图3,图3是本发明实施例公开的一种数据备份设备的结构示意图。如图3所示,该设备可以包括:
第一监测单元301,用于监测第一终端是否进入待机状态。
本发明实施例中,当第一终端进入待机状态时,代表用户没有在使用该终端设备,因而可以进行数据备份操作,避免在用户使用该终端设备时进行备份操作占用网络带宽和处理器资源,影响用户的使用体验。
第一确定单元302,用于当第一终端已进入待机状态后,确定第一终端与第二终端之间是否已建立网络连接。
本发明实施例中,第一终端可以为用户常用的终端设备,例如智能手机。然而,智能手机一般用户需要随身携带,因此遭遇外力损坏或丢失的可能较大,这便会造成智能手机中的用户数据丢失。因而,可以考虑将智能手机中的数据 在用户不操作终端设备时(即待机状态)发送至用户的第二终端中进行备份。优选地,第二终端可为用户的台式机电脑、笔记本电脑和闲置不用的其他智能手机等,这些设备一般被放置在家,且具有较为充足的闲置存储空间,因而十分适合作为备份设备来使用。
本发明实施例中,第一终端和第二终端之间可以通过多种方式建立网络连接,例如通过通用串行总线(Universal Serial Bus,USB)建立有线网络连接,或者通过无线网络连接方式建立网络连接,可采取的无线网络连接方式包括:WIFI、蓝牙、红外、紫蜂、近场通信(Near Field Communication,NFC)等,具体采取何种方式,本发明实施例不做限定。
同步单元303,用于当第一终端与第二终端之间已建立网络连接后,将第一终端中的数据同步到第二终端中。
若在本次操作之前,第一终端已执行过将第一终端中的数据同步到第二终端中的工作,则在本次同步操作时,第二终端中已存有部分第一终端中的数据。作为一种可选的实施方式,第一终端记录进行上一次同步操作的时间作为预设的时间点,在本次同步操作时,获取第一终端中在预设的时间点之后修改和/或新增的数据,之后将上述在预设的时间点之后修改和/或新增的数据同步到第二终端中。
本发明实施例可以根据上述方法示例对用户终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。举例来说,上述第一监测单元301、第一确定单元302可以集成到中央处理器(Central Processing Unit,CPU)之中;同步单元303可为WIFI电路或射频电路。需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
由此可见,利用图3所描述的设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。
请一并参阅图4,图4是本发明实施例公开的另一种数据备份设备的结构示意图。其中,图4所示的数据备份设备是由图3所示的设备进行优化得到的, 与图3所示的设备相比,图4所示的设备还包括:
统计单元304,用于统计上述在预设的时间点之后修改和/或新增的数据的总数据量。
第二获取单元305,用于获取第二终端中可用于同步的存储空间大小。
第二判断单元306,用于判断上述存储空间大小是否足够存储需同步的上述总数据量。
提示单元307,用于当上述存储空间大小不足以存储需同步的上述总数据量时,输出通知消息以提醒用户切换至其他终端设备来接收上述在预设的时间点之后修改和/或新增的数据。
第二监测单元308,用于监测第一终端是否由上述待机状态进入唤醒状态。
本发明实施例中,为了避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,当终端设备由待机状态进入唤醒状态时,即推断用户需要使用终端设备,因此可以考虑中断将第一终端中的数据同步到第二终端中的同步过程。
中断单元309,用于当第一终端由上述待机状态进入到上述唤醒状态时,中断上述将第一终端中的数据同步到第二终端中的同步过程。
记录单元310,用于记录上述同步过程的断点用以进行断点续传。
本发明实施例中,在中断数据同步过程时,记录同步过程的断点,以便于在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。
本发明实施例中,上述统计单元304、第二获取单元305、第二判断单元306、第二监测单元308、中断单元309和记录单元310也可集成在处理器中;而提示单元307可为显示屏。
作为一种可选的实施方式,终端设备还可以包括:
第三获取单元,用于获取多于一个候选终端的剩余存储空间大小;
第一选择单元,用于选择所述多于一个候选终端中剩余存储空间大小最大的候选终端作为所述第二终端。
作为一种可选的实施方式,终端设备还可以包括:
第四获取单元,用于获取多于一个候选终端的当前电量;
第二选择单元,用于选择所述多于一个候选终端中当前电量最多的候选终端作为所述第二终端。
上述第三获取单元、第一选择单元、第四获取单元以及第二选择单元也可集成在处理器之中。
由此可见,利用图4所描述的设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。
请参阅图5,图5为本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备包括:处理器501以及存储器502;其中存储器502可以用于处理器501执行数据处理所需要的缓存,还可以用于提供处理器501执行数据处理调用的数据以及获得的结果数据的存储空间。
在本发明实施例中,处理器501通过调用存储于存储器502中的程序代码,用于执行以下操作:
监测第一终端是否进入待机状态;
若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接;
若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。
由此可见,利用图5所描述的终端设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。
请参阅图6,图6为本发明实施例公开的另一种终端设备的结构示意图。如图6所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:
图6示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路601、存储器602、输入单元603、显示单元604、传感器605、音频电路606、无线保真(wireless fidelity,WiFi)模块607、处理器608、以及电源609等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路601可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器608处理;另外,将设计上行的数据发送给基站。通常,RF电路601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路601还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器602可用于存储软件程序以及模块,处理器608通过运行存储在存储器602的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元603可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元603可包括触控面板6031以及其他输入设备6032。触控面板6031,也称为触摸屏,可收集用户在 其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6031上或在触控面板6031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板6031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器608,并能接收处理器608发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6031。除了触控面板6031,输入单元603还可以包括其他输入设备6032。具体地,其他输入设备6032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元604可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元604可包括显示面板6041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6041。进一步的,触控面板6031可覆盖显示面板6041,当触控面板6031检测到在其上或附近的触摸操作后,传送给处理器608以确定触摸事件的类型,随后处理器608根据触摸事件的类型在显示面板6041上提供相应的视觉输出。虽然在图6中,触控面板6031与显示面板6041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板6031与显示面板6041集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板6041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器, 在此不再赘述。
音频电路606、扬声器6061,传声器6062可提供用户与手机之间的音频接口。音频电路606可将接收到的音频数据转换后的电信号,传输到扬声器6061,由扬声器6061转换为声音信号输出;另一方面,传声器6062将收集的声音信号转换为电信号,由音频电路606接收后转换为音频数据,再将音频数据输出处理器608处理后,经RF电路601以发送给比如另一手机,或者将音频数据输出至存储器602以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块607可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块607,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器608是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器608可包括一个或多个处理单元;优选的,处理器608可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器608中。
手机还包括给各个部件供电的电源609(比如电池),优选的,电源可以通过电源管理***与处理器608逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述实施例中,各步骤方法流程可以基于该终端设备的结构实现。其中应用层和操作***内核均可视为处理器608的抽象化结构的组成部分。
在本发明实施例中,处理器608通过调用存储于存储器602中的程序代码,用于执行以下操作:
监测第一终端是否进入待机状态;
若第一终端已进入待机状态,则确定第一终端与第二终端之间是否已建立网络连接;
若第一终端与第二终端之间已建立网络连接,则将第一终端中的数据同步到第二终端中。
作为一种可选的实施方式,处理器608通过调用存储于存储器602中的程序代码,还用于执行以下操作:
监测第一终端是否由上述待机状态进入唤醒状态;
若第一终端由上述待机状态进入到上述唤醒状态,则中断上述将第一终端中的数据同步到第二终端中的同步过程,并记录上述同步过程的断点用以进行断点续传。
由此可见,利用图6所描述的终端设备,可以自动将用户终端设备中的数据备份至其他终端设备中进行保存,以免用户的终端设备发生遗失或者损毁等意外情况而导致终端设备中的数据丢失。除此之外,当用户需要使用终端设备时,中断数据同步过程并记录断点以进行断点续传,既能避免在用户使用终端设备时进行备份操作占用网络带宽和处理器资源,又能在下次进行数据同步时进行断点续传,节省备份的时间,提高备份效率。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。
值得注意的是,上述数据备份设备和终端设备实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。

Claims (20)

  1. 一种数据备份方法,其特征在于,包括:
    监测第一终端是否进入待机状态;
    若所述第一终端已进入待机状态,则确定所述第一终端与第二终端之间是否已建立网络连接;
    若所述第一终端与所述第二终端之间已建立网络连接,则将所述第一终端中的数据同步到所述第二终端中。
  2. 根据权利要求1所述方法,其特征在于,所述第一终端通过接入第一无线保真WIFI网络建立与所述第二终端之间的网络连接;
    所述将所述第一终端中的数据同步到所述第二终端中之前,所述方法还包括:
    获取所述第一WIFI网络的账号信息;
    确定预设的安全WIFI列表中是否包含所述第一WIFI网络的账号信息,以判断所述第一WIFI网络是否为可信任网络。
  3. 根据权利要求2所述方法,其特征在于,所述方法还包括:
    若所述第一WIFI网络为可信任网络,则确定所述第二终端当前也通过接入所述第一WIFI网络建立与所述第一终端之间的网络连接。
  4. 根据权利要求3所述方法,其特征在于,所述将所述第一终端中的数据同步到所述第二终端中,包括:
    获取所述第一终端中在预设的时间点之后修改和/或新增的数据;
    将所述在预设的时间点之后修改和/或新增的数据同步到所述第二终端中。
  5. 根据权利要求4所述方法,其特征在于,所述将所述第一终端中的数据同步到所述第二终端中之前,所述方法还包括:
    统计所述在预设的时间点之后修改和/或新增的数据的总数据量;
    获取所述第二终端中可用于同步的存储空间大小;
    判断所述存储空间大小是否足够存储需同步的所述总数据量;
    若否,则输出通知消息以提醒用户切换至其他终端设备来接收所述在预设的时间点之后修改和/或新增的数据。
  6. 根据权利要求1~5中任意一项所述方法,其特征在于,所述方法还包括:
    监测所述第一终端是否由所述待机状态进入唤醒状态;
    若所述第一终端由所述待机状态进入到所述唤醒状态,则中断所述将所述第一终端中的数据同步到所述第二终端中的同步过程,并记录所述同步过程的断点用以进行断点续传。
  7. 根据权利要求1所述方法,其特征在于,所述确定所述第一终端与第二终端之间是否已建立网络连接之前,所述方法还包括:
    获取多于一个候选终端的剩余存储空间大小;
    选择所述多于一个候选终端中剩余存储空间大小最大的候选终端作为所述第二终端。
  8. 根据权利要求1所述方法,其特征在于,所述确定所述第一终端与第二终端之间是否已建立网络连接之前,所述方法还包括:
    获取多于一个候选终端的当前电量;
    选择所述多于一个候选终端中当前电量最多的候选终端作为所述第二终端。
  9. 根据权利要求1所述方法,其特征在于,所述确定所述第一终端与第二终端之间是否已建立网络连接之前,所述方法还包括:
    获取所述第一终端与所述第二终端之间的距离;
    若所述第一终端与所述第二终端之间的距离小于预设阈值,则执行所述确定所述第一终端与第二终端之间是否已建立网络连接的操作。
  10. 一种数据备份设备,其特征在于,包括:
    第一监测单元,用于监测第一终端是否进入待机状态;
    第一确定单元,用于当所述第一终端已进入待机状态后,确定所述第一终端与第二终端之间是否已建立网络连接;
    同步单元,用于当所述第一终端与所述第二终端之间已建立网络连接后,将所述第一终端中的数据同步到所述第二终端中。
  11. 根据权利要求10所述设备,其特征在于,所述第一终端通过接入第一无线保真WIFI网络建立与所述第二终端之间的网络连接;
    所述设备还包括:
    第一获取单元,用于获取所述第一WIFI网络的账号信息;
    第一判断单元,用于确定预设的安全WIFI列表中是否包含所述第一WIFI网络的账号信息,以判断所述第一WIFI网络是否为可信任网络。
  12. 根据权利要求11所述设备,其特征在于,所述设备还包括:
    第二确定单元,用于当所述第一WIFI网络为可信任网络时,确定所述第二终端当前也通过接入所述第一WIFI网络建立与所述第一终端之间的网络连接。
  13. 根据权利要求12所述设备,其特征在于,所述同步单元,包括:
    获取子单元,用于获取所述第一终端中在预设的时间点之后修改和/或新增的数据;
    同步子单元,用于将所述在预设的时间点之后修改和/或新增的数据同步到所述第二终端中。
  14. 根据权利要求13所述设备,其特征在于,所述设备还包括:
    统计单元,用于统计所述在预设的时间点之后修改和/或新增的数据的总数据量;
    第二获取单元,用于获取所述第二终端中可用于同步的存储空间大小;
    第二判断单元,用于判断所述存储空间大小是否足够存储需同步的所述总数据量;
    提示单元,用于当所述存储空间大小不足以存储需同步的所述总数据量时,输出通知消息以提醒用户切换至其他终端设备来接收所述在预设的时间点之后修改和/或新增的数据。
  15. 根据权利要求10~14中任意一项所述设备,其特征在于,所述设备还包括:
    第二监测单元,用于监测所述第一终端是否由所述待机状态进入唤醒状态;
    中断单元,用于当所述第一终端由所述待机状态进入到所述唤醒状态时,中断所述将所述第一终端中的数据同步到所述第二终端中的同步过程;
    记录单元,用于记录所述同步过程的断点用以进行断点续传。
  16. 根据权利要求10所述终端设备,其特征在于,所述终端设备还包括:
    第三获取单元,用于获取多于一个候选终端的剩余存储空间大小;
    第一选择单元,用于选择所述多于一个候选终端中剩余存储空间大小最大的候选终端作为所述第二终端。
  17. 根据权利要求10所述终端设备,其特征在于,所述确定所述第一终端与第二终端之间是否已建立网络连接之前,所述方法还包括:
    第四获取单元,用于获取多于一个候选终端的当前电量;
    第二选择单元,用于选择所述多于一个候选终端中当前电量最多的候选终端作为所述第二终端。
  18. 一种终端设备,其特征在于,包括:处理器和存储器,所述存储器用于存储程序和数据,所述处理器用于调用所述存储器存储的程序,以执行权利要求1~9中任意一项所述的方法。
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1~9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1~9任一项所述的方法。
PCT/CN2017/092658 2016-09-14 2017-07-12 数据备份方法及设备 WO2018049897A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610825116.8A CN106453511B (zh) 2016-09-14 2016-09-14 一种数据备份方法及设备
CN201610825116.8 2016-09-14

Publications (1)

Publication Number Publication Date
WO2018049897A1 true WO2018049897A1 (zh) 2018-03-22

Family

ID=58169133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092658 WO2018049897A1 (zh) 2016-09-14 2017-07-12 数据备份方法及设备

Country Status (2)

Country Link
CN (1) CN106453511B (zh)
WO (1) WO2018049897A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639834A (zh) * 2019-01-25 2019-04-16 努比亚技术有限公司 一种信息同步处理方法、***及移动终端
CN115225649A (zh) * 2022-07-19 2022-10-21 维沃移动通信有限公司 数据同步方法、装置和电子设备

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453511B (zh) * 2016-09-14 2019-04-16 Oppo广东移动通信有限公司 一种数据备份方法及设备
CN107329857A (zh) * 2017-06-30 2017-11-07 联想(北京)有限公司 一种数据备份方法及电子设备
CN107979689A (zh) * 2017-11-03 2018-05-01 刘珉恺 一种纠缠手机对
CN108733833A (zh) * 2018-05-28 2018-11-02 努比亚技术有限公司 一种数据同步方法、第一终端、第二终端及存储介质
CN109597585B (zh) * 2018-12-07 2020-06-30 珠海格力电器股份有限公司 数据存储方法及***
CN112347186B (zh) * 2019-08-09 2023-02-28 安徽寒武纪信息科技有限公司 数据同步方法及装置以及相关产品
CN110837439A (zh) * 2019-09-30 2020-02-25 华为终端有限公司 一种文件备份方法、终端与通信***
CN111372223A (zh) * 2020-02-17 2020-07-03 深圳壹账通智能科技有限公司 移动终端及其应用程序的数据同步方法、及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592464A (zh) * 2003-08-26 2005-03-09 三星电子株式会社 用于移动终端中的处理数据备份服务的装置和方法
US20070149255A1 (en) * 2005-12-27 2007-06-28 Inventec Appliances Corp. System for backing up information of a handheld electronic device and method thereof
CN102999400A (zh) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 一种云存储***数据备份方法及装置
CN104144176A (zh) * 2013-05-07 2014-11-12 上海国富光启云计算科技有限公司 智能桌面***客户端与服务器的连接方法
CN105912421A (zh) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 移动终端中存储数据的备份方法、装置、移动终端及终端
CN106453511A (zh) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 一种数据备份方法及设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102169453A (zh) * 2011-03-08 2011-08-31 杭州电子科技大学 一种文件在线备份方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592464A (zh) * 2003-08-26 2005-03-09 三星电子株式会社 用于移动终端中的处理数据备份服务的装置和方法
US20070149255A1 (en) * 2005-12-27 2007-06-28 Inventec Appliances Corp. System for backing up information of a handheld electronic device and method thereof
CN102999400A (zh) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 一种云存储***数据备份方法及装置
CN104144176A (zh) * 2013-05-07 2014-11-12 上海国富光启云计算科技有限公司 智能桌面***客户端与服务器的连接方法
CN105912421A (zh) * 2016-04-06 2016-08-31 广东欧珀移动通信有限公司 移动终端中存储数据的备份方法、装置、移动终端及终端
CN106453511A (zh) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 一种数据备份方法及设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639834A (zh) * 2019-01-25 2019-04-16 努比亚技术有限公司 一种信息同步处理方法、***及移动终端
CN115225649A (zh) * 2022-07-19 2022-10-21 维沃移动通信有限公司 数据同步方法、装置和电子设备

Also Published As

Publication number Publication date
CN106453511A (zh) 2017-02-22
CN106453511B (zh) 2019-04-16

Similar Documents

Publication Publication Date Title
WO2018049897A1 (zh) 数据备份方法及设备
WO2018049887A1 (zh) 数据传输处理方法及终端设备
CN113542831B (zh) 控制视频的共享的方法以及适配该方法的电子设备
CN106657251A (zh) 一种数据同步方法和装置
WO2018103492A1 (zh) WiFi漫游的设置方法及终端设备
US20150052534A1 (en) Method and device for executing scheduled tasks, computer-readable storage medium, graphical user interface and mobile terminal
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2018049912A1 (zh) 数据传输方法及相关设备
CN107465841B (zh) 一种故障信息上报方法及终端
WO2018049894A1 (zh) 数据传输方法及设备
WO2018120905A1 (zh) 终端中消息提示的方法和终端
CN108834132B (zh) 一种数据传输方法及设备和相关介质产品
WO2018049893A1 (zh) 数据传输方法及终端设备
CN103458124A (zh) 一种终端的关机处理方法、装置和终端设备
WO2018049971A1 (zh) 热点网络切换方法及终端
WO2018103443A1 (zh) 一种网络定位方法及终端设备
WO2018049921A1 (zh) 数据传输处理方法及相关设备
WO2015014250A1 (en) Incoming call management method and apparatus for mobile terminal
WO2019076250A1 (zh) 推送消息的管理方法及相关产品
WO2019034104A1 (zh) 终端自动释放后台进程占用资源的方法、存储介质及终端
WO2021027713A1 (zh) 上行传输方法、上行传输控制方法及相关设备
CN108322602B (zh) 一种处理应用无响应的方法、终端和计算机可读存储介质
CN108632454B (zh) 信息处理方法和装置、计算机可读存储介质、终端
WO2014094600A1 (zh) 移动终端及其降低功耗的方法
EP2996316B1 (en) Methods and systems for communication management between an electronic device and a wearable electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850100

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850100

Country of ref document: EP

Kind code of ref document: A1