WO2011011996A1 - 将终端数据进行备份的方法及*** - Google Patents

将终端数据进行备份的方法及*** Download PDF

Info

Publication number
WO2011011996A1
WO2011011996A1 PCT/CN2010/071619 CN2010071619W WO2011011996A1 WO 2011011996 A1 WO2011011996 A1 WO 2011011996A1 CN 2010071619 W CN2010071619 W CN 2010071619W WO 2011011996 A1 WO2011011996 A1 WO 2011011996A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
server
index
field
data
Prior art date
Application number
PCT/CN2010/071619
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 中兴通讯股份有限公司
Priority to US13/386,418 priority Critical patent/US8589353B2/en
Priority to EP10803829.0A priority patent/EP2461615A4/en
Publication of WO2011011996A1 publication Critical patent/WO2011011996A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Definitions

  • the present invention relates to the field of mobile communication data processing, and more particularly to a method and system for backing up terminal data. Background technique
  • CN200710074937.3 proposes a method of backing up mobile phone data to a network server, which requires the user to set the type of data to be backed up and the backup period.
  • the phone backs up the new data to the server.
  • the phone checks the newly created or modified data after the last backup in the phone to the current backup, and uses these as new data to be backed up.
  • the user deletes the data on the mobile phone, the corresponding backup data on the server cannot be automatically deleted, and the user needs to set whether the discarded data should be deleted on the server.
  • the user needs to set the backup parameters, such as the backup period, the backed up data items, etc., so that the user's operation is complicated. If the user forgets to set it up, such a backup mechanism will lose its effect.
  • the phone It is necessary to judge the data in the mobile phone one by one, such as judging the data generation time and modification time. Such an operation consumes the memory resources of the mobile phone, and also requires a long search time, and the backup efficiency is low.
  • the server cannot automatically delete the backup data and requires the user to set it separately, which adds trouble to the user. If the user forgets the setting, it will take up a lot of server storage space, resulting in waste of resources. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method and system for backing up terminal data.
  • the terminal device can quickly check the data status for data backup, save memory resources of the terminal device, and improve backup efficiency.
  • a method for backing up terminal data including the following steps:
  • the terminal device checks the information in the terminal index entry, and sends the information in the terminal index entry, or the information in the terminal index entry and the terminal data corresponding to the terminal index entry to the network server, and modifies the terminal index table. ;
  • the network server establishes a server index table corresponding to the terminal index table, performs a terminal data backup operation according to the information in the terminal index entry, and modifies the server index table.
  • the method further includes: the step of the terminal device registering with the network server, the terminal device sending the identifier information of the terminal device to the network server, or the network server acquiring the identifier information of the terminal device, the network The server establishes a corresponding registration relationship between the terminal device and the network server according to the obtained identification information of the terminal device.
  • the terminal index table is first established, the value of the status field of all terminal index entries is the initial state; when the terminal device creates a new data record, a new status field is newly created or reused in the terminal index table.
  • the terminal index entry in the initial state write the address of the newly created data record into the address field of the terminal index entry, and set the status field of the terminal index entry to the new state or the modified state;
  • the terminal index entry corresponding to the data record is found in the terminal index table, and its status field is set to a new state or a modified state;
  • the terminal record table stores the address according to the data record. Find the corresponding terminal index entry and set its status field to delete.
  • each terminal index entry corresponds to one record of the terminal data
  • the index item includes a label field, a status field, and an address field
  • the label field indicates a sequence number of the terminal index item
  • the field is used to distinguish the data state corresponding to the index entry of the terminal, where the state includes: an initial state, an unchanged state, a newly created state, a modified state, and a deleted state
  • the address field is used to represent data corresponding to the terminal index entry in the terminal.
  • the step B further includes a process of setting a backup condition, where the backup condition includes a backup period and a data type to be backed up; the backup condition is a system default setting or set by a user.
  • step B is specifically:
  • the terminal index item label field and the data content found according to the address field are sent to the network server, and the status field is modified to be unchanged.
  • the label field is sent to the network server to notify the network server to delete the corresponding data content according to the label field, and modify the status field to the initial state;
  • the server index table in step C includes a server index entry, the server index entry includes a label field and an address field; and a label field in the server index entry corresponds to a label field in the terminal index entry.
  • the address field in the server index entry is used to record the address where the backup data is stored in the server.
  • step C is:
  • the network server When the label field of the terminal index item and the corresponding data content of the terminal device are required to be newly created or modified, the network server newly creates or searches for the server index item of the same label, saves the corresponding data content, and stores the server address of the data content. Write an address field in the server index entry;
  • the network server searches for the same server index item as the label, and deletes the data content stored in the server according to the address field in the server index item.
  • a system for backing up terminal data comprising a terminal device and a network server: the terminal index table unit, configured to establish and maintain a terminal index table, the terminal index table The terminal index entry corresponding to the terminal data is included;
  • the sending unit is configured to check information in a terminal index entry of the terminal index table unit, and send information in the terminal index entry, or information in the terminal index entry, and data content corresponding to the terminal index entry. Giving to the network server, and notifying the terminal index table unit to modify the terminal index table;
  • the network server includes a server index table unit and a backup unit;
  • the server index table unit is configured to establish and maintain a server index table corresponding to the terminal index table
  • the backup unit is configured to perform terminal data backup according to information in the terminal index entry. Operation, and notifying the server index table unit to modify the server index table.
  • each terminal index item corresponds to one record of the terminal data
  • the terminal index item includes a label field, a status field, and an address field, where: the label field indicates a sequence number of the terminal index item;
  • the status field is used to distinguish the data status corresponding to the index entry of the terminal, where the status includes: an initial status, an unchanged status, a new status, a modified status, and a deleted status;
  • the address field is used to describe a storage address of the data corresponding to the terminal index entry in the terminal device.
  • the terminal index table unit first establishes the terminal index table, the value of the status field of all terminal index entries is an initial state;
  • the terminal index table unit When the terminal device creates a new data record, the terminal index table unit newly creates or reuses a terminal index entry whose status field is the initial state in the terminal index table, and writes the address stored in the newly created data record to the terminal index entry. In the address field, and set its status field to a new state or a modified state; when the terminal device modifies a data record, the terminal index table unit finds the terminal index entry corresponding to the data record in the terminal index table, and The status field is set to a new state or a modified state. When the terminal device deletes a data record, the terminal index table unit finds a corresponding terminal index entry according to the data record address in the terminal index table, and sets the status field to delete. status.
  • the terminal sending unit includes:
  • a first sending unit configured to: when the terminal index item whose status field is newly created or modified is used, send the label field and the data content found according to the address field to the network server, and notify the server index table unit to notify the server The status field corresponding to the terminal index entry is modified to an unchanged state;
  • a second sending unit configured to: when the terminal index item whose status field is deleted is detected, send the label field to the network server, and notify the network server to delete the label field according to the label field And corresponding to the data content of the label, and notifying the server index table unit to change the status field corresponding to the terminal index item to an initial state;
  • a third sending unit configured to: when the status field of the terminal index entry is not belonging to any one of an unchanged state, a newly created state, a modified state, and a deleted state, the data content is found according to the address field of the terminal index entry, The data content and its corresponding label field are sent to the web server.
  • the server index table in the server index table unit includes a server index entry; the server index entry includes a label field and an address field; and a label field in the server index entry and a label field in the terminal index entry— Corresponding;
  • the address field in the server index entry is used to record the address where the backup data is stored in the server.
  • the backup unit includes:
  • a first backup unit configured to: when the terminal device sends the label field of the terminal index item and the corresponding data content to be newly created or modified, newly or search the server index table unit to find a server index item with the same label, and the corresponding data content Save, and write the server address stored in the data content to the server address field in the server index entry;
  • a second backup unit configured to: when the label field of the terminal device sends the terminal index item requires deletion, search the server index table unit to find a server index item that is the same as the label, and delete the data stored in the server address according to the server address field.
  • the invention establishes a terminal index table to maintain data information in the terminal device, and when the terminal device newly creates, modifies or deletes the data content, sends the information of the index item in the terminal index table and the corresponding data content to the network server;
  • a server index table corresponding to the terminal index table is also established on the server.
  • the network server saves or deletes the data content of the terminal device according to the type and label of the index item, so that the terminal data can be quickly backed up.
  • the inspection process saves the memory resources of the terminal device and improves the backup efficiency.
  • FIG. 1 is a flow chart of main steps of the method of the present invention
  • FIG. 3 is a flow chart of data backup of the terminal device according to the method of the present invention according to the index table
  • FIG. 4 is a schematic diagram showing the structure of an index entry of the index table of the network server in the method of the present invention
  • 5 is a flowchart of the backup performed by the network server according to the data sent by the terminal device in the method of the present invention
  • FIG. 6 is a schematic diagram of a process of establishing a registration relationship between a terminal device and a network server in the method of the present invention
  • FIG. 7 is a flow chart of establishing and maintaining an index table by a terminal device of the method of the present invention.
  • FIG. 8 is a schematic diagram of a process of setting a backup period, backup data, and password of a terminal device in the method of the present invention.
  • FIG. 9 is a schematic diagram of a terminal device device module of the system of the present invention.
  • FIG. 10 is a block diagram of a network server device module of the system of the present invention. detailed description
  • the present invention provides a method for backing up terminal data, mainly by establishing an index table in the terminal device, and recording the state and storage location of the terminal data.
  • the network server also establishes a server index table corresponding to the index table in the terminal device.
  • the terminal device knows which data needs to be backed up and what kind of backup operation needs to be performed by checking the data, and then sends the data and index item label to be sent to the network server.
  • the web server looks up the location of the data in the server based on the server index table to operate. It should be noted that the present invention is not limited to applications in mobile terminals, but can also be applied to other terminal devices, such as terminals such as PDAs.
  • the invention provides a method for backing up terminal data, as shown in FIG. 1 , the main package Including the following steps:
  • Step 1 Establish a terminal index table, where the terminal index table includes a terminal index entry corresponding to the terminal data.
  • Step 2 The terminal device checks the information in the terminal index entry, and sends the information in the terminal index entry and the data content corresponding to the terminal index entry to the network server, and modifies the terminal index table.
  • Step 3 After receiving the information in the terminal index entry sent by the terminal device and the data content corresponding to the terminal index entry, the network server establishes or updates a server index table corresponding to the terminal index table, according to the terminal index.
  • the information in the item is used for terminal data backup.
  • the terminal index table includes a terminal index entry, and the terminal index entry corresponds to data that needs to be backed up;
  • the terminal device establishes a terminal index table in the terminal device to maintain information in the terminal device.
  • the terminal index table is composed of terminal index items, each index item corresponds to one record of the terminal data, and the index item includes a label, a status, and an address field, where: the label field indicates the serial number of the terminal index item, and is used in the data backup process.
  • the network server identifies the data content; the status field is used to distinguish the status of the data content corresponding to the index entry of the terminal, and the status includes: an initial state, an unchanged state, a newly created state, a modified state, and a deleted state; the address field is used to represent
  • the storage address of the data content corresponding to the terminal index entry in the terminal device may be a storage path.
  • the terminal device For data types that users need to back up, such as SMS, MMS, call history, and address book, the terminal device maintains a terminal index table.
  • the terminal index table of the terminal device is stored in the form of a file, and each terminal index item records related information of one piece of data.
  • the label field can be set to three digits
  • the status field can be set to one bit
  • the address field can be a string to fill in the path where the terminal data is stored.
  • the status field can be 0 to indicate the initial state, that is, the terminal index entry is empty; 1 indicates the new state or modified state; 2 indicates the deleted state; 3 indicates the unchanged state; the program judges that the condition is wrong or the data runs away, the array is out of bounds
  • the value of the status bit may become a value other than 0, 1, 2, 3, that is, any one of the initial state, the new state or the modified state, the deleted state, and the unchanged state, which is called an abnormal state.
  • the value indicating the state can be changed as long as this value can distinguish the above different states.
  • a terminal index entry in an SMS terminal index table :
  • the terminal index table may also have other structures, such as field order exchange, or other information fields, such as:
  • the terminal device checks the information in the terminal index table, including the label, status, and address fields, and sends the terminal data to be backed up to the network server, and maintains the information in the terminal index table.
  • the terminal device checks the value of the status field of each terminal index entry in the terminal index table to determine whether the data corresponding to the terminal index entry changes from the previous backup to the current backup.
  • the status field is checked to be a new or modified terminal index entry, its label field will be And sending the data content found according to the address field to the web server, and modifying the status field to an unchanged state;
  • the label field is sent to the network server to notify the network server to delete the data content corresponding to the label, and the status field 4 ⁇ is changed to the initial state;
  • the data content is found according to the address field, and the data content and its label field are sent to Network Server.
  • the terminal device checks the status of each terminal index entry in the terminal index table.
  • the label and the data content method found according to the address field are sent to the web server, and the status field is changed to the unchanged state.
  • the status field is modified to the initial state. After the status field changes to the initial state, it means that the label of the terminal index entry is released and can be reused. The new record can be established in this terminal index entry.
  • the label and the data content found according to the address field are sent. Give the web server, and change the status field to unchanged.
  • the server index table is established in the network server, and the backup is performed according to the backup request of the terminal device, and the server index table is maintained.
  • the server server establishes a server index table corresponding to the terminal device, and the index item labels of the two index tables correspond one-to-one.
  • the server index table includes a server index entry, and the server index entry also includes a label field and an address field; wherein the label field corresponds to the label field of the terminal index table, and the address field is used to record the address of the backup data stored in the server.
  • the index entry structure of the table is indexed by the network server.
  • the network server searches for the server index item with the same label, saves the corresponding data content, and writes the server address where the data content is stored. Enter the server address field of the server index entry;
  • the network server searches for the same server index item as the label, and deletes the data content stored in the server address according to the server address field.
  • the network server also maintains the server index table according to different data types.
  • the server index table is stored in the form of a file, and each index entry corresponds to an index entry in the index table in the terminal device.
  • the index entry of the server index table includes at least a label field and a server address field.
  • the label field is set to three digits, and the server address field is one. String, fill in the storage path of the backup data in the server.
  • the label of the server index entry should match the index entry label in the terminal device.
  • the label 011 is identical to the index item label in the terminal device.
  • the network server When the network server receives the transmission label and the data content of the terminal device, the network server finds the index item of the same label, and writes the server address stored in the backup data content into the index item address field.
  • the network server When the network server receives the label sent by the terminal device and is required to delete the backup, the network server finds the index item according to the label, and deletes the data content according to the value of the address field.
  • the step of registering the terminal device with the network server the terminal device sending the identifier information to the network server, or the network server acquiring the identifier information of the terminal device
  • the network server establishes a corresponding registration relationship between the terminal device and the network server according to the identifier information, where the terminal device includes a mobile phone or a PDA.
  • the identification information includes a mobile phone number, an IP address, or a terminal device number.
  • the invention can first register the user terminal device in the network server, so that the terminal device establishes a corresponding relationship with the network server.
  • the terminal device number can be sent to the web server by the user terminal device to complete the registration.
  • the registration behavior is initiated by the network server, and the terminal device number is obtained to complete the corresponding registration relationship between the terminal device and the network server.
  • the user can set the registration password, and the password can be changed after the registration is completed.
  • the preferred embodiment is a process in which the terminal device user completes registration by setting a password to the server.
  • the specific steps are:
  • Step 1 Enter the backup setting menu of the terminal device, as shown in interface S01 of Figure 6;
  • Step 2 In the interface S01, the user selects "Password Setting", and enters the interface S011 of Figure 1; Step 3. In the interface S011, the user inputs a new password, clicks the confirmation, and enters the interface S0111 of Figure 1;
  • Step 4 In the interface S0111, the user enters the new password again, clicks "Register", and the terminal device sends the password to the network server for registration via SMS.
  • Step 5 After receiving the registration SMS, the network server replies with a short message to the terminal device.
  • the short message is not displayed to the user.
  • the terminal device receives the short message and identifies the registration flag, indicating that the registration is successful.
  • Step 6 If the registration fails, a prompt box will pop up to prompt the user. After the user confirms, return to the interface S0111, and the user can register again.
  • step one the process of updating the index table according to the change of the user terminal data in real time is:
  • the terminal device When the terminal device creates a new record, it finds a status field in the terminal index table as the initial terminal index entry, writes the address stored in the new record to the address field of the terminal index entry, and sets the status field to new or Modify; when the terminal device modifies a record, the terminal cable The terminal index entry corresponding to the record is found in the reference table, and the status field is set to be newly created or modified.
  • the terminal device deletes a record, the corresponding terminal index entry is found according to the address in the terminal index table, and the status field is set to delete.
  • the user terminal device completes the maintenance of the index table.
  • all status fields are set to initial. For example, it can be set to 0 to indicate the initial state.
  • the terminal device When the user terminal device has a new data record, such as receiving or editing and sending a short message or multimedia message, or completing a call, or editing an address book, it is necessary to create a new index entry to record the data information. .
  • the terminal device sequentially retrieves the status field in the index table corresponding to the data type. When the status is found to be the initial index item, the storage address of the newly created data is filled in the address field of the index item, and the status is The field is changed to new or modified state.
  • the user receives a text message with C: ⁇ SMS ⁇ 10, and retrieves the SMS index table and finds that the index entry status is 0.
  • an address book record that has been backed up has an index entry in the index table:
  • an address book record that has been backed up has an index entry in the index table.
  • Embodiment 3 009 2 C: ⁇ Contacts ⁇ 12 or delete the contents of the address field at the same time, become Embodiment 3
  • a process of setting a backup condition including a backup period and a data type to be backed up may be included; the backup condition is a system default setting or set by a user. Users can set the backup period, the data class that needs to be backed up. The process of type information. However, if the user does not set this, the terminal device has a default backup condition value, for example, the backup period is 24 hours, and the data types to be backed up are SMS, MMS, call record, and address book. This will prevent users from forgetting the possible consequences of setting up.
  • the user can change the password and set the backup condition instead of the default backup condition.
  • the steps are as follows:
  • Step 1 Enter the backup setting menu of the terminal device. After the registration is successful, the backup setting menu is as shown in interface S02 of Figure 2;
  • Step 2 In the interface S02, select the first item of the menu "Change Password”, enter the interface S021, ask the user to input the old password, click the confirmation after the user completes the input, enter the interface S0211, ask the user to input the new password, and click the user after completing the input. Confirm, enter interface S02111, ask the user to enter the new password again, after the input is completed, the user clicks to confirm, and the terminal device sends the new password to the network server to update the password;
  • Step 3 In the interface S02, select the second item of the menu "Backup Cycle Settings" to enter the interface.
  • the user can select different backup periods. If the user does not set, the default is one day. After the user completes the setting, the terminal device sends the modified backup period to the network server;
  • Step 4 In the interface S02, select the third item of the menu "Backup Data Settings" to enter the interface.
  • the user can select the type of data that needs to be backed up. If the user does not set it, the default is to back up the address book, SMS, and MMS. After the user completes the setting, the terminal device sends the modified backup data type to the network server.
  • the present invention also provides a system for backing up terminal data, and implementing the above backup method in a terminal device and a network server, including a terminal device and a network server: for establishing and maintaining a terminal index table, where the terminal index table includes a terminal index entry corresponding to the terminal data; the sending unit is configured to check information in a terminal index entry of the terminal index table unit, and send information in the terminal index entry and data content corresponding to the terminal index entry to the network In the server, and notifying the terminal index table unit to modify the terminal index table;
  • the network server includes a server index table unit and a backup unit.
  • the server index table unit is configured to establish and maintain a server index table corresponding to the terminal index table.
  • the backup unit is configured to use information according to a terminal index entry. Performing a backup operation with the terminal data, and notifying the server index table unit to modify the server index table.
  • the terminal device As shown in FIG. 9, it is a terminal device for backing up terminal data according to the present invention.
  • the terminal device includes a terminal index table unit and a terminal transmitting unit.
  • each terminal index entry corresponds to a record of the terminal data
  • the index entry includes a label, a status, and an address field
  • the label field indicates a sequence number of the terminal index item, and is used to The data is transferred to the network server during the data backup process
  • the status field is used to distinguish the status of the data content corresponding to the index entry of the terminal, and the status includes: an initial state, an unchanged state, a newly created state, a modified state, and a deleted state
  • the address field is used to describe the storage address of the data content corresponding to the terminal index entry in the terminal device.
  • the value of the status field of all terminal index entries is an initial state
  • the terminal index table unit When the terminal device creates a new data record, the terminal index table unit newly creates or reuses a terminal index entry whose status field is the initial state in the terminal index table, and writes the address stored in the newly created data record to the terminal index entry. In the address field, and set its status field to new or modified state;
  • the terminal index table unit finds the terminal index entry corresponding to the data record in the terminal index table, and sets the status field to a new state or a modified state;
  • the terminal index table unit finds a corresponding terminal index entry according to the data record address in the terminal index table, and sets the status field to delete.
  • the terminal index table unit further includes an index table generating unit for establishing an index table, an index table maintaining unit for maintaining the index table, and a backup condition determining unit for determining whether to perform backup, for retrieving the terminal index table. Whether there is a data status checking unit of data to be backed up, and a backup operation unit for transmitting backup data and terminal index item information to the server.
  • the index table generating unit in the terminal device establishes an index table, and the index table is composed of index items, and the format of the index item is as shown in FIG. 3 .
  • the status field is the initial state 0.
  • the first index entry is:
  • the terminal device user creates a new address book and places it in the terminal device C: ⁇ Address Book ⁇ 40.
  • the index table maintenance unit checks the index entries in the address book index table and finds that the status field of the 20th item is 0:
  • the backup condition judging unit backs up every 24 hours according to the default backup condition, and the address book needs to be backed up.
  • the backup condition judging unit sends a signal of the start of the backup to the data status checking unit.
  • the backup operation unit sends the content and 020 in the C: ⁇ Address Book ⁇ 40 address to the network server. After completion, send the backup completion signal to the index table maintenance unit. 6, the index table maintenance unit changes the index item information becomes
  • the terminal sending unit generally includes three sending units:
  • a first sending unit configured to: when the terminal index item whose status field is newly created or modified is used, send the label field and the data content found according to the address field to the network server, and notify the server index table unit to notify the server The status field corresponding to the terminal index entry is modified to an unchanged state;
  • a second sending unit configured to send a label field to the network server when the status index field is deleted, to notify the network server to delete the data content corresponding to the label, and notify the server that the index table unit
  • the status field corresponding to the index entry of the terminal is modified to be an initial state
  • a third sending unit configured to: when the status field of the terminal index item is not belonging to any one of an unchanged state, a new state, a modified state, and a deleted state, the data content is found according to the address field, and the data content is used. And its label field is sent to the web server.
  • FIG. 10 it is a network server for backing up terminal data according to the present invention, which generally includes a server unit and a backup unit.
  • the server index table includes a server index entry; the server index entry includes a label field and an address field; wherein, the label field in the server index item and the label field in the terminal index item - Corresponding;
  • the address field in the server index entry is used to record the address where the backup data is stored in the server.
  • the network server receives the label 020 and an address book record
  • the server backup unit stores this address book record to the address of the network server; H: ⁇ terminal device xxxx ⁇ address book ⁇ 100 3.
  • the server backup unit sends the address to the server index table maintenance unit;
  • the server index table maintenance unit finds the address book index table 020 index items, fill the address into its server address field, get:
  • the backup unit generally includes two backup units:
  • a first backup unit configured to: when the terminal device sends the label field of the terminal index item and the corresponding data content to be newly created or modified, newly or search the server index table unit to find a server index item with the same label, and the corresponding data content Save, and write the server address stored in the data content to the server address field in the server index entry;
  • a second backup unit configured to: when the label field of the terminal device sends the terminal index item requires deletion, search the server index table unit to find a server index item that is the same as the label, and delete the data stored in the server address according to the server address field. content.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

