WO2018049880A1 - 数据迁移方法及装置 - Google Patents

数据迁移方法及装置 Download PDF

Info

Publication number
WO2018049880A1
WO2018049880A1 PCT/CN2017/092095 CN2017092095W WO2018049880A1 WO 2018049880 A1 WO2018049880 A1 WO 2018049880A1 CN 2017092095 W CN2017092095 W CN 2017092095W WO 2018049880 A1 WO2018049880 A1 WO 2018049880A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
list
untransferred
display component
source terminal
Prior art date
Application number
PCT/CN2017/092095
Other languages
English (en)
French (fr)
Inventor
周璇
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018049880A1 publication Critical patent/WO2018049880A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a data migration method and apparatus.
  • a first aspect of the embodiments of the present invention provides a data migration method, including:
  • the file that has been transferred to the local storage is moved from the untransferred list to the transferred list and displayed in the transmitted list display component.
  • a second aspect of the embodiments of the present invention provides a data migration apparatus, including:
  • a file list obtaining module configured to obtain a file list on the migration source terminal after accessing the migration source terminal
  • the untransferred list display module is configured to add the file list to the untransferred list, and the untransferred list is displayed in a preset untransferred list display component, and the undisplayed list is set in the display area.
  • a retention status setting module configured to receive a first target file selected in the untransferred list display component, and set the first target file to a reserved state
  • a migration module configured to transmit, by the migration source terminal, the files that are not in the reserved state in the untransferred list to the local storage one by one;
  • the transmitted list display module is configured to move the file that has been transferred to the local storage from the untransmitted list to the transferred list for display in the transmitted list display component.
  • a third aspect of the embodiments of the present invention provides a terminal, where the system includes: a memory and a processor;
  • the memory is for storing instructions
  • a fourth aspect of the embodiments of the present invention provides a storage medium, where the storage medium stores a program, and the program is used to perform the steps described in any one of the first aspects of the embodiments of the present invention.
  • FIG. 1 is a schematic flow chart of a data migration method in an embodiment
  • FIG. 2 is a schematic structural diagram of a data migration apparatus in an embodiment
  • FIG. 3 is a schematic structural diagram of a computer device running the foregoing data migration method in an embodiment.
  • the data transfer on new and old mobile phones is generally realized by WIFI, Bluetooth or other data connection, while the amount of data on the old mobile phone is generally large, and the time taken for data transmission during the mobile phone moving process will be relatively long, and in the process
  • the above data connection such as WIFI or Bluetooth cannot be disconnected. Once the above data connection is disconnected, data may be accidentally damaged, and some data may not be used normally. That is to say, in the existing mobile phone moving process, the data migration is incomplete due to the long transmission time and the inability to disconnect the transmission connection in the middle.
  • a data migration method is provided.
  • the implementation of the method may depend on a computer program, which may be an application for data migration based on an Android system, such as a mobile phone moving application or a data backup migration and restoration application.
  • the computer system may be a terminal device such as a smart phone or a tablet computer that runs the above computer program.
  • the foregoing data migration method includes the following steps:
  • the execution terminal is a migration terminal, that is, in the embodiment, the data on the migration source terminal is transferred to the local migration terminal.
  • the data on the old mobile phone is copied to the new mobile phone.
  • the old mobile phone is the migration source terminal, and the new mobile phone is the migration terminal.
  • the communication connection between the migration terminal and the migration source terminal is first established.
  • the communication connection between the migration terminal and the migration source terminal may be Bluetooth, wifi, or near field communication. NFC) or wired connection, that is, the data on the migration source terminal can be migrated to the local migration terminal through the above communication connection.
  • the migration terminal after the communication connection between the migration terminal and the migration source terminal is established, the user can enter the preview interface of the data on the old mobile phone on the new mobile phone. Specifically, after the migration terminal accesses the migration source terminal, the migration terminal acquires a file list on the migration source terminal by using a communication connection with the migration source terminal, where the file list is a file list of all files that need to be migrated.
  • Step S104 Add the file list to the untransferred list, display the untransferred list in the untransferred list display component preset on the display interface, and set the untransferred list display component and the transmitted area in the display area. List display component.
  • an untransferred list display component and a transmitted list display component are displayed, wherein the untransmission list display component is displayed.
  • the lose list display component is used to display a list of files corresponding to files that have completed data migration.
  • the file list in the migration source terminal is obtained. Since the data migration has not started, all the files included in the file list are not yet.
  • the file for data migration, that is, the file list at this time is the untransferred list.
  • the untransferred list is then displayed in the untransferred list display component set on the display interface. It should be noted that, in this embodiment, since the data migration has not started yet, that is, the corresponding file that has completed the data migration is empty, that is, the corresponding transmitted list is empty, that is, The transferred list shown in the Transfer List Display component is empty.
  • Step S106 Receive a first target file selected in the untransferred list display component, and set the first target file to a reserved state.
  • Step S108 Transfer the files in the untransferred list that are not in the reserved state to the local storage by the migration source terminal one by one.
  • the files in the untransferred list displayed in the untransferred list display component are transferred to the migration terminal for storage one by one.
  • the user can operate on the files in the untransferred list displayed in the untransferred list display component, that is, to determine whether the files in the untransferred list are transmitted or not. Specifically, the user can operate on the file in the untransferred list display component, for example, select the file in the untransferred list, and then set the selected file as the file to be migrated. In this embodiment, the file to be selected is selected. Set to the reserved state. If the file in the untransferred list displayed in the untransferred list display component is not set to the reserved state, it is not in the reserved state, the file in the reserved state does not need to be migrated, and the file that is not in the reserved state needs to be performed. Migrated.
  • Step S110 Move the file that has been transmitted to the local storage from the untransferred list to the transmitted list, and display it in the transmitted list display component.
  • the method further includes: receiving a file deletion instruction input on the transferred list display component, acquiring a second target file corresponding to the file deletion instruction; and deleting the second target file.
  • further operations can be performed for files that have already been migrated, for example, files in the transferred list can also be deleted from the migration terminal local.
  • the user may input a corresponding file deletion instruction in the transferred list display component, and when the user inputs the file deletion instruction, the user also needs to determine the target file corresponding to the file deletion instruction, that is, the second target file.
  • the second target file corresponding to the file deletion instruction is acquired, and the file is deleted.
  • the deleting operation for the second object file may be performed immediately, or the deleting operation of the second object file may be performed after the transmission of all the files is completed.
  • the step of deleting the second object file further includes: marking the second object file as a to-be-deleted state, and hiding the file in the to-be-deleted state in the transmitted list display component; After the files in the untransferred list that are not in the reserved state are transmitted from the migration source terminal to the local storage one by one, the file in the to-be-deleted state is deleted.
  • the file corresponding to the file deletion instruction is deleted in the migration terminal because the file corresponding to the file deletion instruction is deleted, because the file is displayed in the transmitted list. It is not appropriate to display the file in , so the file is hidden in the transferred list display component.
  • the method further includes: receiving the delete revocation instruction input on the transmitted list display component, and acquiring And deleting the third target file that is marked as the to-be-deleted state corresponding to the deletion revocation instruction, removing the to-be-deleted state of the third target file, and restoring the third target file in the transmitted list display component.
  • the user can input a delete undo instruction for the file to cancel the previous file deletion instruction of the user.
  • the third object file corresponding to the deletion revocation instruction is acquired, and the third object file must be a file that has been marked as the to-be-deleted state.
  • the to-be-deleted state of the third target file is removed.
  • the migrated files do not include operating system files. This is because there may be inconsistencies in system configuration or settings between the migration terminal and the migration source terminal, in order to avoid incompatibility.
  • the problem is that the corresponding system configuration file already exists on the migration terminal, and no data migration is performed for the corresponding operating system file.
  • the displaying the untransferred list in the untransferred list display component preset on the display interface comprises: hiding the untransferred list in the untransferred list display component preset on the display interface Operating system files.
  • the operating system files are hidden, so that the migrated operating system files are not migrated when the data migration is performed one by one according to the files in the untransferred list.
  • a data migration device is also proposed, as shown in FIG. 2,
  • the device includes a file list obtaining module 102, an untransmitted list display module 104, a retention state setting module 106, a migration module 108, and a transmitted list display module 110, wherein:
  • the file list obtaining module 102 is configured to obtain, after accessing the migration source terminal, a file list on the migration source terminal, where the file list is a file list of all files that need to be migrated;
  • the untransferred list display module 104 is configured to add the file list to the untransferred list, and display the untransferred list in the untransferred list display component preset on the display interface, where the display area is set to be untransmitted a list display component and a transferred list display component;
  • a retention status setting module 106 configured to receive a first target file selected in the untransferred list display component, and set the first target file to a reserved state
  • the migration module 108 is configured to transmit, by the migration source terminal, the files that are not in the reserved state in the untransferred list to the local storage one by one;
  • the transmitted list display module 110 is configured to move the file that has been transferred to the local storage from the untransferred list to the transmitted list, and display the displayed in the transmitted list display component.
  • the foregoing apparatus further includes a file deletion module 112, configured to receive a file deletion instruction input on the transferred list display component, and obtain a second corresponding to the file deletion instruction.
  • Target file delete the second object file.
  • the file deletion module 112 is specifically configured to delete the second object file immediately when the second object file is deleted; or, after the transmission of all the files is completed, delete the second object file. .
  • the file deletion module 112 is configured to, when the second target file is deleted after the transmission of all the files is completed, specifically, to mark the second target file as In the to-be-deleted state, the file in the to-be-deleted state is hidden in the transferred list display component; and the non-reserved file in the untransferred list is transmitted to the local device by the migration source terminal one by one After the storage is finished, delete the file in the state to be deleted.
  • the untransmitted list display module 104 is further configured to hide an operating system file in the untransferred list in the untransferred list display component preset on the display interface.
  • the device further includes:
  • the communication connection establishing module 116 is configured to establish a communication connection with the migration source terminal, and the communication connection with the migration source terminal includes at least one of the following: Bluetooth, wifi, NFC, or wired connection.
  • the data migration method and the device After the data migration method and the device are used, after the data migration between the terminals is performed, after the connection between the migration terminal and the migration source terminal is established, the file list on the migration source terminal is obtained, and the migration source terminal and/or The untransferred list and the transmitted list are respectively displayed on the display interface on the migration terminal, and the user can select transmission or non-transmission for each file in the untransferred list, and after the data migration, only the transmission is marked as transmitted. File and skip files marked as not being transferred. That is to say, with the present invention, the flexibility of the user to operate the file during the data transmission process can be improved, and after the connection is disconnected, the user can continue to select the transmission to be transmitted in the next connection. document. By adopting the invention, the flexibility and sustainability of the data transmission process can be improved, and the user experience is improved.
  • FIG. 3 illustrates a terminal of a computer system running the above data migration method.
  • the computer system can be a terminal device such as a smart phone, a tablet computer, or a palmtop computer.
  • an external input interface 1001, a processor 1002, a memory 1003, and an output interface 1004 connected through a system bus may be included.
  • the external input interface 1001 can optionally include at least a network interface 10012.
  • the memory 1003 may include an external memory 10032 (eg, a hard disk, an optical disk, or a floppy disk, etc.) and an internal memory 10034.
  • the output interface 1004 can include at least a device such as a display 10042.
  • the operation of the method is based on a computer program whose program file is stored in the external memory 10032 of the aforementioned computer system, loaded into the internal memory 10034 at runtime, and then compiled into machine code and then passed. Executed into the processor 1002, so that the logical file list obtaining module 102, the untransmitted list display module 104, the retention state setting module 106, the migration module 108, and the transmitted list display are formed in the von Neumann system-based computer system.
  • the module 110, the file deletion module 112, and the delete revocation module 114 are examples of the files.
  • the input parameters are received by the external input interface 1001, and transferred to the buffer in the memory 1003, and then input to the processor 1002 for processing, and the processed result data is cached in the memory 1003. Subsequent processing, or passed to output interface 1004 for output.
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the terminal provided by the embodiment of the present invention includes but is not limited to piggybacking Or terminals of other operating systems, such as mobile phones.
  • Other terminals may also be used, such as a laptop or tablet or desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).
  • a terminal including a display and a touch-sensitive surface is described. It should be understood, however, that the terminal can include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.
  • Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • applications such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • the various applications that can be executed on the terminal can use at least one shared physical user interface device, such as a touch-sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed from one application to the next and/or adjusted and/or varied within the respective application.
  • the shared physical architecture of the terminal such as a touch-sensitive surface, can support a variety of applications with a user interface that is intuitive to the user.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种数据迁移方法和装置,其中方法包括:在接入迁移源终端后,获取所述迁移源终端上的文件列表(S102);将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有未传输列表展示组件和已传输列表展示组件(S104);接收在未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态(S106);将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储(S108)。

