CN111858487A - Data updating method and device - Google Patents

Data updating method and device Download PDF

Info

Publication number
CN111858487A
CN111858487A CN202010658837.0A CN202010658837A CN111858487A CN 111858487 A CN111858487 A CN 111858487A CN 202010658837 A CN202010658837 A CN 202010658837A CN 111858487 A CN111858487 A CN 111858487A
Authority
CN
China
Prior art keywords
data
folder
updating
update
server
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.)
Pending
Application number
CN202010658837.0A
Other languages
Chinese (zh)
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 Longcheer Technology Co Ltd
Original Assignee
Shanghai Longcheer Technology 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 Longcheer Technology Co Ltd filed Critical Shanghai Longcheer Technology Co Ltd
Priority to CN202010658837.0A priority Critical patent/CN111858487A/en
Publication of CN111858487A publication Critical patent/CN111858487A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention aims to provide a data updating method and equipment, wherein a script file can be designed, local old data can be automatically cleared only by double clicking the updating folder, and meanwhile, new data is downloaded from a server, so that automatic downloading and updating of the file are realized, designers can conveniently update database data from the server to the local, the updating efficiency is improved, the time for updating the data is shortened, and the consistency of the local data and the server data is ensured. In addition, in order to prevent the local update folder from being increased when the data in the server folder is different from the data in the local update folder after multiple downloads, all the files in the update folder LIB may be cleared before each update.

Description