将终端数据进行备份的方法及*** 技术领域
本发明涉及移动通信数据处理领域, 更具体的说, 涉及将终端数据进 行备份的方法及***。 背景技术
随着科技的发展, 手机成了人们生活、 工作的必须品。 手机中往往存 放着用户的通信记录, 比如通话记录、 短信和彩信。 手机中还存放着通讯 录、 图片、 音乐、 录音和录像等用户的资料。 这些通信记录和资料往往是 重要的数据, 若不进行备份, 一旦手机丟失或者损坏, 将会给用户造成不 可弥补的损失。
通常来说, 用户可通过手机数据线将数据备份到个人电脑中, 但是这 样操作不方便, 很少有用户能够定期进行备份。
目前已有方法提出将手机数据备份到网络服务器。 中国专利申请号为
CN200710074937.3 , 名称为 "一种手机与网络服务器的信息交换方法 "的专 利申请中提出了将手机数据备份到网络服务器的方法, 该方法需要用户设 置要备份的数据类型以及备份周期等。 当满足用户所设置的备份条件时, 手机将新数据备份到服务器上。 在备份前, 手机检查手机中上次备份之后 到本次备份之前的新建或者修改过的数据, 将这些作为需要备份的新数据。 另外, 当用户删除了手机上的数据后, 服务器上相应的备份数据不能自动 删除, 用户需要在服务器上设置这些廈弃数据是否应该删除。
但是, 在这样的***中, 用户需要对备份参数进行设置, 如备份时期、 备份的数据项目等, 使得用户的操作很复杂。 如果用户忘记设置, 这样的 备份机制便失去了作用。 此外, 为了确定哪些是需要备份的新数据, 手机 需要对手机内数据的逐条判断, 如判断数据的生成时间、 修改时间等。 这 样的操作消耗手机的内存资源, 也需要较长的搜索时间, 备份效率低。 最 后, 服务器不能够将备份数据自动删除而需要用户另行设置, 给用户增添 了麻烦。 如果用户忘记设置, 则会占用大量的服务器存储空间, 造成资源 浪费。 发明内容
本发明要解决的技术问题在于提出一种将终端数据进行备份的方法及 ***, 通过建立数据索引表, 使得终端设备能够快速检查数据状态进行数 据备份, 节省终端设备内存资源, 提高备份效率。
基于本发明的一方面, 提出一种将终端数据进行备份的方法, 包括如 下步骤:
A、 建立终端索引表, 所述终端索引表包括与终端数据对应的终端索引 项;
B、 终端设备检查终端索引项中的信息, 将所述终端索引项中的信息、 或所述终端索引项中的信息与终端索引项对应的终端数据, 发送给网络服 务器, 并修改终端索引表;
C、 网络服务器建立与所述终端索引表相对应的服务器索引表, 根据所 述终端索引项中的信息进行终端数据备份操作, 并修改服务器索引表。
进一步地, 所述步骤 A之前还包括: 所述终端设备向所述网络服务器 注册的步骤, 所述终端设备将终端设备的标识信息发送给网络服务器, 或 网络服务器获取终端设备的标识信息, 网络服务器依据得到的终端设备的 标识信息建立终端设备与网络服务器之间的对应注册关系。 首次建立终端索引表时, 所有终端索引项的状态字段的值为初始状态; 终端设备新建一条数据记录时, 在终端索引表中新建或重用一个状态字段 为初始状态的终端索引项, 将该新建的数据记录所存放的地址写入该终端 索引项的地址字段中, 并将该终端索引项的状态字段设为新建状态或修改 状态; 终端设备修改一条数据记录时, 在终端索引表中找到该数据记录对 应的终端索引项, 并将其状态字段设为新建状态或修改状态; 终端设备删 除一条数据记录时, 在终端索引表中根据数据记录存放地址找到对应的终 端索引项, 并将其状态字段设为删除状态。
进一步地, 所述步骤 A中, 每个终端索引项对应于终端数据的一个记 录, 索引项包括标号字段、 状态字段和地址字段, 其中: 所述标号字段表 示终端索引项的序号; 所述状态字段用于区分该终端索引项对应的数据状 态, 所述状态包括: 初始状态、 未变状态、 新建状态、 修改状态和删除状 态; 所述地址字段用于表述该终端索引项对应的数据在终端设备中的存储 地址。
进一步地, 所述步骤 B之前还包括设置备份条件的过程, 所述备份条 件包括备份周期及需要备份的数据类型; 所述备份条件为***默认设置或 由用户设置。
进一步地, 所述步骤 B具体为:
若检查到所述状态字段为新建状态或修改状态的终端索引项, 则将所 述终端索引项标号字段和根据其地址字段找到的数据内容发送至网络服务 器, 并将其状态字段修改为未变状态;
若检查到状态字段为删除状态的终端索引项, 则将其标号字段发送给 网络服务器, 以通知网络服务器根据所述标号字段删除对应的数据内容, 并将其状态字段修改为初始状态;
若检查到终端索引项的状态字段为不属于未变状态、 新建状态、 修改 状态和删除状态中的任何一种, 则根据该终端索引项的地址字段找到对应 数据内容, 将该数据内容以及其对应的标号字段发送给网络服务器。 进一步地, 步骤 C中所述的服务器索引表包括服务器索引项, 所述服 务器索引项包括标号字段和地址字段; 所述服务器索引项中的标号字段与 终端索引项中的标号字段——对应; 服务器索引项中的地址字段用于记录 备份数据在服务器中存放的地址。
进一步地, 步骤 C进行终端数据备份的过程为:
当终端设备发送终端索引项的标号字段和对应的数据内容要求新建或 修改时, 网络服务器新建或搜索相同标号的服务器索引项, 将对应的数据 内容进行保存, 并将数据内容所存放的服务器地址写入所述服务器索引项 中的地址字段;
当终端设备发送终端索引项的标号字段要求删除时, 网络服务器搜索 与该标号相同的服务器索引项, 并根据服务器索引项中的地址字段删除在 服务器中存放的数据内容。
基于本发明的另一方面, 还提出一种将终端数据进行备份的***, 该 ***包括终端设备以及网络服务器: 所述终端索引表单元, 用于建立和维护终端索引表, 所述终端索引表 包括与终端数据对应的终端索引项;
所述发送单元, 用于检查所述终端索引表单元的终端索引项中的信息, 将所述终端索引项中的信息、 或所述终端索引项中的信息与终端索引项对 应的数据内容发送给网络服务器, 并通知所述终端索引表单元修改终端索 引表;
所述网络服务器包括服务器索引表单元和备份单元;
所述服务器索引表单元, 用于建立和维护与所述终端索引表相对应的 服务器索引表;
所述备份单元, 用于根据所述终端索引项中的信息进行终端数据备份 操作, 并通知所述服务器索引表单元修改服务器索引表。
进一步地, 所述终端索引表单元中, 每个终端索引项对应于终端数据 的一个记录, 终端索引项包括标号字段、 状态字段和地址字段, 其中: 所述标号字段表示终端索引项的序号;
所述状态字段用于区分该终端索引项对应的数据状态, 所述状态包括: 初始状态、 未变状态、 新建状态、 修改状态和删除状态;
所述地址字段用于表述该终端索引项对应的数据在终端设备中的存储 地址。
进一步地, 所述终端索引表单元首次建立终端索引表时, 所有终端索 引项的状态字段的值为初始状态;
当终端设备新建一条数据记录时, 所述终端索引表单元在终端索引表 中新建或重用一个状态字段为初始状态的终端索引项, 将该新建的数据记 录所存放的地址写入该终端索引项的地址字段中, 并将其状态字段设为新 建状态或修改状态; 当终端设备修改一条数据记录时, 所述终端索引表单 元在终端索引表中找到该数据记录对应的终端索引项, 并将其状态字段设 为新建状态或修改状态; 当终端设备删除一条数据记录时, 所述终端索引 表单元在终端索引表中根据数据记录地址找到对应的终端索引项, 并将其 状态字段设为删除状态。
进一步地, 所述终端发送单元包括:
第一发送单元, 用于检查到状态字段为新建或修改状态的终端索引项 时, 则将其标号字段和根据地址字段找到的数据内容发送至网络服务器, 并通知所述服务器索引表单元将该终端索引项对应的状态字段修改为未变 状态;
第二发送单元, 用于检查到状态字段为删除状态的终端索引项时, 将 其标号字段发送给网络服务器, 通知网络服务器根据所述标号字段删除该 标号对应的数据内容, 并通知所述服务器索引表单元将该终端索引项对应 的状态字段^ ίι爹改为初始状态;
第三发送单元, 用于检查到终端索引项的状态字段为不属于未变状态、 新建状态、 修改状态和删除状态中的任何一种时, 根据该终端索引项的地 址字段找到该数据内容, 将该数据内容以及其对应的标号字段发送给网络 服务器。
进一步地, 所述服务器索引表单元中的服务器索引表包括服务器索引 项; 所述服务器索引项包括标号字段和地址字段; 所述服务器索引项中的 标号字段与终端索引项中的标号字段——对应; 服务器索引项中的地址字 段用于记录备份数据在服务器中存放的地址。
进一步地, 所述备份单元包括:
第一备份单元, 用于当终端设备发送终端索引项的标号字段和对应的 数据内容要求新建或修改时, 新建或搜索所述服务器索引表单元找到相同 标号的服务器索引项, 将对应的数据内容进行保存, 并将数据内容所存放 的服务器地址写入所述服务器索引项中的服务器地址字段;
第二备份单元, 用于当终端设备发送终端索引项的标号字段要求删除 时, 搜索所述服务器索引表单元找到与该标号相同的服务器索引项, 根据 服务器地址字段删除在服务器地址中存放的数据内容
本发明建立了终端索引表来维护终端设备内的数据信息, 在终端设备 新建、 修改或删除了数据内容时, 将终端索引表中索引项的信息以及对应 的数据内容发送到网络服务器上; 网络服务器上也建立有与终端索引表对 应的服务器索引表, 网络服务器根据索引项的类型、 标号等信息, 对终端 设备的数据内容进行保存或删除, 即可以快速对终端数据进行备份, 筒化 了检查过程, 从而节省了终端设备内存资源, 提高了备份效率。 附图说明
图 1是本发明方法的主要步骤流程图; 图 3是本发明方法终端设备根据索引表进行数据备份的流程图; 图 4是本发明方法中的网络服务器的索引表的索引项结构示意图; 图 5是本发明方法中网络服务器根据终端设备发送的数据进行备份的 流程图;
图 6是本发明方法中终端设备与网络服务器建立注册关系的过程示意 图;
图 7是本发明方法终端设备建立并维护索引表的流程图;
图 8是本发明方法中终端设备进行备份周期、 备份数据、 密码设置的 过程示意图;
图 9是本发明***的终端设备装置模块示意图;
图 10是本发明***的网络服务器装置模块示意图。 具体实施方式
下面结合附图和实施例, 对本发明做进一步的详细描述。
本发明提供了一种将终端数据进行备份的方法, 主要是在终端设备中 建立一个索引表, 记录终端数据的状态和存放位置。 同时网络服务器也建 立服务器索引表, 对应终端设备中的索引表。 在达到备份条件时, 终端设 备通过检查索弓 )表得知哪些数据需要进行备份以及需要进行什么样的备份 操作, 然后将需要发送的数据和索引项标号发送给网络服务器。 网络服务 器根据服务器索引表查找数据在服务器中的存放位置, 从而进行操作。 需 要说明的是, 本发明并不仅限于应用在手机终端, 还可以应用在其他终端 设备, 比如 PDA等终端。
本发明提供了一种将终端数据进行备份的方法, 如图 1 所示, 主要包 括以下步骤:
步骤一、 建立终端索引表, 所述终端索引表包括与终端数据对应的终 端索引项;
步骤二、 终端设备检查终端索引项中的信息, 将所述终端索引项中的 信息和终端索引项对应的数据内容发送到网络服务器中, 并修改终端索引 表;
步骤三、 网络服务器接收到终端设备发送的所述终端索引项中的信息 和终端索引项对应的数据内容后, 建立或更新与所述终端索引表相对应的 服务器索引表, 根据所述终端索引项中的信息进行终端数据备份。
对于步骤一, 所述终端索引表包括终端索引项, 所述终端索引项与需 要备份的数据相对应;
终端设备在终端设备内建立终端索引表维护终端设备内的信息。 终端 索引表由终端索引项构成, 每一索引项对应于终端数据的一个记录, 索引 项包括标号、 状态和地址字段, 其中: 标号字段表示终端索引项的序号, 用于在数据备份过程中向网络服务器标识数据内容; 状态字段用于区分该 终端索引项对应的数据内容的状态, 所述状态包括: 初始状态、 未变状态、 新建状态、 修改状态和删除状态; 所述地址字段用于表述该终端索引项对 应的数据内容在终端设备中的存储地址, 可以是存储路径。
如图 2所示, 为终端索引表的优选结构。 对于用户需要备份的数据类 型, 如短信、 彩信、 通话记录、 通讯录, 终端设备分别维护一个终端索引 表。 终端设备的终端索引表以文件的形式存放, 每一终端索引项记录一条 数据的相关信息。 优选地, 标号字段可设为三位, 状态字段可设为一位, 地址字段可为一个字符串, 填写终端数据所存放的路径。 状态字段可用 0 表示初始状态, 即终端索引项为空; 1表示新建状态或修改状态; 2表示删 除状态; 3表示未变状态; 在程序判断条件出错或数据跑飞、 数组越界的情 况, 状态位的值可能会成为非 0、 1、 2、 3的值, 也就是不属于初始状态、 新建状态或修改状态、 删除状态和未变状态中任何一种状态, 称为异常状 态。
表示状态的值可以变动, 只要这一值可以区分以上不同的状态即可。 举例, 一条短信终端索引表中的一个终端索引项:
011 1 C:\短信 \06
表示短信第 11条终端索引项, 状态为修改, 存储路径在 C盘下, 短信 文件夹, 第 6条。
002 3 C:\通话记录\07
表示通话记录终端索引表中第 2条终端索引项, 状态为未变, 即自从 上次备份以来, 没有改变过。 且存储路径在 C盘下, 通话记录文件夹, 第 7条。
除上述方式外, 终端索引表还可以其他结构, 例如字段顺序的调换, 或者增加其他信息字段等, 如:
状态 标号 地址 标号 状态 地址 其他
对于步骤二, 终端设备检查终端索引表中的信息, 包括标号、 状态和 地址字段, 将需要备份的终端数据发送到网络服务器中, 并维护终端索引 表中的信息;
当达到备份条件时, 终端设备检查终端索引表中每一个终端索引项的 状态字段的值, 来确定, 从上一次备份到本次备份之间, 终端索引项所对 应的数据有无变动。
若检查到状态字段为新建或修改状态的终端索引项, 则将其标号字段 和根据地址字段找到的数据内容发送至网络服务器, 并将状态字段修改为 未变状态;
若检查到状态字段为删除状态的终端索引项, 将其标号字段发送给网 络服务器, 以通知网络服务器删除该标号对应的数据内容, 并将状态字段 4爹改为初始状态;
若检查到终端索引项的状态字段为不属于未变、 新建、 修改和删除中 的任何一种, 即发生异常时, 根据其地址字段找到该数据内容, 将该数据 内容以及其标号字段发送给网络服务器。
如图 3所示, 为终端设备检查检索表并做备份的过程。
当满足备份条件时, 终端设备检查终端索引表中各终端索引项的状态。 当发现状态为新建或修改状态时, 将其标号和根据地址字段找到的数据内 容法送给网络服务器, 并将状态字段改为未变状态。
举例: 检索到一条通讯录的终端索引项为:
010 1 C:\通讯录 \12
这时, 根据 C:\通讯录 \12找到这条通讯录记录的具体内容, 将其与标 号 010发给网络服务 H - , 最后将这条终端索引项改为:
010 3 C:\通讯录 \12
当发现状态为删除状态时, 将其标号发送给网络服务器, 并将状态字 段修改为初始状态。 状态字段变成初始状态后, 意味着这条终端索引项的 标号被释放, 可以重新使用, 新建记录时可以建立在此条终端索引项中。
举例: 检索到一条通讯录的索引为:
Figure imgf000012_0001
当发现状态为异常时, 将其标号和根据地址字段找到的数据内容法送 给网络服务器, 并将状态字段改为未变状态。
举例: 检索到一条通讯录的终端索引项为
019 5 C:\通讯录 \12
这时, 根据 C:\通讯录 \12找到这条通讯录记录的具体内容, 将其与标 号 010发给网络服务器, 最后将这条终端索引项改为
019 3 C:\通讯录 \12
对于步骤三, 网络服务器中建立服务器索引表, 根据终端设备的备份 请求进行备份, 并维护服务器索引表。
网络服务器中对应该终端设备建立服务器索引表, 两个索引表的索引 项标号一一对应。 服务器索引表包括服务器索引项, 所述服务器索引项也 包括标号字段和地址字段; 其中, 标号字段与终端索引表的标号字段—— 对应; 地址字段用于记录备份数据在服务器中存放的地址。
如图 4所示, 为网络服务器索引表的索引项结构。
如图 5所示, 为网络服务器备份的过程:
当终端设备发送终端索引项的标号字段和对应的数据内容要求新建或 修改时, 网络服务器搜索到相同标号的服务器索引项, 将对应的数据内容 进行保存, 并将数据内容所存放的服务器地址写入所述服务器索引项的服 务器地址字段;
当终端设备发送终端索引项的标号要求删除时, 网络服务器搜索到与 该标号相同的服务器索引项, 根据服务器地址字段删除在服务器地址中存 放的数据内容。
对应于终端设备的索引表, 网络服务器也根据不同的数据类型分别维 护服务器索引表。 服务器索引表以文件形式存放, 每一个索引项对应着终 端设备中的索引表中的索引项。 服务器索引表的索引项至少包括标号字段 和服务器地址字段。 优选地, 标号字段设为三位, 服务器地址字段为一个 字符串, 填写备份数据在服务器中的存放路径。 服务器索引项的标号应该 与终端设备中索引项标号一致。
举例, 当终端设备中有短信索引项
011 1 C:\短信 \06
该短信在服务器备份后, 其服务器索引项应该为:
011 H:\终端设备 xxxx\短信 \06
标号 011与终端设备中索引项标号一致。
当网络服务器接收到终端设备发送标号以及数据内容时, 网络服务器 找到相同标号的索引项, 将备份数据内容所存放的服务器地址写入该索引 项地址字段。
举例: 收到标号 010, 短信内容为: "你好", 则将"你好"存入服务器, 路径为 H:\终端设备 xxxx\短信 \11。 则找到服务器索引表第 010条, 写入地 址得到:
010 H:\终端设备 xxxx\短信 \11
当网络服务器接收到终端设备发送的标号, 被要求删除备份时, 网络 服务器按照标号找到该索引项, 并根据地址字段的值删除该数据内容。
举例: 收到通讯录标号 009, 搜索到该条索引项
009 H:\终端设备 xxxx\通讯录 \22
按照 H:\终端设备 xxxx\通讯录 \22找到该条记录进行删除即可。
下面结合应用示例对本发明技术方案的实施作进一步详细介绍。
实施例一
在本优选实施例中, 步骤一之前还包括为所述终端设备向所述网络服 务器注册的步骤, 所述终端设备将标识信息发送给网络服务器, 或所述网 络服务器获取终端设备的标识信息, 网络服务器依据所述标识信息建立终 端设备与网络服务器的对应注册关系, 其中终端设备包括手机或 PDA, 所 述标识信息包括手机号、 IP地址或终端设备号。
本发明可以首先令用户终端设备在网络服务器中进行注册, 从而使得 终端设备与网络服务器建立对应关系。 可由用户终端设备将终端设备号发 送给网络服务器从而完成注册。 或者由网络服务器发起注册行为, 获取终 端设备号码完成终端设备与网络服务器的对应注册关系。 在注册中, 用户 可设定注册密码, 注册完成后也可更改密码。
如图 6所示, 该优选实施例为终端设备用户向服务器通过设置密码完 成注册的过程。 其具体步骤为:
步骤 1. 进入终端设备的备份设置菜单, 如图 6的界面 S01 ;
步骤 2. 在界面 S01 , 用户选择"密码设置", 进入图一的界面 S011 ; 步骤 3. 在界面 S011 , 用户输入新密码, 点击确认, 进入图一的界面 S0111;
步骤 4. 在界面 S0111 , 用户再次输入新密码, 点击"注册", 终端设备 将密码通过短信发送给网络服务器进行注册。
步骤 5. 网络服务器收到注册短信后, 回复一条短信给终端设备, 该 短信不显示给用户, 终端设备收到该短信, 标识注册标志位, 表示注册成 功。
步骤 6. 如果注册失败, 弹出提示框提示用户, 用户确认后回到界面 S0111 , 用户可再次进行注册。
实施例二
对于步骤一, 所述索引表根据用户终端数据的变化进行实时更新的过 程为:
终端设备新建一条记录时, 在终端索引表中找到一个状态字段为初始 的终端索引项, 将该新建记录所存放的地址写入该终端索引项的地址字段 中, 并将状态字段设为新建或修改; 终端设备修改一条记录时, 在终端索 引表中找到该记录对应的终端索引项, 将状态字段设为新建或修改; 终端 设备删除一条记录时, 在终端索引表中根据地址找到对应的终端索引项, 将状态字段设为删除。 例如:
当用户新建一条记录, 例如接收或发送一条短信或彩信, 或完成一次 通话时, 或编辑完成一条通讯录记录时, 在索引表中找到一个状态字段为 初始的索引项, 将该短信或彩信所存放的地址写入该索引项的地址字段中, 并将状态字段设为新建或修改;
当用户修改一条记录, 例如修改一条通讯录记录时, 在索引表中找该 记录对应的索引项, 将其状态字段设为新建或修改;
用户删除一条短信或彩信, 或删除一条通话记录, 或删除一条通讯录 记录时, 在索引表中根据地址找到对应的索引项, 删除该索引项中的地址 字段, 将状态字段设为删除。
通过以上步骤, 用户终端设备完成了对索引表的维护。
如图 7所示, 为用户终端设备建立以及维护索引表的过程的优选实施 例。
第一次建立索引表时, 所有的状态字段设置为初始。 举例, 可设为 0 表示初始^大态。
当用户终端设备有新的数据记录时, 比如接收或编辑完成并发送一条 短信或彩信, 或完成一次通话时, 或编辑完成一条通讯录 i己录时, 需要新 建一条索引项记录这一数据信息。 这时终端设备顺序检索该数据类型对应 的索引表中的状态字段, 当发现有状态为初始的索引项, 即把该新建的数 据的存放地址填入所述索引项的地址字段, 并将状态字段改为新建或修改 状态。
举例, 用户接到一条短信存在 C:\短信 \10,检索短信索引表发现 012索 引项状态为 0。
Figure imgf000017_0001
则将该短信存放地址填入, 并修改状态
012 1 C:\短信 \10 当用户修改已有的数据记录时, 需要搜索索引表找到该条记录, 将状 态改为新建或 ^ί'爹改状态。
举例, 已有备份完成的一条通讯录记录, 在索引表中的索引项为:
010 3 C:\通讯录 \12 状态为 3表示其上一次备份完成。
修改成 1 , 得到:
010 1 C:\通讯录 \12 当用户删除已有的数据记录时, 需要搜索索引表找到该条记录, 将状 态改为 2。 同时, 也可以将地址字段中的值删除。
举例, 已有备份完成的一条通讯录记录, 在索引表中的索引项为
009 3 C:\通讯录 \12 删除此条通讯录记录, 则索引项应成为
009 2 C:\通讯录 \12 或同时删除地址字段的内容, 成为
Figure imgf000017_0002
实施例三
在本优选实施例中, 在步骤二之前, 还可以包括设置备份条件的过程, 所述备份条件包括备份周期以及需要备份的数据类型; 所述备份条件为系 统默认设置或由用户设置。 用户可以设定备份的周期、 需要备份的数据类 型等信息的过程。 但如果用户对此不做设定, 终端设备中有默认的备份条 件值, 如备份周期为 24小时, 需要备份的数据类型为短信、 彩信、 通话记 录、 通讯录。 这样可以避免用户忘记设置可能带来的不良后果。
如图 8所示, 该优选实施例为终端设备和网络月良务器完成对应关系后, 用户可更改密码以及设置备份条件代替默认的备份条件, 步骤如下:
步骤 1. 进入终端设备的备份设置菜单, 注册成功后, 备份设置菜单 如图二的界面 S02所示;
步骤 2. 在界面 S02, 选择菜单的第一项"修改密码", 进入界面 S021 , 要求用户输入旧密码, 用户完成输入后点击确认, 进入界面 S0211 , 要求用 户输入新密码, 完成输入后用户点击确认, 进入界面 S02111 , 要求用户再 次输入新密码, 完成输入后用户点击确认, 终端设备将新密码发送给网络 服务器更新密码;
步骤 3. 在界面 S02 , 选择菜单的第二项"备份周期设置", 进入界面
5022, 用户可以选择不同的备份周期, 若用户不设置, 则默认为一天。 用 户完成设置后, 终端设备将修改后的备份周期发送给网络服务器;
步骤 4. 在界面 S02 , 选择菜单的第三项"备份数据设置", 进入界面
5023 , 用户可以选择需要备份的数据类型, 若用户没有设置, 则默认备份 通信录、 短信、 彩信。 用户完成设置后, 终端设备将修改后的备份数据类 型发送给网络服务器;
本发明还提供了一种将终端数据进行备份的***, 在终端设备和网络 服务器中实现上述的备份方法, 包括终端设备以及网络服务器: 用于建立和维护终端索引表, 所述终端索引表包括与终端数据对应的终端 索引项; 所述发送单元用于检查所述终端索引表单元的终端索引项中的信 息, 将所述终端索引项中的信息和终端索引项对应的数据内容发送到网络 服务器中, 并通知所述终端索引表单元修改终端索引表;
所述网络服务器包括服务器索引表单元和备份单元; 所述服务器索引 表单元用于建立和维护与所述终端索引表相对应的服务器索引表; 所述备 份单元用于根据终端索引项中的信息和终端数据进行备份操作, 并通知所 述服务器索引表单元修改服务器索引表。
一、 终端设备
如图 9所示, 为本发明的一种备份终端数据的终端装置。 本发明*** 中, 终端设备包括终端索引表单元和终端发送单元。
(一)、 在终端索引表单元中, 每一终端索引项对应于终端数据的一个 记录, 索引项包括标号、 状态和地址字段, 其中: 所述标号字段表示终端 索引项的序号, 用于在数据备份过程中向网络服务器传递信息; 所述状态 字段用于区分该终端索引项对应的数据内容的状态, 所述状态包括: 初始 状态、 未变状态、 新建状态、 修改状态和删除状态; 所述地址字段用于表 述该终端索引项对应的数据内容在终端设备中的存储地址。
所述终端索引表单元首次建立终端索引表时, 所有终端索引项的状态 字段的值为初始状态;
当终端设备新建一条数据记录时, 所述终端索引表单元在终端索引表 中新建或重用一个状态字段为初始状态的终端索引项, 将该新建的数据记 录所存放的地址写入该终端索引项的地址字段中, 并将其状态字段设为新 建状态或修改状态;
当终端设备修改一条数据记录时, 所述终端索引表单元在终端索引表 中找到该数据记录对应的终端索引项, 并将其状态字段设为新建状态或修 改状态;
当终端设备删除一条数据记录时, 所述终端索引表单元在终端索引表 中根据数据记录地址找到对应的终端索引项, 并将其状态字段设为删除状 优选地, 终端索引表单元进一步包括用于建立索引表的索引表生成单 元, 用于维护索引表的索引表维护单元, 用于判断是否需要执行备份的备 份条件判断单元, 用于检索终端索引表中是否有需要备份的数据的数据状 态检查单元, 用于向服务器发送备份数据及终端索引项信息的备份操作单 元。
举例来说明此优选实施方式:
1、 终端设备中的索引表生成单元建立索引表, 索引表由索引项构成, 索引项格式如图 3所示。 状态字段为初始状态 0。 如第一条索引项为:
Figure imgf000020_0001
2、 终端设备用户新建一条通讯录, 放在终端设备 C:\通讯录 \40, 索引 表维护单元检查通讯录索引表中的索引项, 发现第 20条的状态字段为 0:
020 0 则将此地址填入, 并更改状态, 得到
020 1 C:\通讯录 \40
3、 备份条件判断单元根据默认备份条件每 24 小时备份, 通讯录需要 进行备份, 满足备份条件时, 备份条件判断单元发送备份开始的信号给数 据状态检查单元。
4、 数据状态检查单元收到开始备份的信号之后, 检查索引表。 当发现 通讯录索引表中有:
020 1 C:\通讯录 \40 这样的索引项时, 将索引结果发送给备份操作单元。
5、 由于状态字段为 1 , 备份操作单元将 C:\通讯录 \40地址中的内容和 020发送给网络服务器。 完成后给索引表维护单元发送备份完成的信号。 6、 索引表维护单元更改索引项信息成为
020 3 C:\通讯录 \40
(二)、 终端发送单元一般包括三个发送单元:
第一发送单元, 用于检查到状态字段为新建或修改状态的终端索引项 时, 则将其标号字段和根据地址字段找到的数据内容发送至网络服务器, 并通知所述服务器索引表单元将该终端索引项对应的状态字段修改为未变 状态;
第二发送单元, 用于检查到状态字段为删除状态的终端索引项时, 将 其标号字段发送给网络服务器, 以通知网络服务器删除该标号对应的数据 内容, 并通知所述服务器索引表单元将该终端索引项对应的状态字段修改 为初始^大态;
第三发送单元, 用于检查到终端索引项的状态字段为不属于未变状态、 新建状态、 修改状态和删除状态中的任何一种时, 根据其地址字段找到该 数据内容, 将该数据内容以及其标号字段发送给网络服务器。
二、 服务器设备
如图 10所示, 为本发明的一种备份终端数据的网络服务器, 其一般包 括服务器索 )表单元和备份单元,
(一)、 在服务器索引表单元中, 服务器索引表包括服务器索引项; 所 述服务器索引项包括标号字段和地址字段; 其中, 服务器索引项中的标号 字段与终端索引项中的标号字段——对应; 服务器索引项中的地址字段用 于记录备份数据在服务器中存放的地址。
举例来说明此优选实施方式:
1、 网络服务器收到标号 020以及一条通讯录记录;
2、 服务器备份单元将这条通讯录记录存储到网络服务器的地址; H:\终端设备 xxxx\通讯录 \100 3、 服务器备份单元将这个地址发给服务器索引表维护单元;
4、 服务器索引表维护单元找到通讯录索引表 020条索引项, 将地址填 入其服务器地址字段, 得到:
020 H:\终端设备 xxxx\通讯录 \100
(二)、 备份单元一般包括两个备份单元:
第一备份单元, 用于当终端设备发送终端索引项的标号字段和对应的 数据内容要求新建或修改时, 新建或搜索所述服务器索引表单元找到相同 标号的服务器索引项, 将对应的数据内容进行保存, 并将数据内容所存放 的服务器地址写入所述服务器索引项中的服务器地址字段;
第二备份单元, 用于当终端设备发送终端索引项的标号字段要求删除 时, 搜索所述服务器索引表单元找到与该标号相同的服务器索引项, 根据 服务器地址字段删除在服务器地址中存放的数据内容。