Description

数据迁移方法及装置
本发明要求2016年9月14日递交的发明名称为“数据迁移方法及装置”的申请号201610825677.8的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及终端技术领域,尤其涉及一种数据迁移方法及装置。
背景技术
随着终端技术的发展,智能手机、平板电脑等智能终端的更新换代速度是越来越快,用户在换手机时,不希望原来的旧手机上的所有数据都随着手机的更换而消失不见,希望将旧手机上的部分资料拷贝到新手机中去,因此,目前很多供应商或应用市场都提供了手机搬家的功能,即可以将整个旧手机上的数据、软件、设置等数据全部原封不动的拷贝到新手机上去,为用户在换机的过程中提供方便。
发明内容
本发明实施例第一方面提供一种数据迁移方法,包括:
在接入迁移源终端后,获取所述迁移源终端上的文件列表;
将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有未传输列表展示组件和已传输列表展示组件;
接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态;
将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传 输至本地存储;
将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
本发明实施例第二方面提供一种数据迁移装置,包括:
文件列表获取模块,用于在接入迁移源终端后,获取所述迁移源终端上的文件列表;
未传输列表展示模块,用于将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有未传输列表展示组件和已传输列表展示组件;
保留状态设置模块,用于接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态;
迁移模块,用于将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储;
已传输列表展示模块,用于将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
本发明实施例第三方面提供一种终端,其特征在于,所述系统包括:存储器和处理器;
所述存储器用于存储指令;
所述处理器用于执行所述指令以执行本发明实施例第一方面任一方法所述的步骤。
本发明实施例第四方面提供一种存储介质,所述存储介质存储有程序,所述程序用于执行本发明实施例第一方面任一方法所述的步骤。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
其中:
图1为一个实施例中一种数据迁移方法的流程示意图;
图2为一个实施例中一种数据迁移装置的结构示意图;
图3为一个实施例中运行前述数据迁移方法的计算机设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
新旧手机上的数据转移一般是通过WIFI、蓝牙或者其他数据连接实现的,而旧手机上的数据量一般较大,在手机搬家的过程中数据传输所耗费的时间将比较长,并且在此过程中不可断开上述WIFI或蓝牙等数据连接,一旦断开上述数据连接,则可能出现数据意外损坏的情况,造成部分数据无法正常使用。也就是说,在现有的手机搬家过程中数据迁移因为传输时间长且中途不可断开传输连接导致的容易出现的数据传输不完整的问题。
在本发明一实施例中提出了一种数据迁移方法,该方法的实现可依赖于计算机程序,该计算机程序可以是基于Android系统的数据迁移的应用程序,例如手机搬家应用或数据备份迁移还原应用。该计算机系统可以是运行上述计算机程序的例如智能手机、平板电脑等终端设备。
采用了本发明实施例所提供的数据迁移方法和装置之后,在终端之间进行数据迁移时,在迁移终端与迁移源终端之间的连接建立之后,获取迁移源终端上的文件列表,并在迁移源终端和/或迁移终端上的显示界面上的分别显示未传输列表和已传输列表,并且,用户可以针对未传输列表中的每一个文件选择传输或者不传输,并且在进行数据迁移之后,只传输标记为传输的文件而跳过 标记为不传输的文件。也就是说,采用本发明,可提高用户在进行数据传输的过程中对文件的传输与否的操作的灵活性,并且,在连接断开之后,用户可以在下一次连接中,继续选择需要进行传输的文件。采用本发明,可提高数据传输过程的灵活性和可持续性,提升用户体验。
具体的,如图1所示,上述数据迁移方法包括如下步骤:
步骤S102:在接入迁移源终端后,获取所述迁移源终端上的文件列表。
在本实施例中,执行终端为迁移终端,也就是说,在本实施例中,将迁移源终端上的数据转存至本地的迁移终端上,例如,在进行手机搬家的过程中,是将旧手机上数据原封不动的拷贝到新手机上去,旧手机即为迁移源终端,新手机即为迁移终端。
在进行数据迁移之前,首先需要建立迁移终端与迁移源终端之间的通信连接,例如,迁移终端与迁移源终端之间的通信连接可以是蓝牙、wifi、近距离无线通讯技术(near field communication,NFC)或者有线连接,也就是说,可以通过上述通信连接将迁移源终端上的数据迁移至本地的迁移终端上去。
例如,在一个实施例中,在作为迁移终端的新手机以及作为迁移源终端的旧手机中,分别进入到终端上安装的例如“手机搬家”等数据迁移应用中之后,可以建立新旧手机直接的通信连接。
需要说明的是,在本实施例中,在建立了迁移终端与迁移源终端之间的通信连接之后,用户可以在新手机上进入到旧手机上的数据的预览界面。具体,的,在迁移终端接入迁移源终端之后,迁移终端通过与迁移源终端之间的通信连接,获取迁移源终端上的文件列表,该文件列表即为需要迁移的所有文件的文件列表。
步骤S104:将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有未传输列表展示组件和已传输列表展示组件。
在本实施例中,在迁移终端和/或迁移源终端的例如“手机搬家”等数据迁移应用的操作界面中,展示了未传输列表展示组件和已传输列表展示组件,其中未传输列表展示组件用来展示还未进行数据迁移的文件的文件列表,已传 输列表展示组件用来展示已经完成数据迁移的文件对应的文件列表。
具体的,在本实施例中,在迁移终端接入迁移源终端之后,获取迁移源终端中的文件列表,因为还未开始进行数据的迁移,因此文件列表中包含的所有的文件均为还未进行数据迁移的文件,即此时文件列表即为未传输列表。然后在显示界面上设置的未传输列表展示组件中展示该未传输列表。需要说明的是,在本实施例中,因为还没有开始进行数据迁移,也就是说,对应的已经完成了数据迁移的文件为空,也就是说,对应的已传输列表为空,即在已传输列表展示组件中展示的已传输列表为空。
步骤S106:接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态。
步骤S108:将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储。
具体实施中,针对未传输列表展示组件中展示的未传输列表中的文件,会逐一的将未传输列表中的文件传输至迁移终端本地进行存储。
用户可以对未传输列表展示组件中展示的未传输列表中的文件进行操作,即确定未传输列表中的文件是进行传输或者不传输。具体的,用户可以在未传输列表展示组件中针对文件进行操作,例如,选中未传输列表中的文件,然后将选中的文件设置为需要进行迁移的文件,在本实施例中,即将选中的文件设置为保留状态。在未传输列表展示组件中展示的未传输列表中文件若没有被设置为保留状态,即为不处于保留状态,处于保留状态的文件是不需要进行迁移的,不处于保留状态的文件是需要进行迁移的。因此,针对未传输列表中的所有的待迁移的文件,需要一一进行判定,也就是说,针对未传输列表中的所有文件,按照列表,一一对未传输列表中的文件进行判定,若该文件被设置为保留状态,则在数据迁移的过程中跳过该文件,若该文件没有被设置为保留状态,则将该文件由迁移源终端传输至迁移终端本地进行存储。
步骤S110:将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
需要说明的是,若文件列表中的某文件,在其已经从迁移源终端传输至迁 移终端本地进行存储并且传输完毕之后,即在未传输列表中移除,并且,将其添加到已传输列表中去,并在显示界面上展示的已传输列表展示组件中展示更新后的已传输列表。
需要说明的是,在本实施例中,上述方法还包括:接收已传输列表展示组件上输入的文件删除指令,获取所述文件删除指令对应的第二目标文件;删除所述第二目标文件。
也就是说,针对已经完成迁移的文件还可以进行进一步的操作,例如,针对已传输列表中的文件还可以将其从迁移终端本地中进行删除。具体的,用户可以在已传输列表展示组件中输入相应的文件删除指令,并且用户在输入文件删除指令时,还需要确定该文件删除指令对应的目标文件,即第二目标文件。在检测到用户在已传输列表展示组件上输入例如文件删除指令之后,获取与该文件删除指令对应的第二目标文件,并且将该文件进行删除。进一步的,上述针对第二目标文件的删除操作,可以即刻执行,也可以在所有的文件的传输完毕之后再执行上述第二目标文件的删除操作。
具体的,上述删除所述第二目标文件的步骤还包括:将所述第二目标文件标记为待删除状态,在所述已传输列表展示组件中隐藏所述处于待删除状态的文件;在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之后,删除处于待删除状态的文件。
也就是说,在用户输入例如文件删除指令之后,需要将对应的第二目标文件进行删除,但是因为该删除操作并不是即刻进行,因此,需要首先将待删除的文件标记为待删除状态,并在相应删除操作被再次触发时,执行针对标记为待删除状态的文件的删除操作,在本实施例中,即在未传输列表中的文件逐一完成迁移之后执行上述删除操作。
需要说明的是,在本实施例中,针对上述文件删除指令对应的文件,因为其在迁移终端中被删除了,因此,在迁移终端中不存在该文件,因为,继续在已传输列表展示组件中展示该文件是不合适的,因此,在已传输列表展示组件中隐藏该文件。
为了避免用户的误操作,在用户针对某一文件进行了删除操作之后,还可 以撤销相应的删除操作。具体的,在相应的删除操作是在所有的文件迁移完成之后进行的,因此,在所有的文件迁移完成之前,相应的文件只是被标记为待删除状态,并未在迁移终端本地中被删除。
具体的,在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之前还包括:接收已传输列表展示组件上输入的删除撤销指令,获取所述删除撤销指令对应的被标记为待删除状态的第三目标文件,移除所述第三目标文件的待删除状态,在所述已传输列表展示组件中恢复展示所述第三目标文件。
在已传输列表展示组件中展示的已传输列表中的已经因为用户输入文件删除操作被标记为待删除状态的文件中,用户可以针对该文件输入删除撤销指令,用来撤销用户之前的文件删除指令。具体的,在检测到用户输入的删除撤销指令之后,获取与该删除撤销指令对应的第三目标文件,并且第三目标文件必须是已经被标记为待删除状态的文件。在第三目标文件确定之后,移除该第三目标文件的待删除状态。
进一步的,在本实施例中,因为相应的待删除状态已经被移除,因此,需要在已传输列表展示组件中展示的已传输列表中恢复第三目标文件的展示。
需要说明的是,一般在进行数据迁移的过程中,迁移的文件不包括操作系统文件,这是因为迁移终端与迁移源终端之间可能会存在系统配置或设置方面的不一致,为了避免不兼容的问题或者在迁移终端上已存在相应的系统配置文件,针对相应的操作系统文件不进行数据迁移。
具体的,在本实施例中,所述在显示界面上预设的未传输列表展示组件中展示所述未传输列表包括:在显示界面上预设的未传输列表展示组件中隐藏未传输列表中的操作系统文件。
具体实施中,在获取文件列表或者在展示未传输列表时,将其中的操作系统文件隐藏,从而使得在按照未传输列表中的文件逐一进行数据迁移时,不对已经隐藏的操作系统文件进行迁移操作。
此外,在一个实施例中,还提出了一种数据迁移装置,如图2所示,上述 装置包括文件列表获取模块102、未传输列表展示模块104、保留状态设置模块106、迁移模块108、已传输列表展示模块110,其中:
文件列表获取模块102,用于在接入迁移源终端后,获取所述迁移源终端上的文件列表,所述文件列表为需要迁移的所有文件的文件列表;
未传输列表展示模块104,用于将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有未传输列表展示组件和已传输列表展示组件;
保留状态设置模块106,用于接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态;
迁移模块108,用于将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储;
已传输列表展示模块110,用于将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
可选的,在一个实施例中,如图2所示,上述装置还包括文件删除模块112,用于接收已传输列表展示组件上输入的文件删除指令,获取所述文件删除指令对应的第二目标文件;删除所述第二目标文件。
所述文件删除模块112,在用于删除所述第二目标文件时,具体用于即刻删除所述第二目标文件;或者,在所有的文件的传输完毕之后,再删除所述第二目标文件。
可选的,在一个实施例中,文件删除模块112,在用于在所有的文件的传输完毕之后,再删除所述第二目标文件时,具体用于,将所述第二目标文件标记为待删除状态,在所述已传输列表展示组件中隐藏所述处于待删除状态的文件;在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之后,删除处于待删除状态的文件。
可选的,在一个实施例中,如图2所示,上述装置还包括删除撤销模块114,用于接收已传输列表展示组件上输入的删除撤销指令,获取所述删除撤销指令对应的被标记为待删除状态的第三目标文件,移除所述第三目标文件的待删除状态,在所述已传输列表展示组件中恢复展示所述第三目标文件。
可选的,在一个实施例中,未传输列表展示模块104还用于在显示界面上预设的未传输列表展示组件中隐藏未传输列表中的操作系统文件。
可选的,在一个实施例中,所述装置还包括:
通讯连接建立模块116,用于建立与迁移源终端之间的通信连接,所述与迁移源终端之间的通信连接包括以下至少一种:蓝牙、wifi、NFC或者有线连接。
采用了上述数据迁移方法和装置之后,在终端之间进行数据迁移时,在迁移终端与迁移源终端之间的连接建立之后,获取迁移源终端上的文件列表,并在迁移源终端和/或迁移终端上的显示界面上的分别显示未传输列表和已传输列表,并且,用户可以针对未传输列表中的每一个文件选择传输或者不传输,并且在进行数据迁移之后,只传输标记为传输的文件而跳过标记为不传输的文件。也就是说,采用本发明,可提高用户在进行数据传输的过程中对文件的传输与否的操作的灵活性,并且,在连接断开之后,用户可以在下一次连接中,继续选择需要进行传输的文件。采用本发明,可提高数据传输过程的灵活性和可持续性,提升用户体验。
在一个实施例中,如图3所示,图3展示了一种运行上述数据迁移方法的计算机系统的终端。该计算机系统可以是智能手机、平板电脑、掌上电脑等终端设备。具体的,可包括通过系统总线连接的外部输入接口1001、处理器1002、存储器1003和输出接口1004。其中,外部输入接口1001可选的可至少包括网络接口10012。存储器1003可包括外存储器10032(例如硬盘、光盘或软盘等)和内存储器10034。输出接口1004可至少包括显示屏10042等设备。
在本实施例中,本方法的运行基于计算机程序,该计算机程序的程序文件存储于前述计算机系统的外存储器10032中,在运行时被加载到内存储器10034中,然后被编译为机器码之后传递至处理器1002中执行,从而使得基于冯诺依曼体系的计算机系统中形成逻辑上的文件列表获取模块102、未传输列表展示模块104、保留状态设置模块106、迁移模块108、已传输列表展示 模块110、文件删除模块112以及删除撤销模块114。且在上述数据迁移方法执行过程中,输入的参数均通过外部输入接口1001接收,并传递至存储器1003中缓存,然后输入到处理器1002中进行处理,处理的结果数据或缓存于存储器1003中进行后续地处理,或被传递至输出接口1004进行输出。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例终端中的单元可以根据实际需要进行合并、划分和删减。本发明实施例提供的终端包括但不限于搭载
Figure PCTCN2017092095-appb-000001
或者其它操作系统的终端,诸如移动电话。也可以是其它终端,诸如具有触敏表面(例如,触摸屏显示器和/或触控板)的膝上型计算机或平板电脑或台式计算机。
在下面的讨论中,介绍了一种包括显示器和触敏表面的终端。然而应当理解,终端可以包括一个或多个其他物理用户接口设备,诸如物理键盘、鼠标和/或操作杆。
终端通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。
可在终端上执行的各种应用程序可使用至少一个共用的物理用户接口设备,诸如触敏表面。触敏表面的一种或多种功能以及显示在终端上的相应信息可从一种应用程序调整和/或变化至下一种应用程序和/或在相应应用程序内被调整和/或变化。这样,终端的共用物理架构(诸如触敏表面)可利用对于用户而言直观清楚的用户界面来支持各种应用程序。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (20)

  1. 一种数据迁移方法,其特征在于,包括:
    在接入迁移源终端后,获取所述迁移源终端上的文件列表;
    将所述文件列表添加到未传输列表中,在显示界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有所述未传输列表展示组件和已传输列表展示组件;
    接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态;
    将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储。
  2. 根据权利要求1所述数据迁移方法,其特征在于,所述方法还包括:
    将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
  3. 根据权利要求1所述数据迁移方法,其特征在于,所述文件列表为需要迁移的所有文件的文件列表。
  4. 根据权利要求1所述数据迁移方法,其特征在于,所述在接入迁移源终端后,获取所述迁移源终端上的文件列表之前,所述方法还包括:
    建立与迁移源终端之间的通信连接,所述与迁移源终端之间的通信连接包括以下至少一种:蓝牙、wifi、NFC或者有线连接。
  5. 根据权利要求2所述数据迁移方法,其特征在于,所述方法还包括:
    接收已传输列表展示组件上输入的文件删除指令,获取所述文件删除指令对应的第二目标文件;
    删除所述第二目标文件。
  6. 根据权利要求5所述数据迁移方法,其特征在于,所述删除所述第二目标文件,包括:
    即刻删除所述第二目标文件;或者,
    在所有的文件的传输完毕之后,再删除所述第二目标文件。
  7. 根据权利要求5所述的数据迁移方法,其特征在于,所述在所有的文件的传输完毕之后,再删除所述第二目标文件,包括:
    将所述第二目标文件标记为待删除状态,在所述已传输列表展示组件中隐藏所述处于待删除状态的文件;
    在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之后,删除处于待删除状态的文件。
  8. 根据权利要求7所述的数据迁移方法,其特征在于,在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之前,还包括:
    接收已传输列表展示组件上输入的删除撤销指令,获取所述删除撤销指令对应的被标记为待删除状态的第三目标文件,移除所述第三目标文件的待删除状态,在所述已传输列表展示组件中恢复展示所述第三目标文件。
  9. 根据权利要求2所述的数据迁移方法,其特征在于,所述在显示界面上预设的未传输列表展示组件中展示所述未传输列表包括:
    在显示界面上预设的未传输列表展示组件中隐藏未传输列表中的操作系统文件。
  10. 一种数据迁移装置,其特征在于,包括:
    文件列表获取模块,用于在接入迁移源终端后,获取所述迁移源终端上的文件列表;
    未传输列表展示模块,用于将所述文件列表添加到未传输列表中,在显示 界面上预设的未传输列表展示组件中展示所述未传输列表,所述显示区域中设置有所述未传输列表展示组件和已传输列表展示组件;
    保留状态设置模块,用于接收在所述未传输列表展示组件中选中的第一目标文件,将所述第一目标文件设置为保留状态;
    迁移模块,用于将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储。
  11. 根据权利要求10所述的数据迁移装置,其特征在于,所述装置还包括:
    已传输列表展示模块,用于将所述已传输至本地存储的文件由所述未传输列表移动到已传输列表中,在所述已传输列表展示组件中展示。
  12. 根据权利要求10所述的数据迁移装置,其特征在于,所述文件列表为需要迁移的所有文件的文件列表。
  13. 根据权利要求10所述的数据迁移装置,其特征在于,所述装置还包括:
    通讯连接建立模块,用于建立与迁移源终端之间的通信连接,所述与迁移源终端之间的通信连接包括以下至少一种:蓝牙、wifi、NFC或者有线连接。
  14. 根据权利要求11所述的数据迁移装置,其特征在于,所述装置还包括文件删除模块,用于接收已传输列表展示组件上输入的文件删除指令,获取所述文件删除指令对应的第二目标文件;删除所述第二目标文件。
  15. 根据权利要求14所述的数据迁移装置,其特征在于,所述文件删除模块,在用于删除所述第二目标文件时,具体用于即刻删除所述第二目标文件;或者,在所有的文件的传输完毕之后,再删除所述第二目标文件。
  16. 根据权利要求14所述的数据迁移装置,其特征在于,所述文件删除模块,在用于在所有的文件的传输完毕之后,再删除所述第二目标文件时,具体用于将所述第二目标文件标记为待删除状态,在所述已传输列表展示组件中隐藏所述处于待删除状态的文件;在所述将所述未传输列表中的不处于保留状态的文件逐一由所述迁移源终端传输至本地存储结束之后,删除处于待删除状态的文件。
  17. 根据权利要求16所述的数据迁移装置,其特征在于,所述装置还包括删除撤销模块,用于接收已传输列表展示组件上输入的删除撤销指令,获取所述删除撤销指令对应的被标记为待删除状态的第三目标文件,移除所述第三目标文件的待删除状态,在所述已传输列表展示组件中恢复展示所述第三目标文件。
  18. 根据权利要求11所述的数据迁移装置,其特征在于,所述未传输列表展示模块还用于在显示界面上预设的未传输列表展示组件中隐藏未传输列表中的操作系统文件。
  19. 一种终端,其特征在于,所述系统包括:存储器和处理器;
    所述存储器用于存储指令;
    所述处理器用于执行所述指令以执行权利要求1-9任一项所述的方法。
  20. 一种存储介质,所述存储介质存储有程序,所述程序用于执行权利要求1-9任一项所述的方法。