Data updating method and device
Technical Field
The invention relates to the field of computers, in particular to a data updating method and data updating equipment.
Background
If the database is placed on the server, the database is easy to be occupied by the individual all the time and cannot be updated; however, if the database is locally located in the engineer, the database is updated at any time, and the server address and the folder are searched and copied each time, which is troublesome, and it is easy to cause that many people always use old data without updating the local database.
Disclosure of Invention
An object of the present invention is to provide a data updating method and apparatus.
According to an aspect of the present invention, there is provided a data updating method, including:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
Further, in the method, while locally establishing the update folder, the method further includes:
establishing a backup folder locally;
based on the data updating operation, deleting the data in the updating folder, acquiring the updating data from the server and saving the updating data to the updating folder, and the method comprises the following steps:
and based on the data updating operation, after the data in the updating folder is stored in the backup folder, deleting the data in the updating folder, and acquiring the updating data from a server and storing the updating data in the updating folder.
Further, in the method, saving the data in the update folder to the backup folder further includes:
and marking the existing data in the backup folder as old data, saving the data in the updating folder as new data into the backup folder, and deleting the old data in the backup folder.
Further, in the method, in the data update operation, after the data in the update folder is saved in the backup folder, the data in the update folder is deleted, and after the update data is obtained from the server and saved in the update folder, the method further includes:
judging whether the updating data obtained from the server is successfully saved in the updating folder or not,
and if the data in the backup folder is unsuccessful, restoring the data in the backup folder to the updating folder.
According to another aspect of the present invention, there is also provided a data update apparatus, wherein the apparatus comprises:
first means for establishing an update folder locally;
second means for obtaining a data update operation;
and the third device is used for deleting the data in the updating folder based on the data updating operation, acquiring the updating data from the server and storing the updating data in the updating folder.
Further, in the apparatus, the first device is further configured to establish a backup folder locally;
and the third device is used for deleting the data in the updating folder after the data in the updating folder is stored in the backup folder based on the data updating operation, and acquiring the updating data from the server and storing the updating data in the updating folder.
Further, in the device, the third means is configured to mark existing data in the backup folder as old data, store the data in the update folder as new data in the backup folder, and delete the old data in the backup folder.
Further, in the apparatus, the third device is further configured to determine whether the update data obtained from the server is successfully stored in the update folder, and if not, restore the data in the backup folder to the update folder.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
Establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
Compared with the prior art, the invention can design a script file, can automatically clear local old data by double clicking the updating folder, and simultaneously downloads new data from the server, thereby realizing automatic downloading and updating of the file, facilitating designers to update database data from the server to the local, improving updating efficiency, shortening data updating time and ensuring that the local data is consistent with the server data. In addition, in order to prevent the local update folder from being increased when the data in the server folder is different from the data in the local update folder after multiple downloads, all the files in the update folder LIB may be cleared before each update.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 shows a flowchart of a data updating method according to an embodiment of the present invention.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As shown in fig. 1, the present invention provides a data updating method, including:
step S1, establishing an update folder locally;
here, an update folder LIB may be created on a local hard disk, for example, a disk F, and is specifically used for storing update data of a database;
step S2, acquiring data updating operation;
here, the data update operation is an operation of double-clicking the update folder;
step S3, based on the data updating operation, deleting the data in the update folder, and acquiring the update data from the server and saving the update data in the update folder.
The invention can design a script file, and can automatically clear local old data and download new data from the server by double-clicking the update folder, thereby realizing automatic downloading and updating of the file, facilitating designers to update database data from the server to the local, improving the updating efficiency, shortening the time for updating data, and ensuring the consistency of the local data and the server data. In addition, in order to prevent the local update folder from being increased when the data in the server folder is different from the data in the local update folder after multiple downloads, all the files in the update folder LIB may be cleared before each update.
In an embodiment of the data updating method of the present invention, step S1, while locally creating the update folder, further includes:
establishing a backup folder locally;
step S3, based on the data updating operation, deleting the data in the update folder, acquiring the update data from the server and saving the update data to the update folder, including:
and based on the data updating operation, after the data in the updating folder is stored in the backup folder, deleting the data in the updating folder, and acquiring the updating data from a server and storing the updating data in the updating folder.
Here, in order to prevent the local data from being deleted by mistake without a network, a backup folder BK may be created, and the old data of the LIB may be copied to the backup folder BK.
In an embodiment of the data updating method of the present invention, saving the data in the update folder to the backup folder further includes:
and marking the existing data in the backup folder as old data, saving the data in the updating folder as new data into the backup folder, and deleting the old data in the backup folder.
Here, in order to avoid too many old files in the backup folder, the old files in the backup folder may be deleted in time after the new data is stored in the backup folder.
In an embodiment of the data updating method of the present invention, based on the data updating operation, after the data in the update folder is saved in the backup folder, the data in the update folder is deleted, and the update data is obtained from the server and saved in the update folder, the method further includes:
judging whether the updating data obtained from the server is successfully saved in the updating folder or not,
and if the data in the backup folder is unsuccessful, restoring the data in the backup folder to the updating folder.
In order to prevent the local data from being deleted by mistake in the absence of a network, when judging whether the update data acquired from the server is successfully stored in the update folder, the data in the backup folder can be restored to the update folder, and the update folder is guaranteed to have data for reading all the time.
The present invention provides a data update apparatus, the apparatus comprising:
first means for establishing an update folder locally;
here, an update folder LIB may be created on a local hard disk, for example, a disk F, and is specifically used for storing update data of a database;
second means for obtaining a data update operation;
Here, the data update operation is an operation of double-clicking the update folder;
and the third device is used for deleting the data in the updating folder based on the data updating operation, acquiring the updating data from the server and storing the updating data in the updating folder.
The invention can design a script file, and can automatically clear local old data and download new data from the server by double-clicking the update folder, thereby realizing automatic downloading and updating of the file, facilitating designers to update database data from the server to the local, improving the updating efficiency, shortening the time for updating data, and ensuring the consistency of the local data and the server data. In addition, in order to prevent the local update folder from being increased when the data in the server folder is different from the data in the local update folder after multiple downloads, all the files in the update folder LIB may be cleared before each update.
In an embodiment of the data updating apparatus of the present invention, the first device is further configured to establish a backup folder locally;
and the third device is used for deleting the data in the updating folder after the data in the updating folder is stored in the backup folder based on the data updating operation, and acquiring the updating data from the server and storing the updating data in the updating folder.
Here, in order to prevent the local data from being deleted by mistake without a network, a backup folder BK may be created, and the old data of the LIB may be copied to the backup folder BK.
In an embodiment of the data updating apparatus of the present invention, the third means is configured to mark existing data in the backup folder as old data, store the data in the update folder as new data in the backup folder, and delete the old data in the backup folder.
Here, in order to avoid too many old files in the backup folder, the old files in the backup folder may be deleted in time after the new data is stored in the backup folder.
In an embodiment of the data updating method of the present invention, the third device is further configured to determine whether the updated data obtained from the server is successfully stored in the update folder, and if not, restore the data in the backup folder to the update folder.
In order to prevent the local data from being deleted by mistake in the absence of a network, when judging whether the update data acquired from the server is successfully stored in the update folder, the data in the backup folder can be restored to the update folder, and the update folder is guaranteed to have data for reading all the time.
According to another aspect of the present invention, there is also provided a computing-based device, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
For details of embodiments of each device and storage medium of the present invention, reference may be made to corresponding parts of each method embodiment, and details are not described herein again.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
It should be noted that the present invention may be implemented in software and/or in a combination of software and hardware, for example, as an Application Specific Integrated Circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Also, the software programs (including associated data structures) of the present invention can be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Further, some of the steps or functions of the present invention may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present invention can be applied as a computer program product, such as computer program instructions, which when executed by a computer, can invoke or provide the method and/or technical solution according to the present invention through the operation of the computer. Program instructions which invoke the methods of the present invention may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. An embodiment according to the invention herein comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or solution according to embodiments of the invention as described above.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A method for updating data, wherein the method comprises:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
2. The method of claim 1, wherein while establishing the update folder locally, further comprising:
establishing a backup folder locally;
based on the data updating operation, deleting the data in the updating folder, acquiring the updating data from the server and saving the updating data to the updating folder, and the method comprises the following steps:
and based on the data updating operation, after the data in the updating folder is stored in the backup folder, deleting the data in the updating folder, and acquiring the updating data from a server and storing the updating data in the updating folder.
3. The method of claim 2, wherein saving the data in the update folder to the backup folder further comprises:
and marking the existing data in the backup folder as old data, saving the data in the updating folder as new data into the backup folder, and deleting the old data in the backup folder.
4. The method of claim 2, wherein in the data update operation, after saving the data in the update folder into the backup folder, deleting the data in the update folder, and after obtaining the update data from the server and saving the update data in the update folder, the method further comprises:
Judging whether the updating data obtained from the server is successfully saved in the updating folder or not,
and if the data in the backup folder is unsuccessful, restoring the data in the backup folder to the updating folder.
5. A data update apparatus, wherein the apparatus comprises:
first means for establishing an update folder locally;
second means for obtaining a data update operation;
and the third device is used for deleting the data in the updating folder based on the data updating operation, acquiring the updating data from the server and storing the updating data in the updating folder.
6. The apparatus of claim 5, wherein the first means is further for establishing a backup folder locally;
and the third device is used for deleting the data in the updating folder after the data in the updating folder is stored in the backup folder based on the data updating operation, and acquiring the updating data from the server and storing the updating data in the updating folder.
7. The apparatus according to claim 6, wherein the third means is configured to mark the existing data in the backup folder as old data, and delete the old data in the backup folder after saving the data in the update folder as new data in the backup folder.
8. The apparatus according to claim 6, wherein the third means is further configured to determine whether the update data obtained from the server is successfully saved in the update folder, and if not, restore the data in the backup folder to the update folder.
9. A computing-based device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
10. A computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions, when executed by a processor, cause the processor to:
establishing an update folder locally;
acquiring a data updating operation;
and deleting the data in the updating folder based on the data updating operation, and acquiring the updating data from the server and saving the updating data to the updating folder.
CN202010658837.0A 2020-07-09 2020-07-09 Data updating method and device Pending CN111858487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010658837.0A CN111858487A (en) 2020-07-09 2020-07-09 Data updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010658837.0A CN111858487A (en) 2020-07-09 2020-07-09 Data updating method and device

