CN110389862B - Data storage method, device, equipment and storage medium - Google Patents

Data storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN110389862B
CN110389862B CN201910673237.9A CN201910673237A CN110389862B CN 110389862 B CN110389862 B CN 110389862B CN 201910673237 A CN201910673237 A CN 201910673237A CN 110389862 B CN110389862 B CN 110389862B
Authority
CN
China
Prior art keywords
user data
data
program
system user
restoring
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
CN201910673237.9A
Other languages
Chinese (zh)
Other versions
CN110389862A (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.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare 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 Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN201910673237.9A priority Critical patent/CN110389862B/en
Publication of CN110389862A publication Critical patent/CN110389862A/en
Application granted granted Critical
Publication of CN110389862B publication Critical patent/CN110389862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a data storage method, a device, equipment and a storage medium, which are characterized in that system user data in a system is acquired before system software is upgraded, the system user data is stored based on a preset storage path, after the system software is upgraded, at least one first program set for restoring the system user data is generated based on a pre-created data restoring configuration file, and the system user data in the preset storage path is restored by calling the at least one first program set through a first restoring program, so that the system user data in the preset storage path can be completely converted into the first program set, and then all the first program sets are restored, the problem of system user data loss before and after the software is upgraded in the prior art is solved, the aim of reserving all the system user data stored before the system software is upgraded after the system software is upgraded is fulfilled, and the experience of a user is greatly improved.

Description

Data storage method, device, equipment and storage medium
Technical Field
Embodiments of the present invention relate to data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for storing data.
Background
With the development of information technology, various devices can generate massive data every moment, if system software is upgraded, partial data loss before the upgrade is likely to be caused, and huge loss is likely to be caused by the data loss, so that data backup and restoration become an important development direction in the current data processing technology.
At present, before the system software is upgraded, the user stores the data to be saved in the designated storage space, and after the system software is upgraded, the data stored in the designated storage space is restored. However, after the system software is upgraded, some system user data may be lost, so that a lower experience degree is brought to the user.
Disclosure of Invention
The embodiment of the invention provides a data storage method, a device, equipment and a storage medium, which can realize that no data is lost before and after system upgrading, thereby improving the experience of users.
In a first aspect, an embodiment of the present invention provides a data saving method, including:
before upgrading system software, acquiring system user data in a system, and storing the system user data based on a preset storage path;
generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after system software has been upgraded;
and calling the at least one first program set through a first restoring program to restore the system user data under the preset storage path.
In a second aspect, an embodiment of the present invention further provides a data storage device, including:
the system user data acquisition module is used for acquiring system user data in the system before upgrading the system software and storing the system user data based on a preset storage path;
the system user data restoring module is used for generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after the system software is updated;
and the first program set generating module is used for calling the at least one first program set through a first restoring program to restore the system user data under the preset storage path.
In a third aspect, an embodiment of the present invention further provides a data saving device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the data saving method according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, implement the data-preserving method according to any of the first aspects.
According to the technical scheme, the system user data in the system are acquired before the system software is upgraded, the system user data are stored based on the preset storage path, after the system software is upgraded, at least one first program set for restoring the system user data is generated based on the pre-created data restoring configuration file, and the system user data in the preset storage path are restored by calling the at least one first program set through the first restoring program, so that the system user data in the preset storage path can be completely converted into the first program set, all the first program sets are restored, the problem that the system user data are lost before and after the system software is upgraded in the prior art is solved, the aim of retaining all the system user data stored before the system software is upgraded is fulfilled, and the user experience is greatly improved.
Drawings
Fig. 1 is a flow chart of a data saving method according to a first embodiment of the present invention;
fig. 2 is a flow chart of a data saving method according to a second embodiment of the present invention;
fig. 3 is a flow chart of a data saving method according to a third embodiment of the present invention;
fig. 4 is a flow chart of a data saving method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data storage device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data storage device according to a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flow chart of a data saving method according to a first embodiment of the present invention, where the method may be applied to a case of saving system user data when system software is upgraded, and the method may be performed by a data saving device, where the device may be implemented by software and/or hardware and is generally integrated in a terminal. Referring specifically to fig. 1, the method may include the steps of:
s110, before the system software is upgraded, system user data in the system are acquired, and the system user data are stored based on a preset storage path.
The system user data may include user information such as the name, gender, age, etc. of the user. The preset storage path may be a path of a backup folder created for system user data before upgrading the system software.
It can be understood that the system user data needs to be backed up before the system software is upgraded, so that the backup of the system user data can be realized by storing the system user data in the backup folder according to the preset storage path.
S120, after the system software is upgraded, generating at least one first program set for restoring the system user data based on the pre-created data restoring configuration file.
The data recovery profile may include a list of program sets of system user data, and the list of program sets in the data recovery profile may correspond to the first program set of each system user data.
S130, invoking at least one first program set through a first restoring program to restore the system user data under the preset storage path.
Optionally, a restoration process of calling the first restoration program in the pre-created data restoration configuration file to restore the system user data under the preset storage path may be recorded in the system upgrade log, where the upgrade log may record any error occurring in the restoration process, so as to facilitate the user to investigate the reason of the restoration error.
Optionally, in the process of restoring the system user data, the system may provide three interfaces, which are before restoration, during restoration and after restoration, where some system user data needs to be preprocessed before restoration begins, that is, some system user data needs to be preprocessed during restoration by calling a preprocessing program set in the data restoration configuration file, that is, some system user data needs to be processed during restoration, that is, some system user data needs to be further processed after restoration is completed by calling a processing program set in the data restoration configuration file, that is, the system user data needs to be further processed by calling a post-restoration processing program set in the data restoration configuration file.
The embodiment of the invention provides a data storage method, which is characterized in that system user data in a system is acquired before the system software is upgraded, the system user data is stored based on a preset storage path, after the system software is upgraded, at least one first program set for restoring the system user data is generated based on a pre-created data restoring configuration file, and the system user data in the preset storage path is restored by calling the at least one first program set through a first restoring program, so that the system user data in the preset storage path can be completely converted into the first program set, and then all the first program sets are restored, the problem that the system user data is lost before and after the software is upgraded in the prior art is solved, the aim of keeping all the system user data stored before the system software is upgraded is fulfilled, and the experience of users is greatly improved.
Example two
Fig. 2 is a flow chart of a data saving method according to a second embodiment of the present invention. The technical solution of this embodiment is refined on the basis of the foregoing embodiment, and optionally, the restoring the system user data under the preset storage path by calling the at least one first program set through a first restoring program includes: and if at least two user data to-be-restored modules exist in the system, invoking the at least one first program set through the first restoring program to restore the system user data of each user data to-be-restored module in sequence.
Optionally, the invoking the at least one first program set by the first restoring program sequentially restores the system user data of each user data to-be-restored module, including: determining the current user data to be restored module in the system, calling the at least one first program set to restore the system user data of the current user data to be restored module through the first restoring program, storing the system user data generated in the restoring process in a temporary folder of the system, and taking the system user data stored in the temporary folder as the updated system user data of the system if all the system user data of the user data to be restored module in the system are detected to be restored.
Referring specifically to fig. 2, the method of this embodiment may include the following steps:
s210, before the system software is upgraded, system user data in the system are acquired, and the system user data are stored based on a preset storage path.
S220, after the system software is upgraded, generating at least one first program set for restoring the system user data based on the pre-created data restoring configuration file.
S230, if at least two user data to-be-restored modules exist in the system, invoking at least one first program set through a first restoring program to restore the system user data of each user data to-be-restored module in sequence.
The software system stores a plurality of user data to-be-restored modules, and each user data to-be-restored module can store a plurality of different system user data.
It can be understood that when the first restore program restores the system user data stored in the backup folder, the first program set may be sequentially called and the system user data may be restored in sequence, that is, the restoring process of the system user data may be restored according to the module.
Optionally, invoking at least one first program set through a first restoring program to restore the system user data of each user data module to be restored in turn, including: determining a current user data to be restored module in the system, calling at least one first program set to restore the system user data of the current user data to be restored module through a first restoring program, storing the system user data generated in the restoring process in a temporary folder of the system, and taking the system user data stored in the temporary folder as the system user data of the updated system if all the system user data of all the user data to be restored modules in the system are detected to be restored.
Optionally, for some modules to be restored of user data that must be restored, to avoid missing selection by the user, the configuration file may provide a forced restoration option to perform forced restoration on the user data of the system that must be restored, where it is understood that the forced restoration option may set the attribute of the modules to be restored of user data that must be restored to forced restoration before the device to which the system belongs leaves the factory.
The embodiment of the invention provides a data storage method, which comprises the steps of acquiring system user data in a system before upgrading the system software, storing the system user data based on a preset storage path, generating at least one first program set for restoring the system user data based on a pre-created data restoration configuration file after the system software is upgraded, and if at least two user data modules to be restored exist in the system, sequentially restoring the system user data of each user data module to be restored by calling at least one first program set through a restoration program, so that the system user data can be restored according to the modules in sequence, all the system user data in the preset storage path can be converted into the first program set, and then all the first program sets are restored, thereby solving the problem of losing the system user data before and after the software is upgraded in the prior art, achieving the purpose of reserving all the system user data stored before the system software is upgraded, and further greatly improving the experience of users.
Example III
Fig. 3 is a flow chart of a data saving method according to a third embodiment of the present invention. The technical solution of the present embodiment is optimized on the basis of the foregoing embodiment, and optionally, further includes: and if the first restoring program can not restore the system user data, calling an upgrading program in the data restoring configuration file, and upgrading the data format of the system user data into the data format read by the first restoring program through the upgrading program.
On the basis of the technical scheme, optionally, the method further comprises the following steps: if the upgrading program in the data reduction configuration file cannot upgrade the data format of the system user data in the preset storage path, the upgrading program is rolled back to a state before the data format of the system user data is upgraded and reduced.
It will be appreciated that, for the same file before and after the system software upgrade, if the structure of the file is changed before and after the system software upgrade, and if the file before the system software upgrade is directly reserved after the system software upgrade, the upgraded system software cannot correctly read the file, that is, the first restore program cannot read the system user data, so that the data format of the system user data needs to be upgraded. Referring specifically to fig. 3, the method of this embodiment may include the following steps:
s310, before the system software is upgraded, system user data in the system is acquired, and the system user data is stored based on a preset storage path.
S320, after the system software is upgraded, at least one first program set for restoring the system user data is generated based on the pre-created data restoring configuration file.
S330, if the first restoring program can not restore the system user data, the upgrading program in the data restoring configuration file is called.
The upgrade program is configured in a program set list in the data reduction configuration file, that is, the program set list may correspond to the upgrade program of each system user data.
It can be understood that if the structure of the backup folder is changed after the system software is upgraded, the upgraded system software cannot read the system user data, i.e. the first restore program cannot read the system user data, and if the structure of the backup folder is unchanged after the system software is upgraded, the upgraded system can read the system user data, i.e. the first restore program can read the system user data.
S340, the data format of the system user data is updated to the data format read by the first restoring program through the updating program.
S350, invoking at least one first program set through a first restoring program to restore the system user data under the preset storage path.
It can be understood that after the upgrade program upgrades the system user data, the format of the system user data before the upgrade of the system can be converted into a format readable by the first restore program, and at least one first program set can be called by the first restore program to restore the system user data under the preset storage path.
Optionally, if the upgrade program in the data reduction configuration file cannot upgrade the data format of the system user data in the preset storage path, the upgrade program is rolled back to a state before the upgrade and reduction of the data format of the system user data, so as to re-upgrade the system user data.
The embodiment of the invention provides a data storage method, which is capable of acquiring system user data in a system by changing the structure of a backup file storing the system user data before and after upgrading the system software, storing the system user data based on a preset storage path, generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after the system software is upgraded, calling an upgrading program in the data restoring configuration file if the first restoring program cannot restore the system user data, upgrading the data format of the system user data into a data format read by the first restoring program through the upgrading program, and restoring the system user data in the preset storage path by calling at least one first program set through the first restoring program.
Example IV
Fig. 4 is a flow chart of a data saving method according to a fourth embodiment of the present invention. Unlike the above embodiments, the present embodiment may be applied to a case where system configuration data is saved when an upgrade occurs to system software, and the method may be performed by a data saving device, where the device may be implemented by software and/or hardware and is generally integrated in a terminal. Referring specifically to fig. 4, the method may include the steps of:
s410, generating at least one second program set of system configuration data based on the data backup configuration file in the system before upgrading the system software.
The system configuration data may include information such as a device number, a serial number, and a product code of a device to which the system belongs. The data backup configuration file may include a program set list of system configuration data, and the program set list in the data backup configuration file may correspond to a second program set of each system configuration data.
It can be understood that the system configuration data may be stored under a specific path before the device leaves the factory, and when the system configuration data is backed up, the user cannot easily find the data, so that a plurality of second program sets of the system configuration data may be generated according to the program list of the data backup configuration file.
S420, calling at least one second program set through the backup program to backup the system configuration data.
S420, after the system software is upgraded, at least one second program set is called by a second restoring program to restore the system configuration data.
Alternatively, the software system may store a plurality of user data to be restored modules, each of which may store a plurality of different system configuration data.
It can be understood that when the second restoring program restores the system configuration data, the second program set may be sequentially called and the system configuration data may be restored in sequence, that is, the restoring process of the system configuration data may be restored according to the module.
Optionally, the system configuration data generated in the restoration process may be stored in a temporary folder of the system, and if it is detected that all the system configuration data of the modules to be restored in the system are restored, the system configuration data stored in the temporary folder is used as the system configuration data of the system after the upgrade.
The embodiment of the invention provides a data storage method, which is characterized in that for system configuration data which is not easy to find by a user, before upgrading system software, at least one second program set of the system configuration data is generated based on a data backup configuration file in a system, the system configuration data is backed up by calling the at least one second program set through a backup program, and after the system software is upgraded, the system configuration data is restored by calling the at least one second program set through a second restoration program, so that the purpose of backing up the system configuration data is realized.
Example five
Fig. 5 is a schematic structural diagram of a data storage device according to a fifth embodiment of the present invention. Referring to fig. 5, the apparatus includes: a system user data acquisition module 51, a system user data reduction module 52 and a first program set generation module 53.
The system user data acquiring module 51 is configured to acquire system user data in the system and store the system user data based on a preset storage path before upgrading system software; a system user data restoring module 52, configured to generate at least one first program set for restoring system user data based on a data restoring configuration file created in advance after the system software has been upgraded; the first program set generating module 53 is configured to invoke at least one first program set through a first restoring program to restore system user data under a preset storage path.
Based on the above technical solutions, the system user data restoring module 52 is specifically configured to, if at least two user data to be restored modules exist in the system, call at least one first program set through a restoring program to restore the system user data of each user data to be restored module in turn.
Based on the above technical solutions, the system user data restoring module 52 is specifically configured to determine a current user data to be restored module in the system;
restoring the system user data of the user data to be restored module to be restored by calling at least one first program set through a restoring program, and storing the system user data generated in the restoring process in a temporary folder of the system;
and if the system user data of all the user data to be restored modules in the system are detected to be completely restored, taking the system user data stored in the temporary folder as the system user data of the updated system.
On the basis of the technical schemes, the method further comprises the following steps:
the upgrade program calling module is used for calling the upgrade program in the data reduction configuration file if the first reduction program cannot restore the system user data;
and the system user data upgrading module is used for upgrading the data format of the system user data under the preset storage path into the data format read by the first restoring program through the upgrading program.
On the basis of the technical schemes, the method further comprises the following steps:
and the rollback module is used for rolling back the upgrade program to a state before upgrading the data format of the system user data if the upgrade program in the data reduction configuration file cannot upgrade the data format of the system user data under the preset storage path.
On the basis of the technical schemes, the method further comprises the following steps:
the second program set generating module is used for generating at least one second program set of system configuration data based on a data backup configuration file in the system before upgrading the system software;
the backup module is used for calling at least one second program set through a backup program to backup the system configuration data;
and the system configuration data restoring module is used for restoring the system configuration data by calling at least one second program set through a second restoring program after the system software is upgraded.
On the basis of the technical schemes, the method further comprises the following steps:
the recording module is used for recording a restoring process of restoring the system user data under the preset storage path by calling a restoring program in the pre-created data restoring configuration file into the system upgrading log.
The embodiment of the invention provides a data storage device, which is used for acquiring system user data in a system before and after upgrading the system, acquiring the system user data in the system before and after upgrading the system software, storing the system user data based on a preset storage path, generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after the system software is upgraded, completely converting the system user data into the first program set, calling the at least one first program set through the first restoring program to restore the system user data under the preset storage path, solving the problem of losing the system user data before and after upgrading the software in the prior art, and realizing that all the system user data before and after upgrading are reserved after the system software is upgraded, thereby greatly improving the experience of users.
Example six
Fig. 6 is a schematic structural diagram of a data storage device according to a sixth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary data-holding device 12 suitable for use in implementing embodiments of the present invention. The data-holding device 12 shown in fig. 6 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 6, the data-holding device 12 is in the form of a general purpose computing device. The components of the data-holding device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Data-holding device 12 typically includes a variety of computer-system readable media. Such media can be any available media that is accessible by data storage device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The data-holding device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The memory 28 may include at least one program product having a set of program modules (e.g., a system user data acquisition module 51, a system user data reduction module 52, and a first program set generation module 53 of a data storage device) configured to perform the functions of the various embodiments of the invention.
The program/utility 44 having a set of program modules 46 (e.g., a system user data acquisition module 51, a system user data reduction module 52, and a first program set generation module 53) of data storage devices may be stored in, for example, the memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 46 generally perform the functions and/or methods of the embodiments described herein.
The data-holding device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the data-holding device 12, and/or with any device (e.g., network card, modem, etc.) that enables the data-holding device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the data-holding device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet via the network adapter 20. As shown, network adapter 20 communicates with other modules of data-holding device 12 via bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with data-holding device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a data saving method provided by an embodiment of the present invention, the method includes:
before upgrading system software, acquiring system user data in a system, and storing the system user data based on a preset storage path;
generating at least one first program set for restoring system user data based on a pre-created data restoring configuration file after system software has been upgraded;
and invoking at least one first program set through a first restoring program to restore the system user data under the preset storage path.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a data saving method provided by an embodiment of the present invention.
Of course, those skilled in the art will appreciate that the processor may also implement the technical solution of a data saving method provided in any embodiment of the present invention.
Example six
The sixth embodiment of the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data saving method as provided by the embodiments of the present invention, the method comprising:
before upgrading system software, acquiring system user data in a system, and storing the system user data based on a preset storage path;
generating at least one first program set for restoring system user data based on a pre-created data restoring configuration file after system software has been upgraded;
and invoking at least one first program set through a first restoring program to restore the system user data under the preset storage path.
Of course, the computer-readable storage medium provided by the embodiments of the present invention, on which the computer program stored, is not limited to the above-described method operations, but may also perform the related operations in a data saving method provided by any of the embodiments of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
The computer readable signal medium may include system user data, a first program set, a data reduction profile, etc., in which computer readable program code is embodied. Such propagated system user data, first program set, data restore configuration file, etc. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the data storage apparatus, each included module is only divided according to the functional logic, but not limited to the above division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method of data preservation, comprising:
before upgrading system software, acquiring system user data in a system, and storing the system user data based on a preset storage path;
generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after system software has been upgraded; the data recovery configuration file comprises a program set list of system user data, and the program set list in the data recovery configuration file corresponds to a first program set of each system user data;
and calling the at least one first program set through a first restoring program to restore the system user data under the preset storage path.
2. The method of claim 1, wherein the restoring the system user data in the preset storage path by invoking the at least one first program set via a first restore program comprises:
and if at least two user data to-be-restored modules exist in the system, invoking the at least one first program set through the first restoring program to restore the system user data of each user data to-be-restored module in sequence.
3. The method according to claim 2, wherein said invoking said at least one first program set by said first restore program sequentially restores system user data of each of said user data to be restored modules, comprising:
determining the user data to be restored module to be restored currently in the system;
invoking the at least one first program set through the first restoring program to restore the system user data of the user data to be restored module currently to be restored, and storing the system user data generated in the restoring process in a temporary folder of the system;
and if the system user data of all the user data to be restored modules in the system are detected to be completely restored, taking the system user data stored in the temporary folder as the system user data of the updated system.
4. The method according to claim 1 or 2, further comprising:
if the first restoring program can not restore the system user data, invoking an upgrading program in the data restoring configuration file;
and upgrading the data format of the system user data into the data format read by the first restoring program through the upgrading program.
5. The method as recited in claim 4, further comprising:
if the upgrading program in the data reduction configuration file cannot upgrade the data format of the system user data in the preset storage path, the upgrading program is rolled back to a state before the data format of the system user data is upgraded.
6. The method as recited in claim 1, further comprising:
generating at least one second set of system configuration data based on a data backup configuration file in the system prior to a system software upgrade;
calling the at least one second program set through a backup program to backup the system configuration data;
and after the system software is upgraded, invoking the at least one second program set through a second restoring program to restore the system configuration data.
7. The method as recited in claim 1, further comprising:
and recording a restoring process of restoring the system user data under the preset storage path by calling the first restoring program in the pre-created data restoring configuration file into a system upgrading log.
8. A data storage device, comprising:
the system user data acquisition module is used for acquiring system user data in the system before upgrading the system software and storing the system user data based on a preset storage path;
the system user data restoring module is used for generating at least one first program set for restoring the system user data based on a pre-created data restoring configuration file after the system software is updated; the data recovery configuration file comprises a program set list of system user data, and the program set list in the data recovery configuration file corresponds to a first program set of each system user data;
and the first program set generating module is used for calling the at least one first program set through a first restoring program to restore the system user data under the preset storage path.
9. A data saving device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data saving method according to any one of claims 1-7 when executing the computer program.
10. A storage medium containing computer executable instructions which when executed by a computer processor implement the data preservation method of any one of claims 1-7.
CN201910673237.9A 2019-07-24 2019-07-24 Data storage method, device, equipment and storage medium Active CN110389862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910673237.9A CN110389862B (en) 2019-07-24 2019-07-24 Data storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910673237.9A CN110389862B (en) 2019-07-24 2019-07-24 Data storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110389862A CN110389862A (en) 2019-10-29
CN110389862B true CN110389862B (en) 2023-06-30

Family

ID=68287343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910673237.9A Active CN110389862B (en) 2019-07-24 2019-07-24 Data storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110389862B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784233A (en) * 2016-08-25 2018-03-09 中兴通讯股份有限公司 The method and device of AKU is read in a kind of user data subregion from encryption

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771804B (en) * 2008-12-29 2013-06-05 深圳市同洲电子股份有限公司 Backup and restore method for DTV receiving terminal software system
CN101789999B (en) * 2010-02-09 2014-04-30 中兴通讯股份有限公司 Method and device for scene management and backup restoration of mobile terminal
EP3116218B1 (en) * 2014-04-18 2020-02-12 Huawei Device Co., Ltd. Software upgrade method, device and equipment
CN105577734A (en) * 2014-11-05 2016-05-11 中兴通讯股份有限公司 Information backup method, device, server and terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784233A (en) * 2016-08-25 2018-03-09 中兴通讯股份有限公司 The method and device of AKU is read in a kind of user data subregion from encryption

Also Published As

Publication number Publication date
CN110389862A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
CN110019498B (en) Log synchronization method and device, storage medium and electronic equipment
CN109471851B (en) Data processing method, device, server and storage medium
CN109634587B (en) Method and equipment for generating warehousing script and warehousing data
CN111813641B (en) Method, device, medium and equipment for collecting crash information
CN110287146B (en) Method, device and computer storage medium for downloading application
CN108874441B (en) Board card configuration method, device, server and storage medium
CN109284108B (en) Unmanned vehicle data storage method and device, electronic equipment and storage medium
CN113760306B (en) Method and device for installing software, electronic equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN111818145B (en) File transmission method, device, system, equipment and storage medium
CN111813465B (en) Information acquisition method, device, medium and equipment
CN111290881B (en) Data recovery method, device, equipment and storage medium
CN112559140A (en) Transaction control method, system, equipment and storage medium for data consistency
CN108369503A (en) Automatic system response to external field replaceable units (FRU) process
CN109885781B (en) Mixed page unified browsing method, device, equipment and storage medium
CN109165372A (en) A kind of webpage loading method, device, equipment and storage medium
CN110389862B (en) Data storage method, device, equipment and storage medium
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN107992457B (en) Information conversion method, device, terminal equipment and storage medium
CN110365763B (en) Data synchronization method, device, equipment and storage medium
CN111262727B (en) Service capacity expansion method, device, equipment and storage medium
CN113919310A (en) Short message content determination method and device, electronic equipment and storage medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN109918231B (en) Data reforming abnormity repairing method, device, equipment and storage medium

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
CB02 Change of applicant information

Address after: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant after: Shanghai Lianying Medical Technology Co.,Ltd.

Address before: 201807 Shanghai City, north of the city of Jiading District Road No. 2258

Applicant before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant