Search

CN-121979458-A - Cross-platform machine changing method, device and equipment supporting credit and storage medium

CN121979458ACN 121979458 ACN121979458 ACN 121979458ACN-121979458-A

Abstract

The invention discloses a cross-platform machine changing method, device, equipment and storage medium supporting information creation, which relate to the technical field of computer system migration and comprise the steps of acquiring user selection operation through a GUI (graphical user interface) or a CLI (client interface), packaging user data, system configuration and application programs, transmitting a data packet to be migrated to target equipment in an online, offline or cloud transfer mode, verifying and decompressing the integrity of the target equipment, and respectively recovering the user data, the system configuration and the application programs to corresponding positions according to a to-be-migrated list file, a desktop environment of the target equipment and a preset cross-release dependency mapping table. The tool function cracking problem is eliminated through the synchronization of the GUI and the CLI, and the operation threshold of a common user is reduced. The whole flow from key derivation and data encryption to integrity verification is safe through the national encryption algorithm, so that leakage and tampering of data in the transmission and storage processes are effectively prevented, the requirements of the credit and creation industry are met, and reliable guarantee is provided for sensitive scene data migration.

Inventors

  • SHI ZHONG
  • XING JIAN
  • SHI JING
  • CHEN ZHIKAI
  • SHANG XIAOYANG

Assignees

  • 麒麟软件有限公司

Dates

Publication Date
20260505
Application Date
20260209

Claims (10)

  1. 1. A cross-platform machine changing method supporting creation is characterized by comprising the following steps: S110, responding to a file selection operation to be migrated initiated by a user through a GUI graphical operation interface or a CLI command line in equipment to be migrated, generating a migration mapping list file containing user data information, system configuration information and application program information according to the selection operation, and packaging a data packet to be migrated at the same time; S120, transmitting the data packet to be migrated from the equipment to be migrated to the target equipment through a data transmission mode of online transmission, offline transmission or cloud transfer according to the network environment or user selection; S130, after the target device receives the data packet to be migrated, firstly performing integrity verification and decompression, then identifying release versions and desktop environments of the device to be migrated and the target device, analyzing a migration mapping list file, respectively adaptively recovering user data information and system configuration information to corresponding path positions of the target device, simultaneously completing automatic recovery of system configuration, and then adaptively installing and recovering application program information by combining a preset cross-release dependence mapping table.
  2. 2. The method according to claim 1, wherein the method further comprises: When a user operates through a GUI graphical operation interface or a CLI command line, the user operation is analyzed and converted into a standard JSON configuration, then the DUBS interface StartMigration is called, an OperationRecorded signal is broadcast while an operation log is recorded when the operation is executed, the state synchronization of the GUI operation and the CLI command line is realized through monitoring OperationRecorded signals, and all operation states are stored in a database.
  3. 3. The method of claim 1, wherein S110 further comprises: and when the files are packed according to the to-be-migrated list files, the data are encrypted and packed to form an encrypted to-be-migrated data packet, and the encryption algorithm is an SM4-CBC algorithm.
  4. 4. A method according to claim 3, wherein cryptographically encapsulating the data comprises: according to the encryption password input by the user, deriving the encryption password input by the user into a 128-bit national secret SM4 key based on a PBKDF2 algorithm, wherein the iteration times are more than or equal to 10000 times, and the salt value length is 16 bytes; And compressing and encrypting the user data information, the system configuration information and the application program information by using an SM4-CBC algorithm to generate an encrypted compressed file, calculating an SM3 hash value of the encrypted compressed file by using an SM3 algorithm, and generating an integrity check file.
  5. 5. The method according to claim 1, wherein S120 comprises: when the data transmission mode is online transmission, generating an invitation link containing IP address, time stamp and verification code information through target equipment, and transmitting a data packet to be migrated after the equipment to be migrated establishes secure connection with the target equipment according to the invitation link; When the data transmission mode is off-line transmission, writing the data packet to be migrated and the verification file thereof into a movable physical storage medium, transporting and transferring, and reading the data packet to be migrated in the movable physical storage medium and storing the data packet to be migrated into target equipment after reaching a destination; When the data transmission mode is cloud transit, uploading the data package to be migrated and the verification file thereof to a cloud storage server supporting a national security HTTPS channel, and then downloading the data package to be migrated by the target equipment through a cloud storage API.
  6. 6. The method of claim 5, wherein the establishing a secure connection between the device to be migrated and the target device according to the invitation link comprises: and generating a session key between the equipment to be migrated and the target equipment through SM2 key exchange, and transmitting the data packet to be migrated and the verification file thereof in the encryption channel according to the SM4 stream key derived from the session key.
  7. 7. The method according to claim 1, wherein S130 comprises: After receiving the data packet to be migrated, the target device performs integrity check on the data packet to be migrated through an SM3 algorithm, and decompresses the data packet to be migrated to obtain user data information, system configuration information, application program information and migration mapping list files; storing the user data information into a corresponding directory of the target device according to the migration mapping list file; Identifying the desktop environment types of the equipment to be migrated and the target equipment, calling a configuration management tool or an interface of the target equipment to convert according to the desktop environment types of the target equipment by the system configuration information according to the migration mapping list file, writing the configuration management tool or the interface into a corresponding catalog, and performing system configuration self-adaptive recovery; And identifying release versions of the equipment to be migrated and the target equipment, mapping the software package name corresponding to the release version of the equipment to be migrated to the software package name corresponding to the release version of the target equipment according to a migration mapping list file and application program information and a preset cross-release package name dependency mapping table, and performing adaptive installation according to the mapped software package name.
  8. 8. A cross-platform changer supporting creation, comprising: the data packaging module is used for generating a to-be-migrated list file in the to-be-migrated device according to user data information, system configuration information and application program information selected to be migrated by a user and packaging the to-be-migrated list file into a to-be-migrated data packet; The data transmission module is used for transmitting the data packet to be migrated from the equipment to be migrated to the target equipment through a corresponding data transmission mode according to the network environment or user selection; And the data importing module is used for verifying the integrity of the received data packet to be migrated on the target equipment, decompressing, and respectively writing, recovering and installing user data information, system configuration information and application program information in corresponding positions according to the to-be-migrated list file.
  9. 9. An electronic device, the electronic device comprising: One or more processors; storage means for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of supporting a trafficking of originators as recited in any one of claims 1-7.
  10. 10. A storage medium containing computer executable instructions for performing the method of supporting a computer-initiated cross-platform change of machine of any of claims 1-7 when executed by a computer processor.