PCT/CN2017/092095 2016-09-14 2017-07-06 数据迁移方法及装置 WO2018049880A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610825677.8 2016-09-14
CN201610825677.8A CN106775445B (zh) 2016-09-14 2016-09-14 数据迁移方法及装置

Publications (1)

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

Family

ID=58972155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092095 WO2018049880A1 (zh) 2016-09-14 2017-07-06 数据迁移方法及装置

Country Status (2)

Country Link
CN (1) CN106775445B (zh)
WO (1) WO2018049880A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489645A (zh) * 2021-11-05 2023-07-25 荣耀终端有限公司 数据传输的方法及电子设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775445B (zh) * 2016-09-14 2019-12-06 Oppo广东移动通信有限公司 数据迁移方法及装置
CN108920658B (zh) * 2018-06-29 2022-03-29 北京金山安全软件有限公司 一种移动设备桌面搬家方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957751A (zh) * 2012-11-27 2013-03-06 北京金山云科技有限公司 终端设备与网络服务器间文件传输方法、装置及终端设备
CN103124276A (zh) * 2011-11-18 2013-05-29 中国移动通信集团公司 一种扩展通信终端存储空间的方法及通信终端
US20130268923A1 (en) * 2012-04-04 2013-10-10 Harman Becker Automotive Systems Gmbh Multiple domain embedded system
CN104023410A (zh) * 2014-05-14 2014-09-03 北京奇虎科技有限公司 一种在无线终端间安全转移数据的方法和装置
CN104156430A (zh) * 2014-08-11 2014-11-19 四川效率源信息安全技术有限责任公司 一种快速提取安卓手机数据的装置和方法
CN106775445A (zh) * 2016-09-14 2017-05-31 广东欧珀移动通信有限公司 数据迁移方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007072813A (ja) * 2005-09-07 2007-03-22 Hitachi Ltd ストレージシステム、ファイル移動方法、及びコンピュータプログラム
KR101197146B1 (ko) * 2007-08-30 2012-11-08 삼성전자주식회사 화상형성장치 및 시스템과, 이 장치의 파일 관리방법
CN105491113B (zh) * 2015-11-25 2019-03-12 小米科技有限责任公司 迁移方法、装置及终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103124276A (zh) * 2011-11-18 2013-05-29 中国移动通信集团公司 一种扩展通信终端存储空间的方法及通信终端
US20130268923A1 (en) * 2012-04-04 2013-10-10 Harman Becker Automotive Systems Gmbh Multiple domain embedded system
CN102957751A (zh) * 2012-11-27 2013-03-06 北京金山云科技有限公司 终端设备与网络服务器间文件传输方法、装置及终端设备
CN104023410A (zh) * 2014-05-14 2014-09-03 北京奇虎科技有限公司 一种在无线终端间安全转移数据的方法和装置
CN104156430A (zh) * 2014-08-11 2014-11-19 四川效率源信息安全技术有限责任公司 一种快速提取安卓手机数据的装置和方法
CN106775445A (zh) * 2016-09-14 2017-05-31 广东欧珀移动通信有限公司 数据迁移方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116489645A (zh) * 2021-11-05 2023-07-25 荣耀终端有限公司 数据传输的方法及电子设备