Claims

权利要求书
1、 一种将终端数据进行备份的方法, 其特征在于, 包括如下步骤:
A、 建立终端索引表, 所述终端索引表包括与终端数据对应的终端索引 项;
B、 终端设备检查终端索引项中的信息, 将所述终端索引项中的信息、 或所述终端索引项中的信息与终端索引项对应的终端数据, 发送给网络服 务器, 并修改终端索引表;
C、 网络服务器建立与所述终端索引表相对应的服务器索引表, 根据所 述终端索引项中的信息进行终端数据备份操作, 并修改服务器索引表。
2、 如权利要求 1所述的方法, 其特征在于, 所述步骤 A之前还包括: 所述终端设备向所述网络服务器注册的步骤, 所述终端设备将终端设备的 标识信息发送给网络服务器, 或网络服务器获取终端设备的标识信息, 网 络服务器依据得到的终端设备的标识信息建立终端设备与网络服务器之间 的对应注册关系。
3、 如权利要求 1所述的方法, 其特征在于, 所述步骤 A中, 每个终端 索引项对应于终端数据的一个记录, 索引项包括标号字段、 状态字段和地 址字段, 其中:
所述标号字段表示终端索引项的序号;
所述状态字段用于区分该终端索引项对应的数据状态, 所述状态包括: 初始状态、 未变状态、 新建状态、 修改状态和删除状态;
所述地址字段用于表述该终端索引项对应的数据在终端设备中的存储 地址。
4、 如权利要求 3所述的方法, 其特征在于, 所述步骤 A之后还包括对 终端索引表进行实时更新的步骤:
首次建立终端索引表时, 所有终端索引项的状态字段的值为初始状态; 终端设备新建一条数据记录时, 在终端索引表中新建或重用一个状态 字段为初始状态的终端索引项, 将该新建的数据记录所存放的地址写入该 终端索引项的地址字段中, 并将该终端索引项的状态字段设为新建状态或 修改状态;
终端设备修改一条数据记录时, 在终端索引表中找到该数据记录对应 的终端索引项, 并将其状态字段设为新建状态或修改状态;
终端设备删除一条数据记录时, 在终端索引表中根据数据记录存放地 址找到对应的终端索引项, 并将其状态字段设为删除状态。
5、 如权利要求 1所述的方法, 其特征在于, 所述步骤 B之前还包括设 置备份条件的过程, 所述备份条件包括备份周期及需要备份的数据类型; 所述备份条件为***默认设置或由用户设置。
6、 如权利要求 3所述的方法, 其特征在于, 所述步骤 B具体为: 若检查到所述状态字段为新建状态或修改状态的终端索引项, 则将所 述终端索引项标号字段和根据其地址字段找到的数据内容发送至网络服务 器, 并将其状态字段修改为未变状态;
若检查到状态字段为删除状态的终端索引项, 则将其标号字段发送给 网络服务器, 以通知网络服务器根据所述标号字段删除对应的数据内容, 并将其状态字段修改为初始状态;
若检查到终端索引项的状态字段为不属于未变状态、 新建状态、 修改 状态和删除状态中的任何一种, 则根据该终端索引项的地址字段找到对应 数据内容, 将该数据内容以及其对应的标号字段发送给网络服务器。
7、 如权利要求 6所述的方法, 其特征在于, 步骤 C中所述的服务器索 引表包括服务器索引项, 所述服务器索引项包括标号字段和地址字段; 所 述服务器索引项中的标号字段与终端索引项中的标号字段——对应; 服务 器索引项中的地址字段用于记录备份数据在服务器中存放的地址。
8、 如权利要求 7所述的方法, 其特征在于, 步骤 C进行终端数据备份 的过程为:
当终端设备发送终端索引项的标号字段和对应的数据内容要求新建或 修改时, 网络服务器新建或搜索相同标号的服务器索引项, 将对应的数据 内容进行保存, 并将数据内容所存放的服务器地址写入所述服务器索引项 中的地址字段;
当终端设备发送终端索引项的标号字段要求删除时, 网络服务器搜索 与该标号相同的服务器索引项, 并根据服务器索引项中的地址字段删除在 服务器中存放的数据内容。
9、 一种将终端数据进行备份的***, 包括终端设备以及网络服务器, 其特征在于: 所述终端索引表单元, 用于建立和维护终端索引表, 所述终端索引表 包括与终端数据对应的终端索引项;
所述发送单元, 用于检查所述终端索引表单元的终端索引项中的信息, 将所述终端索引项中的信息、 或所述终端索引项中的信息与终端索引项对 应的数据内容发送给网络服务器, 并通知所述终端索引表单元修改终端索 引表;
所述网络服务器包括服务器索引表单元和备份单元;
所述服务器索引表单元, 用于建立和维护与所述终端索引表相对应的 服务器索引表;
所述备份单元, 用于根据所述终端索引项中的信息进行终端数据备份 操作, 并通知所述服务器索引表单元修改服务器索引表。
10、 如权利要求 9所述的***, 其特征在于, 所述终端索引表单元中, 每个终端索引项对应于终端数据的一个记录, 终端索引项包括标号字段、 状态字段和地址字段, 其中:
所述标号字段表示终端索引项的序号;
所述状态字段用于区分该终端索引项对应的数据状态, 所述状态包括: 初始状态、 未变状态、 新建状态、 修改状态和删除状态;
所述地址字段用于表述该终端索引项对应的数据在终端设备中的存储 地址。
11、 如权利要求 10所述的***, 其特征在于,
所述终端索引表单元首次建立终端索引表时, 所有终端索引项的状态 字段的值为初始状态;
当终端设备新建一条数据记录时, 所述终端索引表单元在终端索引表 中新建或重用一个状态字段为初始状态的终端索引项, 将该新建的数据记 录所存放的地址写入该终端索引项的地址字段中, 并将其状态字段设为新 建状态或修改状态;
当终端设备修改一条数据记录时, 所述终端索引表单元在终端索引表 中找到该数据记录对应的终端索引项, 并将其状态字段设为新建状态或修 改状态;
当终端设备删除一条数据记录时, 所述终端索引表单元在终端索引表 中根据数据记录地址找到对应的终端索引项, 并将其状态字段设为删除状 态。
12、如权利要求 10所述的***, 其特征在于, 所述终端发送单元包括: 第一发送单元, 用于检查到状态字段为新建或修改状态的终端索引项 时, 则将其标号字段和根据地址字段找到的数据内容发送至网络服务器, 并通知所述服务器索引表单元将该终端索引项对应的状态字段修改为未变 状态;
第二发送单元, 用于检查到状态字段为删除状态的终端索引项时, 将 其标号字段发送给网络服务器, 通知网络服务器根据所述标号字段删除该 标号对应的数据内容, 并通知所述服务器索引表单元将该终端索引项对应 的状态字段^ ίι爹改为初始状态;
第三发送单元, 用于检查到终端索引项的状态字段为不属于未变状态、 新建状态、 修改状态和删除状态中的任何一种时, 根据该终端索引项的地 址字段找到该数据内容, 将该数据内容以及其对应的标号字段发送给网络 服务器。
13、 如权利要求 12所述的***, 其特征在于, 所述服务器索引表单元 中的服务器索引表包括服务器索引项; 所述服务器索引项包括标号字段和 地址字段; 所述服务器索引项中的标号字段与终端索引项中的标号字段一 一对应; 服务器索引项中的地址字段用于记录备份数据在服务器中存放的 地址。
14、 如权利要求 13所述的***, 其特征在于, 所述备份单元包括: 第一备份单元, 用于当终端设备发送终端索引项的标号字段和对应的 数据内容要求新建或修改时, 新建或搜索所述服务器索引表单元找到相同 标号的服务器索引项, 将对应的数据内容进行保存, 并将数据内容所存放 的服务器地址写入所述服务器索引项中的服务器地址字段;
第二备份单元, 用于当终端设备发送终端索引项的标号字段要求删除 时, 搜索所述服务器索引表单元找到与该标号相同的服务器索引项, 根据 服务器地址字段删除在服务器地址中存放的数据内容。
PCT/CN2010/071619 2009-07-31 2010-04-07 将终端数据进行备份的方法及*** WO2011011996A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/386,418 US8589353B2 (en) 2009-07-31 2010-04-07 Method for backing up terminal data and system thereof
EP10803829.0A EP2461615A4 (en) 2009-07-31 2010-04-07 METHOD FOR SECURING DEVICE DATA AND SYSTEM THEREFOR

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101091882A CN101662760B (zh) 2009-07-31 2009-07-31 将终端数据进行备份的方法及***
CN200910109188.2 2009-07-31

