CN110659156A - Data processing method and device of web server and storage medium - Google Patents

Data processing method and device of web server and storage medium Download PDF

Info

Publication number
CN110659156A
CN110659156A CN201910779208.0A CN201910779208A CN110659156A CN 110659156 A CN110659156 A CN 110659156A CN 201910779208 A CN201910779208 A CN 201910779208A CN 110659156 A CN110659156 A CN 110659156A
Authority
CN
China
Prior art keywords
backup
server
database
instruction
parameters
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.)
Withdrawn
Application number
CN201910779208.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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910779208.0A priority Critical patent/CN110659156A/en
Publication of CN110659156A publication Critical patent/CN110659156A/en
Withdrawn legal-status Critical Current

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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • 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/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning

Landscapes

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

Abstract

The invention discloses a data processing method of a web server, which comprises the following steps: the front end of the web server receives configuration parameters input by a user and sends an instruction to the server; the server side responds to the received instruction as an audit log backup instruction, and backups the audit log of the web server to the remote server according to the parameters corresponding to the audit log backup instruction in the configuration parameters; and the server side responds to the received instruction as a database backup instruction, and backs up the database of the web server to the remote server according to the parameter corresponding to the database backup instruction in the configuration parameters. The invention also discloses a computer device and a readable storage medium. According to the invention, different instructions are sent to the server side by the front end, so that independent backups of the database and the audit log are respectively controlled and selected, and the database and/or the audit log can be autonomously controlled and selected according to actual requirements, and thus, the audit log backup and the database backup are more flexible.

Description