Description

Cross-platform machine changing method, device and equipment supporting credit and storage medium Technical Field The present invention relates to the field of computer system migration technologies, and in particular, to a method, an apparatus, a device, and a storage medium for supporting a service creation. Background Under the push of the digitized wave, with the deep development of the credit and innovation industry (information technology application innovation industry), domestic operating systems (kylin OS, unified credit OS and the like) based on Linux kernels are gradually deployed in scale and widely applied in the fields of government affairs, finance, energy and the like. However, linux systems are characterized by fragmentation of release boards, diversification of desktop environments and the like due to openness, when users are required to perform equipment replacement, system upgrading and the like, especially when cross-platform machine changing is required, huge data migration challenges such as cross-region transmission of user data, heterogeneous release board software package conversion, inheritance of system configuration of different operation platforms, confidentiality of data migration processes and the like are often faced, and especially under the background that current equipment is frequently updated, the requirements of users on cross-equipment, cross-platform data migration and system environment synchronization are urgent. The existing data migration scheme adopts different software package management mechanisms and desktop environments among different Linux release boards in terms of compatibility, so that cross-platform seamless migration of system configuration and application program data is difficult to realize, and manual reconfiguration of a user is required. Users need to use multiple command line tools in combination for file synchronization or rely on specific tools of different release boards, lack the problem of fragmentation of unified entry and automation flow, and depend on command line operation means, and support insufficient graphical interfaces. Meanwhile, in the scene of long-distance and mass data transmission, for example, a single-thread transmission tool based on TCP is extremely easy to be influenced by network delay, jitter and the like to cause failure of network interrupt tasks, the existing tool or means lacks end-to-end strong encryption and integrity verification in terms of security, and the risks of data leakage and tampering exist in the data transmission process. Particularly when the requirements of data migration and machine replacement across regions and platforms are met, the process is complex and easy to make mistakes, the requirements on the operation threshold of non-professional users and the stability and safety of data transmission are high, and the system cannot adapt to various information creation platform environments and data requirements thereof. Disclosure of Invention The embodiment of the invention provides a cross-platform machine changing method, device, equipment and storage medium for supporting credit, which are used for solving the technical problems that cross-region and cross-platform machine changing or data migration is easy to make mistakes and is difficult to adapt to a credit platform. In a first aspect, an embodiment of the present invention provides a method for supporting a service creation in a cross-platform mode, including: S110, acquiring user selection operation in equipment to be migrated through a GUI graphical operation interface or a CLI command line, selecting corresponding user data information, system configuration information and application program information according to the user selection operation, generating a list file to be migrated, and packaging the list file to be migrated into a data packet to be migrated; S120, transmitting the data packet to be migrated from the equipment to be migrated to the target equipment through a data transmission mode of online transmission, offline transmission or cloud transfer according to the network environment or user selection; And S130, carrying out integrity verification and decompression on the received data packet to be migrated on the target equipment, recovering the user data information to the corresponding path position of the target equipment according to the to-be-migrated manifest file, carrying out system configuration recovery on the target equipment according to the release version of the target equipment, the desktop environment and the system configuration information, and carrying out installation recovery on the application program information according to the preset cross-release dependency mapping table. Further, the method further comprises: When a user operates through a GUI graphical operation interface or a CLI command line, the user operation is analyzed and converted into a standard JSON configuration, then the DUBS inter