Publications (1)

Publication Number Publication Date
WO2011011996A1 true WO2011011996A1 (zh) 2011-02-03

Family

ID=41790452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/071619 WO2011011996A1 (zh) 2009-07-31 2010-04-07 将终端数据进行备份的方法及***

Country Status (4)

Country Link
US (1) US8589353B2 (zh)
EP (1) EP2461615A4 (zh)
CN (1) CN101662760B (zh)
WO (1) WO2011011996A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221814A (zh) * 2018-11-27 2020-06-02 阿里巴巴集团控股有限公司 二级索引的构建方法、装置及设备

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662760B (zh) * 2009-07-31 2011-12-28 中兴通讯股份有限公司 将终端数据进行备份的方法及***
CN102075621B (zh) * 2010-12-23 2015-10-07 上海闻泰电子科技有限公司 一种安全存储手机彩信并进行掉电保护的方法
CN102314503A (zh) * 2011-09-01 2012-01-11 浪潮(北京)电子信息产业有限公司 一种索引方法
WO2013044794A1 (zh) * 2011-09-30 2013-04-04 北京奇虎科技有限公司 终端备份和恢复方法
CN103309906A (zh) * 2012-03-16 2013-09-18 ***通信集团公司 一种通讯录备份、恢复方法及装置
CN102711091B (zh) * 2012-06-12 2018-11-23 中兴通讯股份有限公司 核心网***及数据处理方法
CN103051792B (zh) * 2012-12-17 2014-12-10 东莞宇龙通信科技有限公司 变更联系人信息的方法及其通信终端
CN103957318B (zh) * 2014-04-28 2016-10-05 广州三星通信技术研究有限公司 在终端中管理与联系人之间的会话内容的设备和方法
CN104199984B (zh) * 2014-09-26 2018-01-12 浙江中控技术股份有限公司 一种实现功能库的动态引用的方法和装置
CN105635394B (zh) * 2015-03-04 2020-04-07 酷派软件技术(深圳)有限公司 联系人信息处理方法、联系人信息处理***和终端
CN106682002A (zh) * 2015-11-05 2017-05-17 中兴通讯股份有限公司 数据库同步方法及***、源数据和目标数据同步装置
CN108206998A (zh) * 2016-12-20 2018-06-26 北京小米移动软件有限公司 获取终端信息的方法及装置
CN108399580A (zh) * 2018-02-09 2018-08-14 国网浙江省电力有限公司信息通信分公司 电力行业全业务统一数据服务器***

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988535A (zh) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 文件存储同步方法、***及客户端
CN101090330A (zh) * 2006-06-13 2007-12-19 上海威腾信息科技有限公司 一种网络数据备份管理装置及其相关处理方法
CN101662760A (zh) * 2009-07-31 2010-03-03 中兴通讯股份有限公司 将终端数据进行备份的方法及***

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005503616A (ja) * 2001-08-31 2005-02-03 アルキヴィオ・インコーポレーテッド データの内容と属性に基づいてデータをリストアする技法
US8346718B2 (en) * 2001-09-07 2013-01-01 Extended Systems, Inc. Synchronizing recurring events
KR100762629B1 (ko) * 2003-08-26 2007-10-01 삼성전자주식회사 휴대단말기의 백업서비스 처리방법
CN1956452B (zh) * 2005-10-27 2012-02-29 华为技术有限公司 一种实现数据同步的方法、***、客户端及服务器
CN101005428A (zh) * 2006-01-19 2007-07-25 华为技术有限公司 一种检测与解决数据同步冲突的实现方法
CN101009516B (zh) * 2006-01-26 2011-05-04 华为技术有限公司 一种进行数据同步的方法、***及装置
WO2007138461A2 (en) * 2006-05-31 2007-12-06 Pankaj Anand Method and a system for obtaining differential backup

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988535A (zh) * 2005-12-23 2007-06-27 腾讯科技(深圳)有限公司 文件存储同步方法、***及客户端
CN101090330A (zh) * 2006-06-13 2007-12-19 上海威腾信息科技有限公司 一种网络数据备份管理装置及其相关处理方法
CN101662760A (zh) * 2009-07-31 2010-03-03 中兴通讯股份有限公司 将终端数据进行备份的方法及***

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2461615A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221814A (zh) * 2018-11-27 2020-06-02 阿里巴巴集团控股有限公司 二级索引的构建方法、装置及设备
CN111221814B (zh) * 2018-11-27 2023-06-27 阿里巴巴集团控股有限公司 二级索引的构建方法、装置及设备