Also Published As

Publication number Publication date
CN106775445A (zh) 2017-05-31
CN106775445B (zh) 2019-12-06

Similar Documents

Publication Publication Date Title
WO2018049888A1 (zh) 应用数据的迁移方法及装置
US10848557B2 (en) Server-side selective synchronization
JP6700254B2 (ja) 通話中のリアルタイム共有
AU2014284461B2 (en) Syncing content clipboard
JP6198964B2 (ja) ファイルレベル・コメンティング
JP6634188B1 (ja) ユーザインタフェース拡張器
WO2019091017A1 (zh) 动态页面中的埋点处理方法、装置和计算机设备
US10430047B2 (en) Managing content on an electronic device
US11232066B2 (en) Method for data migration and terminal
CN110710169A (zh) 与动态扩展应用程序交互的即时消息系统
WO2013159447A1 (zh) 一种对桌面图标进行批量管理的方法及数字移动设备
JP6086124B2 (ja) 情報処理端末、同期制御方法および同期制御プログラム
JP2013529810A (ja) 共有データコレクション
CN108509207A (zh) Web应用程序的跨系统安装
WO2019196744A1 (zh) 一种交互方法及装置
WO2018049880A1 (zh) 数据迁移方法及装置
WO2018209465A1 (zh) 一种网页访问控制方法和网关设备
CN115079872B (zh) 一种文档处理方法、装置、设备和介质
US20240086360A1 (en) File saving method and electronic device
US11282008B2 (en) Managing projects in a content management system
WO2018049883A1 (zh) 文件操作方法及装置
CN106599323A (zh) 在分布式文件系统中实现分布式管道的方法和装置
US9836469B2 (en) Techniques for processing digital assets for editing in a digital asset editing computer program
CN106547485B (zh) 数据迁移方法及装置
CN110795389A (zh) 基于存储快照的拷贝方法、用户设备、存储介质及装置

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17850083

Country of ref document: EP

Kind code of ref document: A1