Publications (1)

Publication Number Publication Date
CN111858487A true CN111858487A (en) 2020-10-30

Family

ID=73152737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010658837.0A Pending CN111858487A (en) 2020-07-09 2020-07-09 Data updating method and device

Country Status (1)

Country Link
CN (1) CN111858487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942942A (en) * 2022-05-18 2022-08-26 马上消费金融股份有限公司 Characteristic data query method and device and user registration query method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959721A (en) * 2016-06-27 2016-09-21 四川长虹电器股份有限公司 Method for dynamically updating application data of smart television
CN109032652A (en) * 2018-08-29 2018-12-18 江苏龙虎网信息科技股份有限公司 The method of App application theme skin renewal
CN109558151A (en) * 2018-10-12 2019-04-02 上海金大师网络科技有限公司 Oftware updating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959721A (en) * 2016-06-27 2016-09-21 四川长虹电器股份有限公司 Method for dynamically updating application data of smart television
CN109032652A (en) * 2018-08-29 2018-12-18 江苏龙虎网信息科技股份有限公司 The method of App application theme skin renewal
CN109558151A (en) * 2018-10-12 2019-04-02 上海金大师网络科技有限公司 Oftware updating method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942942A (en) * 2022-05-18 2022-08-26 马上消费金融股份有限公司 Characteristic data query method and device and user registration query method and device

Similar Documents

Publication Publication Date Title
CN110058873B (en) Application page updating method, device, equipment and storage medium
US10108501B2 (en) Terminal backup and recovery method
CN109284066B (en) Data processing method, device, equipment and system
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN111414362A (en) Data reading method, device, equipment and storage medium
CN108572888B (en) Disk snapshot creating method and disk snapshot creating device
CN110019063B (en) Method for computing node data disaster recovery playback, terminal device and storage medium
CN113190325A (en) Container creation method and device
CN112445780A (en) Master-slave architecture deployment method and device based on snapshot
CN111753141B (en) Data management method and related equipment
CN108271420B (en) Method for managing files, file system and server system
CN113468118B (en) File increment storage method, device and storage medium based on blockchain
CN111078719A (en) Data recovery method and device, storage medium and processor
CN112230947A (en) Upgrading method and upgrading system of operating system
CN111858487A (en) Data updating method and device
US8595271B1 (en) Systems and methods for performing file system checks
CN111367512B (en) Method and device for creating Android library module dependency relationship in application development
CN112463127A (en) File processing method, device, equipment and storage medium
US10228879B1 (en) System and method for backup and restore of offline disks in mainframe computers
CN112765129A (en) Method and equipment for realizing database data version management
CN111625397B (en) Service log backup method, cluster, device, electronic equipment and storage medium
CN115421856A (en) Data recovery method and device
CN111400243B (en) Development management system based on pipeline service and file storage method and device
CN110597828A (en) Database changing method, device, equipment and storage medium
CN115080390A (en) Method, device and equipment for software patch package regression test

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