Also Published As

Publication number Publication date
EP2461615A1 (en) 2012-06-06
US8589353B2 (en) 2013-11-19
CN101662760A (zh) 2010-03-03
US20120191655A1 (en) 2012-07-26
EP2461615A4 (en) 2014-03-26
CN101662760B (zh) 2011-12-28

Similar Documents

Publication Publication Date Title
WO2011011996A1 (zh) 将终端数据进行备份的方法及***
EP3627326B1 (en) File processing method and mobile terminal
CN112000741B (zh) 内外网数据交换***、方法、装置、计算机设备和介质
CN112738791B (zh) 基于5g核心网的用户信息关联回填方法、装置、设备和介质
CN109359091B (zh) 文件管理方法、装置、终端及计算机可读存储介质
US20110258160A1 (en) Data synchronization methods for synchronizing data in communication system and communication systems
US20120185454A1 (en) Method and device for accessing file resources
CN111474860B (zh) 一种基于失效智能场景的处理方法、设备及存储介质
CN101470645A (zh) 一种高速缓存数据恢复的方法和装置
WO2013086811A1 (zh) 数据处理方法、云服务器和终端
CN111597078A (zh) 一种复制ceph块存储数据至对象存储的定时备份方法及***
CN101911052A (zh) 用于下载数据的方法和设备
WO2011047623A1 (zh) 一种回收短消息的方法及移动终端
CN112866979B (zh) 基于5g服务化接口的用户信息关联方法、装置、设备和介质
CN108459925B (zh) 私有云设备及其数据库的修复方法、具有存储功能的装置
CN102970401A (zh) 一种记录联系人信息的方法及装置
WO2024041433A1 (zh) 数据处理方法以及装置
WO2013023582A1 (zh) 记录方法、记录装置及电子设备
WO2011116616A1 (zh) 一种备份未读短消息的方法和装置
CN112486831A (zh) 一种测试***、方法、电子设备及存储介质
CN112948020B (zh) 一种配置文件的处理方法和装置
CN107295179A (zh) 一种短信息显示的方法和装置
CN103107991B (zh) 一种多nvt事件处理方法、nvc及安防监控平台
US8417291B2 (en) Method and apparatus for managing phonebook in a portable terminal
WO2013168512A1 (ja) クラウドストレージサーバ

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: 10803829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 13386418

Country of ref document: US

Ref document number: 2010803829

Country of ref document: EP