CN101860570B - Method and system for backuping and restoring user data of mobile terminal - Google Patents
Method and system for backuping and restoring user data of mobile terminal Download PDFInfo
- Publication number
- CN101860570B CN101860570B CN201010196951.2A CN201010196951A CN101860570B CN 101860570 B CN101860570 B CN 101860570B CN 201010196951 A CN201010196951 A CN 201010196951A CN 101860570 B CN101860570 B CN 101860570B
- Authority
- CN
- China
- Prior art keywords
- user data
- data
- mobile terminal
- server
- user
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000004044 response Effects 0.000 claims abstract description 40
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 238000011084 recovery Methods 0.000 claims description 49
- 238000012795 verification Methods 0.000 claims description 15
- 238000004321 preservation Methods 0.000 claims 2
- 241000599985 Beijerinckia mobilis Species 0.000 claims 1
- 230000003993 interaction Effects 0.000 abstract description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000006837 decompression Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1466—Management of the backup or restore process to make the backup process non-disruptive
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1469—Backup restoration techniques
-
- 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/04—Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Retry When Errors Occur (AREA)
Abstract
本发明公开了一种备份和恢复移动终端用户数据的方法,其中备份移动终端用户数据的方法包括:移动终端接收到服务器发送的备份用户数据的指令后,读取用户数据,并把所述用户数据保存到镜像区,然后返回备份成功的响应;服务器接收到所述备份成功的响应后,发送数据传输命令给移动终端,移动终端按照数据传输命令,把保存在镜像区的用户数据发送给服务器,并保存到服务器上。在本发明中,通过将需要备份的用户数据或者需要恢复的用户数据保存到镜像区,然后由服务器对镜像区的用户数据进行备份,或者移动终端读取镜像区的用户数据进行恢复,减少了服务器和移动终端之间的IO交互,提高了操作速度,达到了高效率备份恢复移动终端用户数据的目的。
The invention discloses a method for backing up and restoring user data of a mobile terminal, wherein the method for backing up user data of a mobile terminal includes: after receiving an instruction for backing up user data sent by a server, the mobile terminal reads the user data, and stores the user data The data is saved in the mirror area, and then returns a response of successful backup; after the server receives the response of successful backup, it sends a data transmission command to the mobile terminal, and the mobile terminal sends the user data stored in the mirror area to the server according to the data transmission command , and save it to the server. In the present invention, by saving the user data that needs to be backed up or the user data that needs to be restored to the mirror area, and then the server backs up the user data in the mirror area, or the mobile terminal reads the user data in the mirror area to restore, reducing The IO interaction between the server and the mobile terminal improves the operation speed and achieves the purpose of efficiently backing up and restoring mobile terminal user data.
Description
技术领域 technical field
本发明涉及通信技术领域,特别涉及一种备份和恢复移动终端用户数据的方法及系统。The invention relates to the technical field of communications, in particular to a method and system for backing up and restoring mobile terminal user data.
背景技术 Background technique
随着移动通信技术的发展和移动终端的广泛普及,移动终端在人们的生活中的作用日益重要,功能也日益丰富,对移动终端的应用也有了各种各样的变化,为了配合这种变化,并方便用户对手机进行操作,用户设置的备份和恢复功能在移动终端中的应用也愈加广泛,因此如何实现移动终端上的用户数据方便快捷的备份和恢复,成为运营商和用户共同关注的问题。With the development of mobile communication technology and the widespread popularization of mobile terminals, the role of mobile terminals in people's lives has become increasingly important, and their functions have become increasingly rich. There have also been various changes in the application of mobile terminals. In order to cope with this change , and it is convenient for users to operate the mobile phone. The backup and restore functions set by users are more and more widely used in mobile terminals. Therefore, how to realize the convenient and fast backup and recovery of user data on mobile terminals has become a common concern of operators and users. question.
移动终端中的各种用户数据也就是各种设置项往往是以非易失数值(Nonvolatile Value,NV)项的形式进行保存,若需要对用户数据进行备份或者恢复的操作,往往需要读取每一个NV项的值,操作繁琐且效率较低。Various user data in the mobile terminal, that is, various setting items are often stored in the form of non-volatile value (Nonvolatile Value, NV) items. If user data needs to be backed up or restored, it is often necessary to read each The value of an NV item, the operation is cumbersome and inefficient.
现有技术中通过服务器(如计算机)读取和写入相关NV项值的方法来实现用户数据的备份或者恢复,并得到了较多的应用,但是该方法存在如下缺点:In the prior art, the backup or recovery of user data is realized by reading and writing the relevant NV item value through a server (such as a computer), and has been widely used, but this method has the following disadvantages:
首先,用户数据的备份或者恢复所需要的时间比较长,通过读写移动终端NV项的值来对需要备份的NV项进行轮询,特别的是当需要备份多个NV项时,效率会比较低;其次,操作的安全性差,进行用户数据备份或者恢复的时候,移动终端需要连接PC,而在长时间读写移动终端NV项的情况下,如果服务器的连接出现故障,就可能会造成移动终端的操作未完成,使得移动终端需要备份的NV项的值可能发生改变或者造成备份或者恢复的操作出现错误等问题。First of all, the backup or recovery of user data takes a long time. By reading and writing the value of the NV item of the mobile terminal to poll the NV item that needs to be backed up, especially when multiple NV items need to be backed up, the efficiency will be relatively high. Low; Secondly, the security of the operation is poor. When backing up or restoring user data, the mobile terminal needs to be connected to the PC, and in the case of reading and writing the NV items of the mobile terminal for a long time, if the server connection fails, it may cause mobile The operation of the terminal is not completed, so that the value of the NV item that needs to be backed up by the mobile terminal may change or cause errors in backup or recovery operations.
发明内容 Contents of the invention
本发明的目的在于提供一种备份和恢复移动终端用户数据的方法和系统,能更好地解决现有技术在通过服务器对移动终端用户数据的备份和恢复过程中效率较低的问题。The purpose of the present invention is to provide a method and system for backing up and restoring mobile terminal user data, which can better solve the problem of low efficiency in the process of backing up and restoring mobile terminal user data through a server in the prior art.
根据本发明的一个方面,提供了一种备份移动终端用户数据的方法,所述方法包括下述步骤:According to one aspect of the present invention, there is provided a method for backing up mobile terminal user data, said method comprising the following steps:
移动终端接收到服务器发送的备份用户数据的指令后,读取用户数据,并把所述用户数据保存到镜像区,然后返回备份成功的响应;After the mobile terminal receives the instruction of backing up user data sent by the server, it reads the user data, and saves the user data in the mirror area, and then returns a response that the backup is successful;
所述服务器接收到所述备份成功的响应后,发送数据传输命令给所述移动终端,所述移动终端按照所述数据传输命令,把保存在所述镜像区的用户数据发送给所述服务器,并保存到所述服务器上。After the server receives the backup success response, it sends a data transmission command to the mobile terminal, and the mobile terminal sends the user data stored in the mirror area to the server according to the data transmission command, and save it on the server.
根据本发明的另一方面,提供了一种恢复移动终端用户数据的方法,所述方法包括下述步骤:According to another aspect of the present invention, there is provided a method for recovering mobile terminal user data, said method comprising the following steps:
服务器根据用户输入的需要恢复的数据文件指令,将用户数据发送给移动终端,所述移动终端将用户数据保存到镜像区中,并返回保存成功的响应;The server sends the user data to the mobile terminal according to the data file instruction that needs to be restored input by the user, and the mobile terminal saves the user data in the mirror area, and returns a response that saves successfully;
所述服务器接收到所述保存成功的响应后,发送用户数据恢复指令给所述移动终端,所述移动终端按照所述用户数据恢复指令,恢复所述镜像区临时保存的用于恢复的用户数据。After receiving the response that the storage is successful, the server sends a user data restoration instruction to the mobile terminal, and the mobile terminal restores the user data temporarily saved in the mirror area for restoration according to the user data restoration instruction .
根据本发明的另一方面,提供了一种备份恢复移动终端用户数据的系统,所述系统包括移动终端和服务器,所述移动终端包括:According to another aspect of the present invention, a system for backing up and restoring mobile terminal user data is provided, the system includes a mobile terminal and a server, and the mobile terminal includes:
镜像区,用于临时保存用于备份和恢复的用户数据;The mirror area is used to temporarily save user data for backup and recovery;
数据备份模块,用于在收到所述服务器发送的备份用户数据的指令后,把用来备份的用户数据保存到所述镜像区中,返回备份成功响应,并且在所述服务器根据所述备份成功响应发出数据备份命令后,把临时保存在所述镜像区的用户数据备份到所述服务器上;The data backup module is configured to save the user data used for backup in the mirror area after receiving the user data backup instruction sent by the server, return a backup success response, and After successfully responding to sending a data backup command, back up the user data temporarily stored in the mirror area to the server;
数据恢复模块,用于接收备份在所述服务器中的用户数据,将其作为用于恢复的用户数据临时保存到所述镜像区中,并返回保存成功响应,在收到所述服务器根据所述保存成功响应发送的用户数据恢复指令后,恢复所述镜像区临时保存的用于恢复的的用户数据。The data recovery module is configured to receive user data backed up in the server, temporarily save it as user data for recovery in the mirror area, and return a save success response, upon receiving the server according to the After the storage succeeds in responding to the user data recovery instruction sent, the user data temporarily stored in the mirror area for recovery is recovered.
与现有技术相比较,本发明的有益效果在于:通过将需要备份的用户数据或者将需要恢复的用户数据保存到镜像区,然后由服务器对镜像区的用户数据进行备份,或者移动终端读取镜像区的用户数据进行恢复,减少了服务器和移动终端之间的IO交互,提高了操作速度,达到了高效率备份恢复移动终端用户数据的目的。Compared with the prior art, the beneficial effect of the present invention is that: by saving the user data that needs to be backed up or the user data that needs to be restored in the mirror area, then the server backs up the user data in the mirror area, or the mobile terminal reads the The user data in the mirror area is restored, which reduces the IO interaction between the server and the mobile terminal, improves the operation speed, and achieves the purpose of efficiently backing up and restoring the user data of the mobile terminal.
附图说明 Description of drawings
图1是本发明实施例提供的一种备份移动终端用户数据方法的流程图;Fig. 1 is a flow chart of a method for backing up mobile terminal user data provided by an embodiment of the present invention;
图2是本发明实施例提供的一种恢复移动终端用户数据方法的流程图;FIG. 2 is a flow chart of a method for restoring user data of a mobile terminal provided by an embodiment of the present invention;
图3是本发明实施例提供的一种备份恢复移动终端用户数据系统的结构框图。Fig. 3 is a structural block diagram of a system for backing up and restoring mobile terminal user data provided by an embodiment of the present invention.
具体实施方式 Detailed ways
以下结合附图对本发明的优选实施例进行详细说明,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described below are only used to illustrate and explain the present invention, and are not intended to limit the present invention.
图1显示了本发明实施例提供的一种备份移动终端用户数据的方法流程,如图1所示,所述方法包括下述步骤:Fig. 1 has shown a kind of method process of backup mobile terminal user data provided by the embodiment of the present invention, as shown in Fig. 1, described method comprises the following steps:
移动终端连接到服务器上,服务器对移动终端进行控制管理以及用户数据备份的准备工作,移动终端可以通过串行或者并行端口连接到服务器上,本发明实施例中服务器通过串行输入输出(Serial Input Output,SIO)模块实现对移动终端的控制管理,初始化移动终端的控制模块和管理模块,检查各个模块是否正常,若是,进行下一步操作,并显示移动终端与服务器已经正常连接,否则,提出警告;The mobile terminal is connected to the server, and the server controls and manages the mobile terminal and prepares for user data backup. The mobile terminal can be connected to the server through a serial or parallel port. Output, SIO) module realizes the control and management of the mobile terminal, initializes the control module and management module of the mobile terminal, checks whether each module is normal, if so, proceeds to the next step, and displays that the mobile terminal and the server have been connected normally, otherwise, gives a warning ;
服务器向移动终端发送指令使所述移动终端处于离线状态。The server sends an instruction to the mobile terminal to make the mobile terminal offline.
服务器发送配置指令给移动终端,本发明实施例中,服务器可以通过如AT命令或者Diag指令的方式向移动终端发送命令,移动终端接收到所述配置指令后,获取保存有需要备份的用户数据的NV项,并返回配置成功的响应给服务器,例如当用户选择需要备份移动终端的通讯录时,服务器发送配置指令给移动终端,移动终端接收到所述配置指令后,获取保存有通讯录数据的NV项。The server sends a configuration command to the mobile terminal. In the embodiment of the present invention, the server can send a command to the mobile terminal by means of an AT command or a Diag command. After receiving the configuration command, the mobile terminal obtains the user data that needs to be backed up NV item, and return a configuration success response to the server, for example, when the user chooses to back up the address book of the mobile terminal, the server sends a configuration command to the mobile terminal, and after receiving the configuration command, the mobile terminal obtains the address book data stored in it. NV item.
移动终端返回配置成功的响应给服务器。The mobile terminal returns a configuration success response to the server.
服务器接收到配置成功的响应后,向移动终端发送备份用户数据的指令。After receiving the response that the configuration is successful, the server sends an instruction to back up user data to the mobile terminal.
移动终端接收到所述备份用户数据的指令后,读取上述获取的作为用户数据的NV项的值即用户NV数据,并将读取得到的用户NV数据保存到镜像区。本步骤中,在将上述用户NV数据保存到镜像区后,还可以读取所述移动终端的国际移动设备的身份码(International Mobile Equipment Identity,IMEI)保存在所述镜像区中的用户NV数据之后,并对所述用户NV数据和IMEI进行计算,得出完整性校验数据保存在所述IMEI数据之后,最后对保存在镜像区中的用户NV数据、IMEI以及完整性校验数据进行预定的压缩算法处理,并保存到镜像区后,移动终端返回备份成功的响应给服务器。After receiving the instruction of backing up user data, the mobile terminal reads the obtained value of the NV item as user data, that is, the user NV data, and saves the read user NV data in the mirror area. In this step, after the above-mentioned user NV data is saved to the mirror area, the identity code (International Mobile Equipment Identity, IMEI) of the international mobile equipment of the mobile terminal can also be read and stored in the user NV data in the mirror area Afterwards, the user NV data and IMEI are calculated, and the integrity verification data is stored after the IMEI data, and finally the user NV data, IMEI and integrity verification data stored in the mirror area are reserved. After the compression algorithm is processed and stored in the mirror area, the mobile terminal returns a backup success response to the server.
服务器接收到上述备份成功的响应后,发送数据传输命令给移动终端。After receiving the above-mentioned response of successful backup, the server sends a data transmission command to the mobile terminal.
移动终端按照数据传输命令,将保存在镜像区的用户数据发送给所述服务器。The mobile terminal sends the user data stored in the mirror area to the server according to the data transmission command.
所述服务器对接收到的用户数据进行完整性校验,当校验通过后,根据用户输入的保存路径将用户数据保存到服务器上。The server performs an integrity check on the received user data, and saves the user data to the server according to the save path input by the user after the check is passed.
服务器发送清空指令给移动终端,移动终端根据接收到的清空指令将保存在镜像区的用户数据进行清空。The server sends a clearing instruction to the mobile terminal, and the mobile terminal clears the user data stored in the mirror area according to the received clearing command.
移动终端返回备份完成响应,服务器根据接收到的备份完成响应向用户返回备份成功提示,并进行记录。The mobile terminal returns a backup completion response, and the server returns a backup success prompt to the user according to the received backup completion response, and records it.
应当理解,若以上步骤中任一个步骤运行不正常时,服务器会向用户作出失败提示,并会将失败的原因通知用户。It should be understood that if any of the above steps does not run normally, the server will prompt the user for failure and notify the user of the reason for the failure.
图2显示了本发明实施例提供的一种恢复移动终端用户数据的方法流程,如图2所示,所述方法包括以下步骤:Fig. 2 has shown the flow of a kind of method recovery mobile terminal user data provided by the embodiment of the present invention, as shown in Fig. 2, described method comprises the following steps:
移动终端连接到服务器上,服务器对移动终端进行控制管理以及用户数据恢复的准备工作,移动终端可以通过串行或者并行端口连接到服务器上,本发明实施例中服务器通过串行输入输出(Serial Input Output,SIO)模块实现对移动终端的控制管理,初始化移动终端的控制模块和管理模块,检查各个模块是否正常,若是,进行下一步操作,并显示移动终端与服务器已经正常连接,否则,提出警告;The mobile terminal is connected to the server, and the server controls and manages the mobile terminal and prepares for user data recovery. The mobile terminal can be connected to the server through a serial or parallel port. Output, SIO) module realizes the control and management of the mobile terminal, initializes the control module and management module of the mobile terminal, checks whether each module is normal, if so, proceeds to the next step, and displays that the mobile terminal and the server have been connected normally, otherwise, gives a warning ;
服务器向移动终端发送指令使所述移动终端处于离线状态,并读取所述移动终端的IMEI。The server sends an instruction to the mobile terminal to make the mobile terminal offline, and reads the IMEI of the mobile terminal.
服务器根据用户输入的需要恢复的数据文件选择信息,读取需要恢复的用户数据,根据预定的解压缩算法进行处理后,对解压缩得到的数据进行完整性校验,当校验通过后,读取所述数据文件中保存的IMEI和当前连接的移动终端的IMEI进行比较,当比较结果一致,则将所述用户NV数据以及完整性校验数据发送给移动终端。本步骤中,用户可以按照数据文件备份的时间选择需要恢复的数据文件,可以很好地保护不同时期的用户数据,提升了使用体验。The server selects information according to the data file input by the user and reads the user data to be restored. After processing according to the predetermined decompression algorithm, the integrity check is performed on the decompressed data. When the check is passed, the read The IMEI stored in the data file is compared with the IMEI of the currently connected mobile terminal, and when the comparison result is consistent, the user NV data and integrity check data are sent to the mobile terminal. In this step, the user can select the data file to be restored according to the backup time of the data file, which can well protect user data in different periods and improve user experience.
移动终端将接收到的用户数据临时保存到镜像区,返回保存成功的响应。The mobile terminal temporarily saves the received user data in the mirror area, and returns a response of successful saving.
服务器接收到保存成功的响应后,发送用户数据恢复指令给移动终端。After receiving the response that the storage is successful, the server sends the user data recovery instruction to the mobile terminal.
移动终端按照所述恢复用户数据的指令,读取保存在镜像区的用户数据,对所述用户数据进行完整性校验,校验通过后,将所述用户NV数据设置到相应的NV项中。The mobile terminal reads the user data stored in the mirror area according to the instruction for restoring user data, and performs an integrity check on the user data. After the check is passed, the user NV data is set in the corresponding NV item .
移动终端清空所述镜像区临时保存的用户NV数据及完整性校验数据,并返回恢复成功的响应并将移动终端延时重启。The mobile terminal clears the user NV data and integrity verification data temporarily stored in the mirror area, and returns a recovery success response and restarts the mobile terminal after a delay.
服务器根据所述恢复成功的响应向用户返回恢复成功提示,并通知用户移动终端将要重启,并进行记录。The server returns a recovery success prompt to the user according to the recovery success response, and notifies the user that the mobile terminal will be restarted, and records it.
应当理解,若以上步骤中任一个步骤运行不正常时,服务器会向用户作出恢复失败提示,并会将失败的原因通知用户。It should be understood that if any of the above steps does not run normally, the server will prompt the user that the recovery fails, and will notify the user of the reason for the failure.
图3显示了本发明实施例提供的一种备份恢复移动终端用户数据系统的结构,如图3所示,所述系统包括移动终端10和服务器20,所述移动终端10和服务器20可以通过串行或者并行端口相连接,其中移动终端10可以为手机、个人数字助理机(Personal Digital Assistant,PDA)等,所述服务器可以为计算机等。移动终端10包括镜像区11、数据备份模块12以及数据恢复模块14。服务器20包括备份恢复模块21、日志模块22以及安全校验模块23。Fig. 3 has shown the structure of a kind of system of backing up and restoring mobile terminal user data provided by the embodiment of the present invention, as shown in Fig. line or parallel port, wherein the mobile terminal 10 can be a mobile phone, a personal digital assistant (Personal Digital Assistant, PDA), etc., and the server can be a computer or the like. The mobile terminal 10 includes a mirror area 11 , a data backup module 12 and a data recovery module 14 . The server 20 includes a backup and recovery module 21 , a log module 22 and a security verification module 23 .
移动终端10通过串行或者并行端口连接到服务器20上,服务器20对移动终端10进行控制管理以及用户数据备份及恢复的准备工作,本发明实施例中服务器20通过串行输入输出(Serial Input Output,SIO)模块实现对移动终端10的控制管理,初始化移动终端的控制模块和管理模块,检查各个模块是否正常,若是,进行下一步操作,并显示移动终端10与服务器20已经正常连接,否则,提出警告。The mobile terminal 10 is connected to the server 20 through a serial or parallel port, and the server 20 controls and manages the mobile terminal 10 and prepares user data backup and recovery. , SIO) module realizes the control management to mobile terminal 10, initializes the control module and the management module of mobile terminal, check whether each module is normal, if so, carry out the next step operation, and display mobile terminal 10 and server 20 are connected normally, otherwise, Warning.
当需要备份移动终端用户数据的时候,服务器20的备份恢复模块21向移动终端10发送指令使所述移动终端10处于离线状态。备份恢复模块21发送配置指令给数据备份模块12,数据备份模块12接收到所述配置指令后,获取作为用户数据的NV项,并返回配置成功的响应给备份恢复模块21。备份恢复模块21接收到配置成功的响应后,向数据备份模块12发送备份用户数据的指令。数据备份模块12读取上述获取的作为用户数据的NV项的值即用户NV数据,并将读取得到的用户NV数据临时保存到镜像区11中,然后数据备份模块12读取所述移动终端10的IMEI,并将其临时保存在所述镜像区11中的用户NV数据之后,数据备份模块12对所述用户NV数据和IMEI进行计算,得出完整性校验数据保存在所述IMEI数据之后。数据备份模块12对保存在镜像区中的用户NV数据、IMEI以及完整性校验数据进行预定的压缩算法处理,保存到镜像区中,数据备份模块12返回备份成功的响应给备份恢复模块21。备份恢复模块21接收到上述备份成功的响应后,发送数据传输命令给数据备份模块12。When the user data of the mobile terminal needs to be backed up, the backup recovery module 21 of the server 20 sends an instruction to the mobile terminal 10 to make the mobile terminal 10 offline. The backup recovery module 21 sends configuration instructions to the data backup module 12. After receiving the configuration instructions, the data backup module 12 obtains the NV item as user data, and returns a configuration success response to the backup recovery module 21. After receiving the configuration success response, the backup recovery module 21 sends an instruction to back up user data to the data backup module 12 . The data backup module 12 reads the value of the NV item of the above-mentioned acquisition as user data, that is, the user NV data, and temporarily saves the user NV data obtained by reading into the mirror area 11, and then the data backup module 12 reads the mobile terminal 10 of the IMEI, and temporarily save it after the user NV data in the mirror area 11, the data backup module 12 calculates the user NV data and IMEI, and obtains that the integrity check data is stored in the IMEI data after. The data backup module 12 carries out predetermined compression algorithm processing to the user NV data, IMEI and integrity check data stored in the mirror area, and saves it in the mirror area, and the data backup module 12 returns a backup success response to the backup recovery module 21. After the backup recovery module 21 receives the above-mentioned backup success response, it sends a data transmission command to the data backup module 12 .
数据备份模块12按照数据传输命令,将临时保存在镜像区11中的用户数据发送给备份恢复模块21。安全校验模块23对备份恢复模块21接收到的用户数据进行完整性校验,当校验通过后,根据用户输入的保存路径将用户数据保存到服务器上,并驱动备份恢复模块21发送清空指令给数据备份模块12,数据备份模块12根据接收到的清空指令将临时保存在镜像区11中的用户数据进行清空,然后数据备份模块12返回备份完成响应,备份恢复模块21根据接收到的备份完成响应向用户返回备份成功提示,并通过日志模块22对备份用户数据成功的结果进行记录。The data backup module 12 sends the user data temporarily stored in the mirror area 11 to the backup recovery module 21 according to the data transmission command. The safety verification module 23 performs integrity verification on the user data received by the backup restoration module 21, and when the verification is passed, saves the user data to the server according to the storage path input by the user, and drives the backup restoration module 21 to send an empty command To the data backup module 12, the data backup module 12 clears the user data temporarily stored in the mirror area 11 according to the clearing instruction received, and then the data backup module 12 returns a backup completion response, and the backup recovery module 21 completes the backup according to the received backup. In response, a prompt of successful backup is returned to the user, and the result of successful backup of user data is recorded through the log module 22 .
应当理解,若上述移动终端10的任一功能模块工作不正常时,数据备份模块12会将备份用户数据失败信息及失败原因发送给备份恢复模块21,备份恢复模块21会向用户作出失败提示,并通过日志模块22对备份用户数据失败的结果及原因进行记录。It should be understood that if any functional module of the above-mentioned mobile terminal 10 is not working properly, the data backup module 12 will send the backup user data failure information and failure reasons to the backup recovery module 21, and the backup recovery module 21 will make a failure prompt to the user, And record the result and reason of backup user data failure through log module 22.
当需要恢复移动终端用户数据的时候,服务器20的备份恢复模块21向移动终端10发送指令使所述移动终端处于离线状态,并读取所述移动终端10的IMEI。备份恢复模块21根据用户输入的需要恢复的数据文件选择信息,读取需要恢复的用户数据,根据预定的解压缩算法进行处理后,安全校验模块23对解压缩得到的数据进行完整性校验,当校验通过后,备份恢复模块21读取所述数据文件中保存的IMEI和移动终端10的IMEI进行比较,当二者一致时,则将所述用户NV数据以及完整性校验数据发送给移动终端10的数据恢复模块13。数据恢复模块13将接收到的用户数据临时保存到镜像区11中,并返回保存成功的响应。备份恢复模块21接收到保存成功的响应后,发送用户数据恢复指令给数据恢复模块13。When it is necessary to restore the user data of the mobile terminal, the backup recovery module 21 of the server 20 sends an instruction to the mobile terminal 10 to make the mobile terminal offline, and reads the IMEI of the mobile terminal 10 . The backup restoration module 21 reads the user data to be restored according to the data file selection information input by the user, and after processing according to a predetermined decompression algorithm, the safety verification module 23 performs integrity verification on the decompressed data , when the verification is passed, the backup recovery module 21 reads the IMEI stored in the data file and compares it with the IMEI of the mobile terminal 10, and when the two are consistent, the user NV data and the integrity verification data are sent To the data recovery module 13 of the mobile terminal 10. The data restoration module 13 temporarily saves the received user data in the mirror area 11, and returns a response of successful saving. After the backup restoration module 21 receives the response that the storage is successful, it sends the user data restoration instruction to the data restoration module 13 .
数据恢复模块13按照所述用户数据恢复指令,读取临时保存在镜像区11中的用户数据,即用户NV数据以及完整性校验数据,数据恢复模块13对所述用户数据进行完整性校验,校验通过后,数据恢复模块13将所述用户NV数据设置到相应的NV项中。数据恢复模块13清空所述镜像区11临时保存的用户数据,返回恢复成功的响应并将移动终端10延时重启。备份恢复模块21根据所述恢复成功的响应向用户返回恢复成功提示,并通知用户移动终端将要重启,并通过日志模块22对恢复用户数据成功的结果进行记录。The data recovery module 13 reads the user data temporarily stored in the mirror area 11 according to the user data recovery instruction, that is, user NV data and integrity check data, and the data recovery module 13 performs integrity check on the user data After the verification is passed, the data recovery module 13 sets the user NV data into the corresponding NV item. The data restoration module 13 clears the user data temporarily stored in the mirror area 11, returns a response of successful restoration and restarts the mobile terminal 10 after a delay. The backup recovery module 21 returns a recovery success prompt to the user according to the recovery success response, and notifies the user that the mobile terminal will be restarted, and records the result of successful recovery of user data through the log module 22 .
应当理解,若上述移动终端10的任一功能模块不正常时,数据恢复模块13会将恢复用户数据失败信息及失败原因发送给备份恢复模块21,备份恢复模块21会向用户作出失败提示,并通过日志模块22对恢复用户数据失败的结果及原因进行记录。It should be understood that if any functional module of the above-mentioned mobile terminal 10 is not normal, the data recovery module 13 will send the failure information and failure reasons of the user data recovery to the backup and recovery module 21, and the backup and recovery module 21 will make a failure prompt to the user, and The result and reason of the failure to restore user data are recorded through the log module 22 .
综上所述,本发明通过将需要备份的用户数据或者将需要恢复的用户数据保存到镜像区,然后由服务器对镜像区的用户数据进行备份,或者移动终端读取镜像区的用户数据进行恢复,减少了服务器和移动终端之间的IO交互,提高了操作速度,并利用预定的压缩解压缩算法对用户数据进行计算以及完整性校验,增强了安全性和可靠性,达到了高效安全备份恢复移动终端用户数据的目的,并且实现成本较低,使用灵活方便。In summary, the present invention saves the user data that needs to be backed up or the user data that needs to be restored to the mirror area, and then the server backs up the user data in the mirror area, or the mobile terminal reads the user data in the mirror area to restore , reduce the IO interaction between the server and the mobile terminal, improve the operation speed, and use the predetermined compression and decompression algorithm to calculate and complete the user data, enhance the security and reliability, and achieve efficient and safe backup The purpose of recovering data of mobile terminal users is low cost and flexible and convenient to use.
尽管上文对本发明进行了详细说明,但是本发明不限于此,本技术领域技术人员可以根据本发明的原理进行各种修改。因此,凡按照本发明原理所作的修改,都应当理解为落入本发明的保护范围。Although the present invention has been described in detail above, the present invention is not limited thereto, and various modifications can be made by those skilled in the art based on the principle of the present invention. Therefore, any modifications made according to the principles of the present invention should be understood as falling within the protection scope of the present invention.
Claims (11)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010196951.2A CN101860570B (en) | 2010-06-10 | 2010-06-10 | Method and system for backuping and restoring user data of mobile terminal |
PCT/CN2011/071164 WO2011153847A1 (en) | 2010-06-10 | 2011-02-22 | Method and system for backuping or restoring mobile terminal user data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010196951.2A CN101860570B (en) | 2010-06-10 | 2010-06-10 | Method and system for backuping and restoring user data of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101860570A CN101860570A (en) | 2010-10-13 |
CN101860570B true CN101860570B (en) | 2014-12-10 |
Family
ID=42946224
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010196951.2A Active CN101860570B (en) | 2010-06-10 | 2010-06-10 | Method and system for backuping and restoring user data of mobile terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101860570B (en) |
WO (1) | WO2011153847A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860570B (en) * | 2010-06-10 | 2014-12-10 | 中兴通讯股份有限公司 | Method and system for backuping and restoring user data of mobile terminal |
CN102768632B (en) * | 2011-05-03 | 2015-01-28 | 厦门市美亚柏科信息股份有限公司 | Method and device for recovering data of mobile terminal |
CN102981811A (en) * | 2011-09-05 | 2013-03-20 | 北大方正集团有限公司 | Processing method and device of user option data |
CN103514173B (en) * | 2012-06-20 | 2017-08-04 | 华为技术有限公司 | The method and node device of data processing |
CN103678038B (en) * | 2013-11-29 | 2017-09-26 | 上海闻泰电子科技有限公司 | Mobile device data automatic backup system and method |
CN105045675A (en) * | 2015-06-12 | 2015-11-11 | 广东小天才科技有限公司 | Method and device for realizing data backup in application |
CN107665181A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of method and system of centralized configuration equipment |
CN106897172A (en) * | 2017-02-28 | 2017-06-27 | 深圳天珑无线科技有限公司 | System method to set up, device and terminal |
CN108880877A (en) * | 2018-06-07 | 2018-11-23 | 深圳市茁壮网络股份有限公司 | A kind of acquisition methods and device of log |
WO2021101563A1 (en) * | 2019-11-22 | 2021-05-27 | Hewlett-Packard Development Company, L.P. | Data management |
CN112579350B (en) * | 2020-11-10 | 2024-07-19 | 银捷尼科(福建)科技有限公司 | Method and system for supporting backup and restoration of NV parameters |
CN114860503A (en) * | 2022-04-06 | 2022-08-05 | 芯安微众(上海)微电子技术有限公司 | A kind of Tbox memory data backup method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642114A (en) * | 2005-01-07 | 2005-07-20 | 刘惠山 | Hand-held mobile terminal user customized information network back-up method |
CN101137140A (en) * | 2006-08-29 | 2008-03-05 | 中兴通讯股份有限公司 | Terminal NV parameter backup recovering method |
CN101582927A (en) * | 2009-06-10 | 2009-11-18 | 中兴通讯股份有限公司 | Server, movable terminal and method used for information backup and restoration |
CN101616412A (en) * | 2009-08-07 | 2009-12-30 | 杭州华三通信技术有限公司 | The method of calibration of management frames in wireless local area and equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100391291C (en) * | 2005-08-10 | 2008-05-28 | 华为技术有限公司 | Data backing-up and recovering method and system |
US8862689B2 (en) * | 2007-10-24 | 2014-10-14 | International Business Machines Corporation | Local flash memory and remote server hybrid continuous data protection |
CN101291205B (en) * | 2008-06-16 | 2011-05-11 | 杭州华三通信技术有限公司 | Backup data transmitting method, system, mirror-image server |
CN101860570B (en) * | 2010-06-10 | 2014-12-10 | 中兴通讯股份有限公司 | Method and system for backuping and restoring user data of mobile terminal |
-
2010
- 2010-06-10 CN CN201010196951.2A patent/CN101860570B/en active Active
-
2011
- 2011-02-22 WO PCT/CN2011/071164 patent/WO2011153847A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1642114A (en) * | 2005-01-07 | 2005-07-20 | 刘惠山 | Hand-held mobile terminal user customized information network back-up method |
CN101137140A (en) * | 2006-08-29 | 2008-03-05 | 中兴通讯股份有限公司 | Terminal NV parameter backup recovering method |
CN101582927A (en) * | 2009-06-10 | 2009-11-18 | 中兴通讯股份有限公司 | Server, movable terminal and method used for information backup and restoration |
CN101616412A (en) * | 2009-08-07 | 2009-12-30 | 杭州华三通信技术有限公司 | The method of calibration of management frames in wireless local area and equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2011153847A1 (en) | 2011-12-15 |
CN101860570A (en) | 2010-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101860570B (en) | Method and system for backuping and restoring user data of mobile terminal | |
US8281093B1 (en) | Systems and methods for creating consolidated backups of snapshot hierarchies | |
WO2020151323A1 (en) | Data slicing-based data storage method, device, and medium | |
CN101325785A (en) | Method and apparatus for backup and recuperation of data, mobile equipment | |
CN102346697A (en) | Method and system for backing up and recovering Android package (APK) and mobile terminal | |
US10860447B2 (en) | Database cluster architecture based on dual port solid state disk | |
CN113626256B (en) | Virtual machine disk data backup method, device, terminal and storage medium | |
CN109783014B (en) | Data storage method and device | |
CN101183979B (en) | Method and device of configuration backup | |
US20190227710A1 (en) | Incremental data restoration method and apparatus | |
CN103942126B (en) | Electronic equipment and its data back up method | |
CN102567146A (en) | Log backup method and device and smart card | |
CN1976517B (en) | Mobile terminal | |
CN104461785A (en) | Data backup method, data recovery method and device of virtual machine and physic machine | |
CN107135097A (en) | The disaster tolerance system and disaster recovery method filed based on bookkeeping | |
CN102880530B (en) | Terminal and terminal backup and restoration methods | |
CN105376329A (en) | A Method for Remote Online Backup of Virtual Machine | |
CN105138426B (en) | A kind of business data method for protecting consistency and device based on snapshot | |
CN105337772A (en) | System and method for backing up and restoring configuration of network equipment | |
CN202444513U (en) | Mobile terminal information backup system | |
CN103338306A (en) | Method and device for coping and recovering user data | |
CN101848274A (en) | Methods and devices for backup and recovery of records in mobile terminal | |
CN106776381A (en) | A kind of storage system power-off protection method and system | |
CN103207916A (en) | Metadata processing method and device | |
CN101340675A (en) | Method and apparatus for implementing backup and recovery by mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200721 Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68 Patentee after: Nanjing Zhongxing Software Co.,Ltd. Address before: 518057 Nanshan District Guangdong high tech Industrial Park, South Road, science and technology, ZTE building, Ministry of Justice Patentee before: ZTE Corp. |
|
TR01 | Transfer of patent right |