Data processing method and device of web server and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method, device, and storage medium for a web server.
Background
Once the software system is shut down unexpectedly or data is lost, the loss is very disastrous, so that in some industries with high requirements on data reliability, such as banks, securities, telecommunication and the like, the database is required to be backed up regularly, and after a fault occurs, the database can be restored in time through the backed-up data, so that the loss is reduced.
For a large database server, an enterprise-level storage device is generally provided, and the database can be backed up on the storage device, so that even if the database server fails, the data can be ensured to be safe, and data can be restored on another new server. However, for small web servers, there is generally no dedicated storage device, most of them are to backup data to the local server, there is no way to recover data on another device in case of server failure, and there is also a risk of data loss. In addition, the hard disk space provided by the web server is very limited, and some web servers even adopt virtual machine deployment. Because of the shortage of storage resources, some web servers can only abandon the function of database backup or only backup a small amount of data in the core. Once a failure occurs, the loss is irretrievable.
Therefore, a new data processing method of the web server is urgently needed.
Disclosure of Invention
In view of the above, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a data processing method for a web server, including:
the front end of the web server receives configuration parameters input by a user and sends an instruction to the server;
the server side responds to the received instruction as an audit log backup instruction, and backs up the audit log of the web server to a remote server according to the parameter corresponding to the audit log backup instruction in the configuration parameters;
and the server side responds to the received instruction as a database backup instruction, and backs up the database of the web server to the remote server according to the parameter corresponding to the database backup instruction in the configuration parameters.
In some embodiments, the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving authentication parameters of the remote server input by a user in response to a front end receiving an instruction to modify the authentication parameters of the remote server;
responding to the front end receiving the instruction for storing the verification parameters, sending a connection testing instruction to the server, and judging whether the server can be connected with the remote server according to the verification parameters;
and responding to connection, the server side saves the verification parameters into the database.
In some embodiments, the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving a backup strategy parameter of the audit log input by the user in response to the front end receiving a backup strategy instruction for modifying the audit log;
responding to the front end receiving an instruction for saving the backup strategy parameters, sending a test writing instruction to the server, and judging whether the server can write files into the remote server according to the backup strategy parameters;
and responding to the writable file, and saving the backup strategy parameters into the database by the server.
In some embodiments, the server, in response to the received instruction being an audit log backup instruction, backs up the audit log of the web server to a remote server according to a parameter corresponding to the audit log backup instruction in the configuration parameters, further including:
the server side judges whether the audit logs need to be backed up or not according to the number of the audit logs and the backup strategy parameters stored in the database;
responding to the requirement of backing up the audit logs, and backing up a preset number of the audit logs to the remote server according to the verification parameters and the backup strategy parameters stored in the database;
deleting the audit log in the web server that has been backed up to the remote server in response to a successful backup.
In some embodiments, the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving backup path parameters of the database input by the user in response to the front end receiving an instruction to modify the backup path of the database;
responding to the front end receiving an instruction for immediately backing up the database, and judging whether the server can write files into the remote server according to the backup path parameters;
and responding to the written file, and sending a database backup instruction to the server.
In some embodiments, backing up the database of the web server to the remote server according to a parameter corresponding to the database backup instruction in the configuration parameters further includes:
generating a database backup file by using the server;
backing up the database backup file to the remote server according to the backup path parameter and the verification parameter saved in the database;
the server returns a backup progress to the front end, and the front end displays a corresponding progress bar according to the backup progress;
and deleting the local database backup files in response to the successful backup.
In some embodiments, further comprising:
the server side sends a backup history instruction for inquiring the database to the remote server;
and receiving a history backup file list returned by the remote server, and displaying the history backup file list through the front end.
In some embodiments, further comprising:
the front end receives the historical backup file parameters to be restored selected by a user, receives and sends an immediate restoration instruction to the server;
the server side reads a corresponding backup file from the remote server according to the historical backup file parameter to be restored, and stores the corresponding backup file in the database;
and the server returns a recovery progress to the front end, and the front end displays a corresponding progress bar according to the recovery progress.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of any of the web server data processing methods described above.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any of the data processing methods of the web server as described above.
The invention has the following beneficial technical effects: different control instructions are sent to the server side through the front end, independent backup of the database and the audit log is controlled and selected respectively, and therefore the database and/or the audit log can be selected and backed up autonomously according to actual requirements, and backup of the audit log and backup of the database are flexible.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data processing method of a web server according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a front end of a web server according to an embodiment of the present invention;
fig. 3 is another schematic structural diagram of a front end of a web server according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
It should be noted that, in the embodiment of the present invention, the remote server may be an FTP server, but is not limited to only the FTP server, and may also be another type of server.
According to an aspect of the present invention, an embodiment of the present invention provides a data processing method of a web server, as shown in fig. 1, which may include the steps of: s1, the front end of the web server receives the configuration parameters input by the user and sends an instruction to the server; s2, the server side responds to the received instruction as an audit log backup instruction, and backups the audit log of the web server to a remote server according to the parameters corresponding to the audit log backup instruction in the configuration parameters; and S3, the server side responds to the received instruction as a database backup instruction, and backs up the database of the web server to the remote server according to the parameter corresponding to the database backup instruction in the configuration parameters.
The method disclosed by the invention can realize independent backup of the database and the audit log by respectively controlling the independent backup of the database and the audit log by sending different instructions to the server through the front end, so that the backup of the database and/or the backup of the audit log can be autonomously controlled and selected according to actual requirements, and the backup of the audit log and the backup of the database are more flexible. And complicated command line data backup operation is converted into click graph operation through a graphical operation interface at the front end, so that the operation process is more convenient, and meanwhile, a remote server at a different place is used as the storage space extension of the web server, so that the storage problem of the backup data of the web server is solved.
The following is described in detail with reference to the schematic structural diagrams of the front end of the web server shown in fig. 2 and 3.
In some embodiments, the front end of the web server receiving the configuration parameters input by the user and sending the instruction to the server may further include: receiving authentication parameters of the remote server input by a user in response to a front end receiving an instruction to modify the authentication parameters of the remote server; responding to the front end receiving the instruction for storing the verification parameters, sending a connection testing instruction to the server, and judging whether the server can be connected with the remote server according to the verification parameters; and responding to connection, the server side saves the verification parameters into the database.
As shown in fig. 2, the user may configure the relevant authentication parameters in the FTP setup, for example, may configure authentication parameters such as IP or host, port, username, and password. It should be noted that the user name and the password correspond to the remote FTP server, that is, the user name and the password can be used to log in the remote FTP server. And the same FTP configuration is used for both audit log backup and database backup.
Specifically, after clicking the "modify" button, the user can edit the four input boxes, and simultaneously, the save and test buttons appear. After the user completes the configuration of the IP or host, the port, the user name and the password, a 'test' button can be clicked, at the moment, the front end sends a test connection instruction to the server, the server tries to connect with the FTP server according to the four verification parameters configured by the user, and a test result is output. The user can also directly click the 'save' button after the parameters are configured, at the moment, the 'test' function is triggered, namely, the front end sends a test connection instruction to the server, the server tries to connect with the FTP server according to the four verification parameters configured by the user, and after the connection test is successful, the four parameters configured by the user are saved in the server.
In some embodiments, the front end of the web server receives configuration parameters input by a user and issues an instruction to the server, and may further include: receiving a backup strategy parameter of the audit log input by the user in response to the front end receiving an instruction for modifying the backup strategy of the audit log; responding to the front end receiving the command for saving the backup strategy parameters, sending a test writing command to the server, and judging whether the server can write files into the remote server according to the backup strategy parameters; and responding to the writable file, and saving the backup strategy parameters into the database by the server.
As shown in fig. 2, a user may configure relevant backup policy parameters in the audit log backup policy, for example, may configure backup policy parameters such as a trigger threshold, a saving number, a saving path, and whether to start a timed backup audit log. The trigger threshold value refers to starting automatic backup after the audit logs reach the trigger threshold value, the saving quantity refers to the quantity of the audit logs which are not backed up locally, and the saving path refers to a path from backup to the FTP server.
It should be noted that, only after the user selects the check box of "start", the audit log is started to be backed up at regular time, and the audit log backup strategy can be modified; if the audit log backup strategy is not checked, the audit log backup strategy cannot be modified, and the timing backup is closed.
Specifically, after the user selects and checks the "open" check box, the "modify" button may be clicked to modify the backup policy parameters, and the save button may appear at the same time. After the user completes the configuration of the trigger threshold, the storage quantity and the storage path, the user can be prompted to confirm that the FTP user has write-in permission for the directory of the storage path by clicking a 'storage' button, and try to write a test file into the path, and the backup strategy parameters are stored in the database when the write-in is successful. That is, after the user clicks the save button, the front end sends a test write instruction to the server to determine whether the server can write a file to the FTP server according to the save path configured by the user.
In some embodiments, the server, in response to the received instruction being an audit log backup instruction, backs up the audit log of the web server to a remote server according to a parameter corresponding to the audit log backup instruction in the configuration parameters, which may further include:
the server side judges whether the audit logs need to be backed up or not according to the number of the audit logs and the backup strategy parameters stored in the database;
responding to the requirement of backing up the audit logs, and backing up a preset number of the audit logs to the remote server according to the verification parameters and the backup strategy parameters stored in the database;
deleting the audit log in the web server that has been backed up to the remote server in response to a successful backup.
Specifically, for example, when the trigger threshold is 10 thousands and the reserved number is 5 thousands, when the number of the audit logs exceeds 10 thousands, the backup is automatically triggered, at this time, the logs are sorted in a descending order of time, data after the 5 th ten thousands are derived and stored as csv files, then the server backs up the files to paths corresponding to the FTP according to the four verification parameters and the storage paths stored in the database, and after the backup is successful, the audit logs which have been backed up are deleted from the database table of the web server.
In some embodiments, the Web server side may check the number of audit logs every half hour, and when the number exceeds a threshold, trigger a backup operation and record the audit logs.
In some embodiments, because the log data volume is large, memory consumption needs to be optimized when the log is backed up, 1000 pieces of data can be taken from the database each time to perform the backup operation until all backups are completed. It should be noted that other numbers of audit logs may be backed up each time.
In some embodiments, the front end of the web server receives configuration parameters input by a user and issues an instruction to the server, and may further include:
receiving backup path parameters of the database input by the user in response to the front end receiving an instruction to modify the backup path of the database;
responding to the front end receiving an instruction for immediately backing up the database, and judging whether the server can write files into the remote server according to the backup path parameters;
and responding to the written file, and sending a database backup instruction to the server.
As shown in fig. 2, the user may configure the relevant backup path parameters in the database backup, for example, may configure the save path parameters. The saving path of the database backup and the saving path of the audit log backup can be different. Therefore, the database backup and the audit log backup are stored to different paths, and the audit log backup and the database recovery to the local server can be directly checked at the remote server in the later period. Of course, the saving path of the database backup and the saving path of the audit log backup may also be the same.
Specifically, when the user clicks the "modify" button, a save path for database backup may be entered, while the "immediately backup" button appears. And after the user clicks an 'immediate backup' button, the front end sends a test backup instruction to the server to judge whether the server can write files into the FTP server according to a storage path configured by the user and used for database backup. And if the file can be written, sending a database backup instruction to the server side, and starting database backup.
In some embodiments, backing up the database of the web server to the remote server according to the parameter corresponding to the database backup instruction in the configuration parameters may further include:
generating a database backup file by using the server;
backing up the database backup file to the remote server according to the backup path parameter and the verification parameter saved in the database;
the server returns a backup progress to the front end, and the front end displays a corresponding progress bar according to the backup progress;
and deleting the local database backup files in response to the successful backup.
Specifically, after the front end sends a backup instruction to the server, the server executes a database backup related instruction, and since the web server mostly adopts a mysql database, taking the mysql database as an example, the server may call a mysql command to generate a database file backup file. mysqldump-u [ diameter ] -p [ pass ] -databases [ dbname ] [ dbname2] > [ backup upfile. sql ], then the database file is backed up to the FTP server end according to the storage path for database backup and four verification parameters stored in the database, and after the backup is successful, the local backup upfile. sql file is deleted, and the storage space of the web server end is released. Meanwhile, the server side can return the backup progress to the front end, and the front end displays a corresponding percentage progress bar according to the backup progress, so that a user can monitor at any time, and the process is visualized.
In some embodiments, the data processing method of the web server provided by the present invention may further include: the server side sends a backup history instruction for inquiring the database to the remote server; and receiving a history backup file list returned by the remote server, and displaying the history backup file list through the front end.
As shown in fig. 3, after receiving the history backup file list returned by the remote server, the server may display the history backup file list in the database recovery of the front end, and when the user backs up the file list, a pull-down menu appears, and the user may select one file to be recovered.
In some embodiments, the data processing method of the web server provided by the present invention may further include: the front end receives the historical backup file parameters to be restored selected by a user, receives and sends an immediate restoration instruction to the server; the server side reads a corresponding backup file from the remote server according to the historical backup file parameter to be restored, and stores the corresponding backup file in the database; and the server returns a recovery progress to the front end, and the front end displays a corresponding progress bar according to the recovery progress.
As shown in fig. 3, after the user selects one file in the list, the user may click an "immediate recovery" button, at this time, the front end sends an immediate recovery instruction to the server, the server reads a corresponding backup file from the FTP server according to the historical backup file to be recovered selected by the user, and stores the corresponding backup file in the database, and at the same time, above the "immediate recovery" button, the recovery progress may be displayed.
It should be noted that, because the database recovery time is generally long, it is required to make a commitment that the client does not need to perform any operation related to database modification in the database recovery process.
In some embodiments, it should be noted that, when the user enters the front end, the front end queries the server whether there is a database backup or recovery operation being executed, if so, displays a corresponding progress, and if not, may perform the backup or recovery of the database. I.e., the backup or restore of the database is not performed simultaneously.
The method provided by the invention solves the problem that a small web server database cannot be backed up, and simultaneously utilizes the FTP server as the storage space extension of the web server to solve the storage problem of the web server backed-up data without worrying about the data backup failure caused by insufficient local space. Meanwhile, the reliability of the web management platform is improved. The method has the advantages that local storage is replaced by a remote storage mode, when the web server breaks down, historical data can be obtained through the FTP server, and then a web server is set up again for data recovery, so that the risk of data loss or incapability of access is avoided. And complicated command line data backup operation is converted into click graph operation through a front-end graphical operation interface, so that the operation process is more convenient, and meanwhile, a remote server at different places is used as storage space expansion of the web server, so that the storage problem of the backup data of the web server is solved.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer apparatus 501, including:
at least one processor 520; and
a memory 510, the memory 510 storing a computer program 511 executable on the processor, the processor 520 executing the program to perform the steps of any of the above web server data processing methods.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the steps of the data processing method of any one of the above web servers.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program to instruct related hardware to implement the methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
In addition, the apparatuses, devices, and the like disclosed in the embodiments of the present invention may be various electronic terminal devices, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal device, such as a server, and the like, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of apparatus, device. The front end disclosed by the embodiment of the invention can be applied to any one of the electronic terminal devices in the form of electronic hardware, computer software or a combination of the electronic hardware and the computer software.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A data processing method of a web server, comprising the steps of:
the front end of the web server receives configuration parameters input by a user and sends an instruction to the server;
the server side responds to the received instruction as an audit log backup instruction, and backs up the audit log of the web server to a remote server according to the parameter corresponding to the audit log backup instruction in the configuration parameters;
and the server side responds to the received instruction as a database backup instruction, and backs up the database of the web server to the remote server according to the parameter corresponding to the database backup instruction in the configuration parameters.
2. The data processing method of claim 1, wherein the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving authentication parameters of the remote server input by a user in response to a front end receiving an instruction to modify the authentication parameters of the remote server;
responding to the front end receiving the instruction for storing the verification parameters, sending a connection testing instruction to the server, and judging whether the server can be connected with the remote server according to the verification parameters;
and responding to connection, and saving the verification parameters to a database by the server.
3. The data processing method of claim 2, wherein the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving a backup strategy parameter of the audit log input by the user in response to the front end receiving a backup strategy instruction for modifying the audit log;
responding to the front end receiving an instruction for saving the backup strategy parameters, sending a test writing instruction to the server, and judging whether the server can write files into the remote server according to the backup strategy parameters;
and responding to the writable file, and saving the backup strategy parameters into the database by the server.
4. The data processing method of claim 3, wherein the server, in response to the received instruction being an audit log backup instruction, backs up the audit log of the web server to a remote server according to a parameter corresponding to the audit log backup instruction in the configuration parameters, further comprising:
the server side judges whether the audit logs need to be backed up or not according to the number of the audit logs and the backup strategy parameters stored in the database;
responding to the requirement of backing up the audit logs, and backing up a preset number of the audit logs to the remote server according to the verification parameters and the backup strategy parameters stored in the database;
deleting the audit log in the web server that has been backed up to the remote server in response to a successful backup.
5. The data processing method of claim 2, wherein the front end of the web server receives configuration parameters input by a user and issues instructions to the server, further comprising:
receiving backup path parameters of the database input by the user in response to the front end receiving an instruction to modify the backup path of the database;
responding to the front end receiving an instruction for immediately backing up the database, and judging whether the server can write files into the remote server according to the backup path parameters;
and responding to the written file, and sending a database backup instruction to the server.
6. The data processing method of claim 5, wherein backing up the database of the web server to the remote server according to the parameter of the configuration parameters corresponding to the database backup instruction, further comprising:
generating a database backup file by using the server;
backing up the database backup file to the remote server according to the backup path parameter and the verification parameter saved in the database;
the server returns a backup progress to the front end, and the front end displays a corresponding progress bar according to the backup progress;
and deleting the local database backup files in response to the successful backup.
7. The data processing method of claim 1, further comprising:
the server side sends a backup history instruction for inquiring the database to the remote server;
and receiving a history backup file list returned by the remote server, and displaying the history backup file list through the front end.
8. The data processing method of claim 7, further comprising:
the front end receives the historical backup file parameters to be restored selected by a user, receives and sends an immediate restoration instruction to the server;
the server side reads a corresponding backup file from the remote server according to the historical backup file parameter to be restored, and stores the corresponding backup file in the database;
and the server returns a recovery progress to the front end, and the front end displays a corresponding progress bar according to the recovery progress.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 8.
CN201910779208.0A 2019-08-22 2019-08-22 Data processing method and device of web server and storage medium Withdrawn CN110659156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910779208.0A CN110659156A (en) 2019-08-22 2019-08-22 Data processing method and device of web server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910779208.0A CN110659156A (en) 2019-08-22 2019-08-22 Data processing method and device of web server and storage medium

Publications (1)

Publication Number Publication Date
CN110659156A true CN110659156A (en) 2020-01-07

Family

ID=69037769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910779208.0A Withdrawn CN110659156A (en) 2019-08-22 2019-08-22 Data processing method and device of web server and storage medium

Country Status (1)

Country Link
CN (1) CN110659156A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552595A (en) * 2020-04-29 2020-08-18 上海中通吉网络技术有限公司 Database backup and recovery method, device and equipment
CN112596958A (en) * 2020-12-30 2021-04-02 浪潮电子信息产业股份有限公司 Database backup method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552595A (en) * 2020-04-29 2020-08-18 上海中通吉网络技术有限公司 Database backup and recovery method, device and equipment
CN112596958A (en) * 2020-12-30 2021-04-02 浪潮电子信息产业股份有限公司 Database backup method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108932295A (en) Primary database method for handover control, device, computer equipment and storage medium
CN111090545B (en) Method, device and medium for recovering failed CPLD
CN110659156A (en) Data processing method and device of web server and storage medium
CN111177122A (en) Database backup method, device, equipment and computer readable storage medium
CN112596951A (en) NAS data disaster tolerance method, device, equipment and storage medium
CN104615511A (en) Host batch recovery processing method and device based on double centers
CN110413433A (en) Restoration methods, equipment and storage medium after a kind of Maria DB clustering fault
CN108804257A (en) SOT state of termination detection method, device, terminal and storage medium
CN110764799A (en) Method, equipment and medium for optimizing and remotely updating FPGA (field programmable Gate array) accelerator card
CN105573867A (en) Method and system for realizing high availability of MySQL
CN111856257B (en) Method, system, equipment and medium for detecting and protecting CPLD (complex programmable logic device) firmware
CN111176904B (en) Method, system, equipment and medium for data backup under private cloud architecture
WO2018076696A1 (en) Data synchronization method and out-of-band management device
CN110727534B (en) Method, equipment and storage medium for repairing file system
CN110968456B (en) Method and device for processing fault disk in distributed storage system
CN110879760B (en) Unified storage system and method and electronic equipment
CN116700884A (en) Snapshot rollback data consistency test method, device, equipment and medium
CN111090539A (en) Dual-flash-memory self-repairing method and device based on CPLD
CN107291726A (en) information checking method and system
CN115174596A (en) Equipment remote copying method, device and medium
CN113238950A (en) System and method for testing distributed system, storage medium and electronic equipment
CN104572350B (en) A kind of metadata processing method and device
CN103220569A (en) Automatic recovery method and device of set top box
CN110955557A (en) Data verification processing method and device, storage medium and processor
CN111309525B (en) Method, system, equipment and medium for controlling data recovery precision

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200107

WW01 Invention patent application withdrawn after publication