CN109450997B - Data cross-terminal migration method and device, computer equipment and storage medium - Google Patents

Data cross-terminal migration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109450997B
CN109450997B CN201811256877.1A CN201811256877A CN109450997B CN 109450997 B CN109450997 B CN 109450997B CN 201811256877 A CN201811256877 A CN 201811256877A CN 109450997 B CN109450997 B CN 109450997B
Authority
CN
China
Prior art keywords
information
data
user terminal
user
migrated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811256877.1A
Other languages
Chinese (zh)
Other versions
CN109450997A (en
Inventor
尹彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811256877.1A priority Critical patent/CN109450997B/en
Publication of CN109450997A publication Critical patent/CN109450997A/en
Application granted granted Critical
Publication of CN109450997B publication Critical patent/CN109450997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information

Abstract

The invention discloses a data cross-terminal migration method and device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of monitoring a first user terminal by sending monitoring chain establishment information to the first user terminal, generating data updating information by acquiring data information to be migrated in migration request information and sending the data updating information to a second user terminal, realizing cross-terminal migration of data information by monitoring replication request information of the second user terminal and sending target binary data in a storage space to the second user terminal, and sending preset data conversion information to the second user terminal to convert the target binary data into the target data information. By adopting the data cross-terminal migration method, the migration efficiency of the data information can be greatly improved, and the migration safety of the data information is improved.

Description

Data cross-terminal migration method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for migrating data across terminals, a computer device, and a storage medium.
Background
When data information is migrated from one terminal device to another terminal device, the data information needs to be copied and stored in a storage medium through a storage medium such as a network disk or a usb disk, and the data information stored in the storage medium needs to be migrated to another terminal device, so as to implement migration of the data information. However, since both the writing speed and the reading speed of the storage medium have upper limits, the data migration efficiency of the existing data information during the cross-terminal migration is not high, and a computer virus may exist in the storage medium, thereby affecting the security of the data information migration. Therefore, the existing data information migration method has the problems of low data migration efficiency and potential safety hazard.
Disclosure of Invention
The embodiment of the invention provides a method and a device for data cross-terminal migration, computer equipment and a storage medium, and aims to solve the problems that in the prior art, data migration efficiency is low and potential safety hazards exist when data information is migrated across terminals.
In a first aspect, an embodiment of the present invention provides a method for migrating data across terminals, where the method includes:
if the login success information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal;
if it is monitored that the first user terminal sends migration request information, storing data information to be migrated in the migration request information into a preset storage space in a binary data mode;
generating corresponding data updating information according to the data information to be migrated in the migration request information;
sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged in by the target user account in the migration request information;
if the second user terminal sends the replication request information, sending target binary data corresponding to the replication request information in the storage space to the second user terminal;
and sending the preset data conversion information to the second user terminal to convert the target binary data into target data information.
In a second aspect, an embodiment of the present invention provides a data cross-terminal migration apparatus, including:
the monitoring information sending unit is used for sending monitoring chain establishment information to the first user terminal if successful login information of a user in the first user terminal is received;
the data information storage unit is used for storing the data information to be migrated in the migration request information into a preset storage space in a binary data mode if the migration request information sent by the first user terminal is monitored;
the data updating information generating unit is used for generating corresponding data updating information according to the data information to be migrated in the migration request information;
the information sending unit is used for sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged in by the target user account in the migration request information;
the binary data sending unit is used for sending target binary data corresponding to the replication request information in the storage space to the second user terminal if the second user terminal is monitored to send the replication request information;
and the binary data conversion unit is used for sending preset data conversion information to the second user terminal so as to convert the target binary data into target data information.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the data cross-terminal migration method described in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method for migrating data across terminals according to the first aspect.
The embodiment of the invention provides a method and a device for data cross-terminal migration, computer equipment and a storage medium. The monitoring chain establishment information is sent to the first user terminal to monitor the first user terminal, the data updating information is generated by acquiring the data information to be migrated in the migration request information and is sent to the second user terminal, the data information is migrated across terminals by monitoring the replication request information of the second user terminal and sending the target binary data in the storage space to the second user terminal, the migration efficiency of the data information can be greatly improved, and the migration safety of the data information is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 4 is another sub-flow diagram of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 5 is another sub-flow diagram of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 6 is another schematic flow chart of a data cross-terminal migration method according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a data cross-terminal migration apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a sub-unit of a data cross-terminal migration apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of another sub-unit of a data cross-terminal migration apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of another sub-unit of a device for migrating data across terminals according to an embodiment of the present invention;
FIG. 11 is another schematic block diagram of a device for migrating data across terminals according to an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data cross-terminal migration method according to an embodiment of the present invention; fig. 2 is a schematic view of an application scenario of the data cross-terminal migration method according to the embodiment of the present invention. The data cross-terminal migration method is applied to the management server 10, and is executed by application software installed in the management server 10, where the management server 10 is an enterprise terminal for executing the data cross-terminal migration method to perform cross-terminal migration on data information, and the first user terminal 20 and the second user terminal 30 are both terminal devices with a data information storage function, such as a mobile phone, a tablet computer, a desktop computer, a notebook computer, and the like.
As shown in fig. 1, the method includes steps S101 to S106.
S101, if successful login information of a user at a first user terminal is received, monitoring chain establishment information is sent to the first user terminal.
If the successful login information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal so as to establish the monitoring chain in the first user terminal to monitor the clipboard in the first user terminal, and various operations of the user in the first user terminal are monitored in real time through the established monitoring chain. The listening chain establishment information is information used for establishing a listening chain and sent by the management server. Before the data to be migrated is migrated, the first user terminal and the second user terminal need to be simultaneously connected with the management server through a network, so that data information can be migrated between the management server and the first user terminal and between the management server and the second user terminal.
The monitoring chain establishment information includes API (application programming interface) call information, the monitoring chain is a program script used for monitoring the operation of the user in the user terminal, and after receiving the monitoring chain establishment information, the user terminal can establish the monitoring chain by calling the API of SetClipboardViewer in the windows system. For example, the snoop chain may snoop migration request information that issues data to be migrated.
S102, if it is monitored that the first user terminal sends the migration request information, storing the data information to be migrated in the migration request information into a preset storage space in a binary data mode.
And if it is monitored that the first user sends the migration request information through the first user terminal, storing the data information to be migrated in the migration request information into a storage space preset by the management server in a binary data mode. The migration request information is request information for migrating the data information to be migrated, which is obtained by monitoring the monitoring chain in the first user terminal, and the migration request information includes the data information to be migrated. The storage space is a space allocated in the management server for storing the data information to be migrated, the management server includes a storage medium for storing the data information, and the storage medium can be allocated with a corresponding space as a storage space for storing the data information to be migrated. The migration request information includes target user accounts to which the data information needs to be migrated, that is, the data information to be migrated can be migrated to a user terminal to which the corresponding target user account logs in according to the target user accounts in the migration request information, and the target user accounts may be one or more, where the target user accounts may only include a user account of a first user terminal user itself, or only user accounts of other users, that is, the data information to be migrated may be migrated between a plurality of user terminals owned by one user, or may be migrated between user terminals of a plurality of different users.
Specifically, the user selects corresponding data information in the first user terminal as data information to be migrated, the operation that the user presses the Ctrl + c key can be monitored by the monitoring chain and generates migration request information including the data information to be migrated, and the first user terminal sends the generated migration request information to the management server.
In one embodiment, as shown in fig. 3, step S102 includes sub-steps S1021 and S1022.
S1021, sending preset data conversion information to the first user terminal to convert the data information to be migrated into binary data.
And sending preset data conversion information to the first user terminal to convert the to-be-migrated data information into binary data, wherein the to-be-migrated data information comprises one or more files, and each piece of binary data corresponds to the file name of one file in the to-be-migrated data information. In order to improve the migration efficiency of the data information between the first user terminal and the management server and improve the migration security of the data information, the preset data conversion information can be sent to the first user terminal, and the first user terminal converts the data information to be migrated into binary data according to the data conversion information, namely, serializes the data information to be migrated. Binary data is a number system widely used in computing technology, and binary data is data information represented by two numbers, namely 0 and 1. The data information to be migrated is converted into the binary data, so that the migration efficiency of the data information can be improved, and the safety of the data information in the migration process is ensured.
And S1022, receiving the binary data through a preset transmission control protocol and storing the binary data in a preset storage space.
And receiving the binary data through a preset transmission control protocol and storing the binary data in a storage space preset by a management server. The transmission control protocol is also a TCP transmission protocol, which is a connection-oriented, reliable transport layer communication protocol based on byte streams.
The first user terminal sends the binary data obtained through conversion to the management server through the transmission control protocol, namely, the binary data is received through the preset transmission control protocol, and then the binary data is stored in the storage space preset by the management server, so that the reliability of data information in the migration process can be greatly improved.
S103, generating corresponding data updating information according to the data information to be migrated in the migration request information.
And generating corresponding data updating information according to the data information to be migrated in the migration request information. After the user sends the data information to be migrated to the management server through the first user terminal, that is, updates the data information stored in the management server, the user needs to generate corresponding data update information according to the data information to be migrated that is stored in the management server. Specifically, the data information to be migrated includes a file name, and generates corresponding data update information according to the file name in the data information to be migrated in combination with the current time. The user can acquire the file name of the migrated data information and the time information of the update of the data information by looking up the data update information. In addition, the data information to be migrated may also include information of other aspects of the data information, such as a file format, a file migration operator, and the like, and the data update information also includes information of a file format, a file migration operator, and the like.
The data updating information is information for reminding a corresponding user, and each piece of migration request information generates one piece of data updating information correspondingly. The data information to be migrated in the migration request information may be duplicated with the file name of the file stored in the management server, and if the data information to be migrated is duplicated with the file name of the stored file, the original stored file is overwritten to update the stored file.
For example, if the file name of the data information to be migrated in the migration request information is "123. jpg", and the current time is 03, 20, 15:30:01 in 2018, the correspondingly generated data update information is: the file with the file name "123. jpg" has been updated in 2018 on 03/20/15: 30: 01.
And S104, sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged in by the target user account in the migration request information.
And sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged by the target user account in the migration request information. The migration request information comprises a target user account needing to be migrated, and if the target user account in the migration request information only comprises a user account of a first user terminal user, the data information to be migrated is migrated to a second user terminal logged by the user; and if the target user account in the migration request information only contains user accounts of other users, migrating the data information to be migrated to a second user terminal logged by the other users. The monitoring chain establishment information is sent to the second user terminal, and various operations of the user in the second user terminal are monitored in real time through the established monitoring chain, wherein the monitoring chain establishment information is information which is sent by the management server and used for establishing the monitoring chain.
In one embodiment, as shown in fig. 4, step S104 includes sub-steps S1041 and S1042.
S1041, according to the login success information of the target user account contained in the migration request information, obtaining the network address information of the second user terminal logged in by the user account.
And acquiring the network address information of a second user terminal logged by the user account according to the login success information of the target user account contained in the migration request information. Specifically, after the user terminal successfully logs in, each user sends login success information to the management server, wherein the login success information includes network address information of the user terminal where the user logs in. The management server obtains the network address information of the user terminal logged in by the user account, namely the network address information of the second user terminal, by obtaining the login success information of the target user account contained in the migration request information.
The user terminal is identified through the network address information instead of the user account, so that the data information to be migrated can be migrated among a plurality of user terminals owned by one user.
For example, the network address information of the user terminal logged in by a certain user account is: 113, xx.105.01, the user terminal corresponding to the network address information is taken as the second user terminal.
S1042, sending the generated data update information and the monitoring link establishment information to the second user terminal according to the obtained network address information.
And sending the generated data updating information and the monitoring chain establishing information to the second user terminal according to the obtained network address information. Each piece of network address information corresponds to one user terminal, so that the generated data updating information and monitoring chain establishing information can be sent to the second user terminal according to the network address information so as to remind a user using the second user terminal and monitor the operation of the user at the second user terminal, and after the second user terminal receives the data updating information, the user of the second user terminal can download corresponding data information in the data updating information through specific operation.
And S105, if the second user terminal sends the replication request information, sending the target binary data corresponding to the replication request information in the storage space to the second user terminal.
And if the second user terminal sends the copy request information, sending the target binary data corresponding to the copy request information in the storage space to the second user terminal. The duplication request information is request information for duplicating and downloading corresponding data information in the data update information, which is obtained by monitoring in the monitoring chain in the second user terminal, and the duplication request information includes a file name to be duplicated and downloaded. Specifically, the second user terminal receives the data update information, the user of the second user terminal can copy and download corresponding data information in the data update information, the user can be monitored by the monitoring chain and generate copy request information by pressing the Ctrl + v key, and the second user terminal sends the generated copy request information to the management server.
In an embodiment, as shown in fig. 5, step S105 includes sub-steps S1051 and S1052.
S1051, match the copy request information with the binary data in the storage space to obtain the target binary data matched with the copy request information.
And matching the replication request information with binary data in a storage space in the management server to obtain target binary data matched with the replication request information. The management server stores multiple binary data in the storage space, each binary data corresponds to the file name of a file in the data information to be migrated, and the replication request information comprises the file name to be replicated and downloaded. The replication request information comprises file names of one or more files, and the target binary data matched with the replication request information can be obtained by matching the file names contained in the replication request information with the file names corresponding to the binary data stored in the storage space.
And S1052, sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol.
And sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol. The transmission control protocol is also a TCP transmission protocol, and is a connection-oriented, reliable transport layer communication protocol based on byte streams. The target binary data is migrated through the transmission control protocol, so that the reliability of data information in the migration process can be greatly improved.
And S106, sending the preset data conversion information to a second user terminal to convert the target binary data into target data information.
And sending the preset data conversion information to the second user terminal to convert the target binary data into target data information. In order to improve the migration efficiency of the data information and improve the migration security of the data information, the data information is migrated between the second user terminal and the management server in the form of binary data. The target binary data cannot be recognized by the second user terminal, so that the second user terminal needs to convert the target binary data into target data information through preset data conversion information, that is, deserialize the target binary data.
Binary data is a number system widely used in computing technology, and binary data is data information represented by two numbers, namely 0 and 1. The data information to be migrated is converted into the binary data, so that the migration efficiency of the data information can be improved, the safety of the data information in the migration process is ensured, and the binary data can be converted into the data information which can be recognized by the second user terminal through the preset data conversion information.
In one embodiment, as shown in fig. 6, step S107 is further included after step S106.
S107, sending a prompt message that the data information to be migrated is successfully migrated to the first user terminal.
The management server sends out prompt information that the data information to be migrated is successfully migrated to the first user terminal, so that a user using the first user terminal can be prompted.
The monitoring chain establishment information is sent to the first user terminal to monitor the first user terminal, the data updating information is generated by acquiring the data information to be migrated in the migration request information and is sent to the second user terminal, the data information is migrated across terminals by monitoring the replication request information of the second user terminal and sending the target binary data in the storage space to the second user terminal, the migration efficiency of the data information can be greatly improved, and the migration safety of the data information is improved.
The embodiment of the invention also provides a data cross-terminal migration device, which is used for executing any embodiment of the data cross-terminal migration method. Specifically, referring to fig. 7, fig. 7 is a schematic block diagram of a data cross-terminal migration apparatus according to an embodiment of the present invention. The data may be configured in the management server 10 across the terminal migration apparatuses 100.
As shown in fig. 7, the data cross-terminal migration apparatus 100 includes a listening information transmitting unit 101, a data information holding unit 102, a data update information generating unit 103, an information transmitting unit 104, a binary data transmitting unit 105, and a binary data converting unit 106.
A monitoring information sending unit 101, configured to send monitoring link establishment information to the first user terminal if successful login information of the user at the first user terminal is received.
If the successful login information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal so as to establish the monitoring chain in the first user terminal to monitor the clipboard in the first user terminal, and various operations of the user in the first user terminal are monitored in real time through the established monitoring chain. The listening chain establishment information is information used for establishing a listening chain and sent by the management server. Before the migration operation is performed on the data to be migrated, the first user terminal and the second user terminal need to be connected with the management server through a network at the same time, so that the data information can be migrated between the management server and the first user terminal and between the management server and the second user terminal.
The monitoring chain establishment information includes API (application programming interface) call information, the monitoring chain is a program script used for monitoring the operation of the user in the user terminal, and after receiving the monitoring chain establishment information, the user terminal can establish the monitoring chain by calling the API of SetClipboardViewer in the windows system.
The data information saving unit 102 is configured to, if it is monitored that the first user terminal sends the migration request information, save the to-be-migrated data information in the migration request information to a preset storage space in a binary data manner.
And if it is monitored that the first user sends the migration request information through the first user terminal, storing the data information to be migrated in the migration request information into a storage space preset by the management server in a binary data mode. The migration request information is request information for migrating the data information to be migrated, which is obtained by monitoring the monitoring chain in the first user terminal, and the migration request information includes the data information to be migrated. The storage space is a space allocated in the management server for storing the data information to be migrated, the management server includes a storage medium for storing the data information, and the storage medium can be allocated with a corresponding space as a storage space for storing the data information to be migrated. The migration request information includes a target user account to which the data information needs to be migrated, that is, the data information to be migrated can be migrated to a user terminal to which a corresponding target user account logs in according to the target user account in the migration request information, where the target user account may be one or more, where the target user account may only include a user account of the first user terminal user itself, or may only include user accounts of other users, that is, the data information to be migrated may be migrated between multiple user terminals owned by one user, or may be migrated between user terminals of multiple different users.
Specifically, the user selects corresponding data information in the first user terminal as data information to be migrated, the operation that the user presses the Ctrl + c key can be monitored by the monitoring chain and generates migration request information including the data information to be migrated, and the first user terminal sends the generated migration request information to the management server.
In another embodiment of the present invention, as shown in fig. 8, the data information saving unit 102 includes sub-units: a data information conversion unit 1021 and a data information transmission unit 1022.
The data information conversion unit 1021 is configured to send preset data conversion information to the first user terminal to convert the data information to be migrated into binary data.
And sending preset data conversion information to the first user terminal to convert the to-be-migrated data information into binary data, wherein the to-be-migrated data information comprises one or more files, and each piece of binary data corresponds to the file name of one file in the to-be-migrated data information. In order to improve the migration efficiency of the data information between the first user terminal and the management server and improve the migration security of the data information, the preset data conversion information can be sent to the first user terminal, and the first user terminal converts the data information to be migrated into binary data according to the data conversion information, namely, serializes the data information to be migrated. Binary is a number system widely used in computing technology, and binary data is data information represented by two numbers, namely 0 and 1. The data information to be migrated is converted into the binary data, so that the migration efficiency of the data information can be improved, and the safety of the data information in the migration process is ensured.
A data information transmission unit 1022, configured to receive the binary data through a preset transmission control protocol and store the binary data in a preset storage space.
And receiving the binary data through a preset transmission control protocol and storing the binary data in a storage space preset by a management server. The transmission control protocol is also a TCP transmission protocol, and is a connection-oriented, reliable transport layer communication protocol based on byte streams.
The first user terminal sends the binary data obtained through conversion to the management server through the transmission control protocol, namely, the binary data is received through the preset transmission control protocol, and then the binary data is stored in the storage space preset by the management server, so that the reliability of data information in the migration process can be greatly improved.
A data update information generating unit 103, configured to generate corresponding data update information according to the to-be-migrated data information in the migration request information.
And generating corresponding data updating information according to the data information to be migrated in the migration request information. After the user sends the data information to be migrated to the management server through the first user terminal, that is, updates the data information stored in the management server, the user needs to generate corresponding data update information according to the data information to be migrated that is stored in the management server. Specifically, the information of the data to be migrated includes a file name, and corresponding data update information is generated according to the file name in the information of the data to be migrated in combination with the current time. The user can acquire the file name of the migrated data information and the time information of the update of the data information by looking up the data update information. In addition, the data information to be migrated may also include information of other aspects of the data information, such as a file format, a file migration operator, and the like, and the data update information also includes information of a file format, a file migration operator, and the like.
The data updating information is information for reminding a corresponding user, and each piece of migration request information generates one piece of data updating information correspondingly. The data information to be migrated in the migration request information may be duplicated with the file name of the file stored in the management server, and if the data information to be migrated is duplicated with the file name of the stored file, the original stored file is overwritten to update the stored file.
An information sending unit 104, configured to send the generated data update information and monitoring chain establishment information to a second user terminal that the target user account logs in the migration request information.
In another embodiment of the present invention, as shown in fig. 9, the information sending unit 104 includes sub-units: a network address information obtaining unit 1041 and a data update information and monitoring chain establishment information sending unit 1042.
A network address information obtaining unit 1041, configured to obtain, according to the login success information of the target user account included in the migration request information, network address information of the second user terminal that the user account logs in. Specifically, after the user terminal successfully logs in, each user sends login success information to the management server, wherein the login success information includes network address information of the user terminal where the user logs in. The management server obtains the network address information of the user terminal logged in by the user account, namely the network address information of the second user terminal, by obtaining the login success information of the target user account contained in the migration request information.
The user terminal is identified through the network address information instead of the user account, so that the data information to be migrated can be migrated among a plurality of user terminals owned by one user.
A data update information and monitoring chain establishment information sending unit 1042, configured to send the generated data update information and monitoring chain establishment information to the second user terminal according to the obtained network address information.
And sending the generated data updating information and the monitoring chain establishing information to the second user terminal according to the obtained network address information. Each piece of network address information corresponds to one user terminal, so that the generated data updating information and monitoring chain establishing information can be sent to the second user terminal according to the network address information so as to remind a user using the second user terminal and monitor the operation of the user at the second user terminal, and after the second user terminal receives the data updating information, the user of the second user terminal can download corresponding data information in the data updating information through specific operation.
And the binary data sending unit 105 is configured to send target binary data corresponding to the copy request information in the storage space to the second user terminal if it is monitored that the second user terminal sends the copy request information.
And if the second user terminal sends the copy request information, sending the target binary data corresponding to the copy request information in the storage space to the second user terminal. The duplication request information is request information for duplicating and downloading corresponding data information in the data update information, which is obtained by monitoring in the monitoring chain in the second user terminal, and the duplication request information includes a file name to be duplicated and downloaded. Specifically, the second user terminal receives the data update information, the user of the second user terminal can copy and download corresponding data information in the data update information, the user can be monitored by the monitoring chain and generate copy request information by pressing the Ctrl + v key, and the second user terminal sends the generated copy request information to the management server.
In another embodiment of the present invention, as shown in fig. 10, the binary data transmitting unit 105 includes sub-units: a binary data matching unit 1051 and a target data transmitting unit 1052.
A binary data matching unit 1051, configured to match the copy request information with the binary data in the storage space to obtain the target binary data matching with the copy request information.
And matching the replication request information with binary data in a storage space in the management server to obtain target binary data matched with the replication request information. The management server stores multiple binary data in the storage space, each binary data corresponds to the file name of a file in the data information to be migrated, and the replication request information comprises the file name to be replicated and downloaded. The replication request information comprises file names of one or more files, and target binary data matched with the replication request information can be obtained by matching the file names contained in the replication request information with the file names corresponding to the plurality of binary data stored in the storage space.
A target data sending unit 1052, configured to send the target binary data obtained through matching to the second user terminal through a preset transmission control protocol.
And sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol. The transmission control protocol is also a TCP transmission protocol, which is a connection-oriented, reliable transport layer communication protocol based on byte streams. The target binary data is migrated through the transmission control protocol, so that the reliability of data information in the migration process can be greatly improved.
A binary data conversion unit 106, configured to send preset data conversion information to the second user terminal to convert the target binary data into target data information.
And sending the preset data conversion information to the second user terminal to convert the target binary data into target data information. In order to improve the migration efficiency of the data information and improve the migration security of the data information, the data information is migrated between the second user terminal and the management server in the form of binary data. The target binary data cannot be recognized by the second user terminal, so that the second user terminal needs to convert the target binary data into target data information through preset data conversion information, that is, deserialize the target binary data.
Binary is a number system widely used in computing technology, and binary data is data information represented by two numbers, namely 0 and 1. The data information to be migrated is converted into the binary data, so that the migration efficiency of the data information can be improved, the safety of the data information in the migration process is ensured, and the binary data can be converted into the data information which can be recognized by the second user terminal through the preset data conversion information.
In another embodiment of the present invention, as shown in fig. 11, the data cross-terminal migration apparatus 100 further includes: prompt information transmission section 107.
A prompt information sending unit 107, configured to send a prompt information that the data information to be migrated has been migrated successfully to the first user terminal.
The management server sends out prompt information that the data information to be migrated is successfully migrated to the first user terminal, so that a user using the first user terminal can be prompted.
The monitoring chain establishment information is sent to the first user terminal to monitor the first user terminal, the data updating information is generated by acquiring the data information to be migrated in the migration request information and is sent to the second user terminal, the data information is migrated across terminals by monitoring the replication request information of the second user terminal and sending the target binary data in the storage space to the second user terminal, the migration efficiency of the data information can be greatly improved, and the migration safety of the data information is improved.
The data migration apparatus may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Referring to fig. 12, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032, when executed, can cause the processor 502 to perform a cross-terminal migration method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute a data cross-terminal migration method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following functions: if the login success information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal; if it is monitored that the first user terminal sends migration request information, storing data information to be migrated in the migration request information into a preset storage space in a binary data mode; generating corresponding data updating information according to the to-be-migrated data information in the migration request information; sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged in by the target user account in the migration request information; if the second user terminal sends the replication request information, sending target binary data corresponding to the replication request information in the storage space to the second user terminal; and sending the preset data conversion information to the second user terminal to convert the target binary data into target data information.
In an embodiment, when the processor 502 executes the step of storing the data information to be migrated in the migration request information into a preset storage space in a binary data manner if it is monitored that the first user terminal sends the migration request information, the following operations are executed: sending preset data conversion information to a first user terminal to convert the data information to be migrated into binary data; and receiving the binary data through a preset transmission control protocol and storing the binary data into a preset storage space.
In an embodiment, when the processor 502 executes the step of sending the generated data update information and the monitoring chain establishment information to the second user terminal logged in by the target user account in the migration request information, the following operations are executed: acquiring network address information of a second user terminal logged by the user account according to login success information of the target user account contained in the migration request information; and sending the generated data updating information and the monitoring chain establishing information to the second user terminal according to the obtained network address information.
In an embodiment, before the processor 502 performs the step of sending the target binary data corresponding to the copy request information in the storage space to the second user terminal if it is monitored that the second user terminal sends the copy request information, the following operations are further performed: matching the replication request information with binary data in the storage space to obtain target binary data matched with the replication request information; and sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol.
In an embodiment, the processor 502 further performs the following operation after performing the step of sending preset data conversion information to the second user terminal to convert the target binary data into the target data information: and sending a prompt message that the data information to be migrated is successfully migrated to the first user terminal.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 12 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 12, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program when executed by a processor implements the steps of: if the login success information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal; if it is monitored that the first user terminal sends migration request information, storing data information to be migrated in the migration request information into a preset storage space in a binary data mode; generating corresponding data updating information according to the data information to be migrated in the migration request information; sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged in by the target user account in the migration request information; if the second user terminal sends the replication request information is monitored, sending target binary data corresponding to the replication request information in the storage space to the second user terminal; and sending the preset data conversion information to the second user terminal to convert the target binary data into target data information.
In an embodiment, the step of storing the data information to be migrated in the migration request information in a binary data manner into a preset storage space if it is monitored that the first user terminal sends the migration request information includes: sending preset data conversion information to a first user terminal to convert the data information to be migrated into binary data; and receiving the binary data through a preset transmission control protocol and storing the binary data into a preset storage space.
In an embodiment, the step of sending the generated data update information and the monitoring chain establishment information to the second user terminal logged in by the target user account in the migration request information includes: acquiring network address information of a second user terminal logged by the user account according to login success information of the target user account contained in the migration request information; and sending the generated data updating information and the monitoring chain establishing information to the second user terminal according to the obtained network address information.
In an embodiment, the step of sending the target binary data corresponding to the copy request information in the storage space to the second user terminal if it is monitored that the second user terminal sends the copy request information includes: matching the replication request information with binary data in the storage space to obtain target binary data matched with the replication request information; and sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol.
In an embodiment, after the step of sending the preset data conversion information to the second user terminal to convert the target binary data into the target data information, the method further includes: and sending a prompt message that the data information to be migrated is successfully migrated to the first user terminal.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions in actual implementation, or units with the same function may be grouped into one unit, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: a U-disk, a removable hard disk, a Read-only memory (ROM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for data migration across terminals is characterized by comprising the following steps:
if the login success information of the user at the first user terminal is received, the monitoring chain establishment information is sent to the first user terminal;
if it is monitored that a first user terminal sends migration request information, storing data information to be migrated in the migration request information into a preset storage space in a binary data mode; the migration request information is request information obtained by monitoring through a monitoring chain in the first user terminal;
generating corresponding data updating information according to the to-be-migrated data information in the migration request information;
sending the generated data updating information and monitoring chain establishing information to a second user terminal, wherein the second user terminal is a terminal logged in by a target user account in the migration request information; the target user account comprises the user account of the first user terminal user or only the user accounts of other users, namely the data information to be migrated can be migrated between a plurality of user terminals owned by one user and can be migrated between the user terminals of a plurality of different users;
if the second user terminal sends the replication request information, sending target binary data corresponding to the replication request information in the storage space to the second user terminal; the replication request information is request information obtained by monitoring through a monitoring chain in the second user terminal;
and sending the preset data conversion information to the second user terminal to convert the target binary data into target data information.
2. The method for migrating data across terminals according to claim 1, wherein the step of storing the data information to be migrated in the migration request information into a preset storage space includes:
sending preset data conversion information to a first user terminal to convert the data information to be migrated into binary data;
and receiving the binary data through a preset transmission control protocol and storing the binary data into a preset storage space.
3. The method for migrating data across terminals according to claim 1, wherein the sending the generated data update information and the monitoring chain establishment information to a second user terminal logged in by a target user account in the migration request information includes:
acquiring network address information of a second user terminal logged by a user account according to login success information of a target user account contained in the migration request information;
and sending the generated data updating information and the monitoring chain establishing information to the second user terminal according to the obtained network address information.
4. The method for migrating data across terminals according to claim 1, wherein the sending the target binary data corresponding to the copy request information in the storage space to a second user terminal includes:
matching the replication request information with binary data in the storage space to obtain target binary data matched with the replication request information;
and sending the target binary data obtained by matching to a second user terminal through a preset transmission control protocol.
5. The method for migrating data across terminals according to claim 1, wherein after the sending the preset data conversion information to the second user terminal to convert the target binary data into the target data information, the method further comprises:
and sending a prompt message that the data information to be migrated is successfully migrated to the first user terminal.
6. A device for data migration across terminals, comprising:
the monitoring information sending unit is used for sending monitoring chain establishment information to the first user terminal if successful login information of a user in the first user terminal is received;
the data information storage unit is used for storing the data information to be migrated in the migration request information into a preset storage space in a binary data mode if the migration request information sent by the first user terminal is monitored; the migration request information is request information obtained by monitoring through a monitoring chain in the first user terminal;
the data updating information generating unit is used for generating corresponding data updating information according to the data information to be migrated in the migration request information;
the information sending unit is used for sending the generated data updating information and the monitoring chain establishing information to a second user terminal logged by a target user account in the migration request information; the target user account comprises the user account of the first user terminal user or only the user accounts of other users, namely the data information to be migrated can be migrated between a plurality of user terminals owned by one user and can be migrated between the user terminals of a plurality of different users;
the binary data sending unit is used for sending target binary data corresponding to the replication request information in the storage space to a second user terminal if it is monitored that the second user terminal sends the replication request information, wherein the replication request information is request information obtained by monitoring through a monitoring chain in the second user terminal;
and the binary data conversion unit is used for sending preset data conversion information to the second user terminal so as to convert the target binary data into target data information.
7. The device for migrating data across terminals according to claim 6, wherein the data information holding unit includes:
the data information conversion unit is used for sending preset data conversion information to the first user terminal so as to convert the data information to be migrated into binary data;
and the data information transmission unit is used for receiving the binary data through a preset transmission control protocol and storing the binary data into a preset storage space.
8. The device for migrating data across terminals according to claim 6, wherein the information sending unit includes:
a network address information obtaining unit, configured to obtain, according to login success information of a target user account included in the migration request information, network address information of a second user terminal to which the user account logs in;
and the data updating information and monitoring chain establishment information sending unit is used for sending the generated data updating information and monitoring chain establishment information to the second user terminal according to the obtained network address information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data cross-terminal migration method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to execute the data cross-terminal migration method according to any one of claims 1 to 5.
CN201811256877.1A 2018-10-26 2018-10-26 Data cross-terminal migration method and device, computer equipment and storage medium Active CN109450997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811256877.1A CN109450997B (en) 2018-10-26 2018-10-26 Data cross-terminal migration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811256877.1A CN109450997B (en) 2018-10-26 2018-10-26 Data cross-terminal migration method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109450997A CN109450997A (en) 2019-03-08
CN109450997B true CN109450997B (en) 2022-09-30

Family

ID=65547437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811256877.1A Active CN109450997B (en) 2018-10-26 2018-10-26 Data cross-terminal migration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109450997B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143119A (en) * 2019-10-17 2020-05-12 广东小天才科技有限公司 Wearable device data backup and migration method and management device
CN113836082A (en) * 2020-06-23 2021-12-24 南京酷派软件技术有限公司 Data migration method and device, storage medium and server
CN114398005A (en) * 2021-12-22 2022-04-26 上海金仕达软件科技有限公司 Data secure migration method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618795A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Cross-device file processing method, client sides and server
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN105956188A (en) * 2016-06-07 2016-09-21 浪潮电子信息产业股份有限公司 Method for importing and exporting binary file among different types of databases
CN107436912A (en) * 2016-05-27 2017-12-05 三星Sds株式会社 Data migration device and its method
CN107943572A (en) * 2017-11-16 2018-04-20 平安科技(深圳)有限公司 Data migration method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8555187B2 (en) * 2010-02-16 2013-10-08 Google Inc. Server-based data sharing in computer applications using a clipboard

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN103618795A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Cross-device file processing method, client sides and server
CN107436912A (en) * 2016-05-27 2017-12-05 三星Sds株式会社 Data migration device and its method
CN105956188A (en) * 2016-06-07 2016-09-21 浪潮电子信息产业股份有限公司 Method for importing and exporting binary file among different types of databases
CN107943572A (en) * 2017-11-16 2018-04-20 平安科技(深圳)有限公司 Data migration method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"在线动态数据迁移下系统负载控制的设计与实现";苏睿;《中国优秀硕士论文全文数据库》;20131215;I138-568 *

Also Published As

Publication number Publication date
CN109450997A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US10742694B2 (en) Method for migrating data and terminal
CN109450997B (en) Data cross-terminal migration method and device, computer equipment and storage medium
JP7389791B2 (en) Implementing Compliance Settings with Mobile Devices to Adhere to Configuration Scenarios
WO2019201039A1 (en) Method and system for updating application and application server
JP6018316B2 (en) Terminal authentication registration system, terminal authentication registration method and program
CN112653618B (en) Gateway registration method and device of micro-service application API (application program interface) endpoint
US9990214B2 (en) Dynamic agent delivery
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN111491037B (en) Communication method with object storage server through SFTP data stream
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN107168765A (en) A kind of method and system of remote compilation software
CN112672357A (en) Method and device for processing user account in business system and computer equipment
CN108920157B (en) Nginx software installation method and device, computer equipment and storage medium
CN108132832B (en) Application program starting method and device
WO2017114365A1 (en) Mail attachment filing method and cloud storage server
CN110324384B (en) Data pushing method and device
CN110874345A (en) Data processing method, device and system in distributed storage system
CN111181905B (en) File encryption method and device
CN109308288B (en) Data processing method and device
CN109274656B (en) Interface parameter decryption method and device, computer equipment and storage medium
WO2022262444A1 (en) File management method and apparatus, and electronic device and readable storage medium
CN115208671A (en) Firewall configuration method and device, electronic equipment and storage medium
CN113312669A (en) Password synchronization method, device and storage medium
WO2020133434A1 (en) Application control method and related device
CN110830655A (en) Call method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant