Create multi-Web Server backup (1)

Source: Internet
Author: User

When important Web services work normally, a corresponding backup system must be established to ensure data security and non-interconnectivity. The accident mainly refers to power interruption, natural damage to server hardware, and crash of server system software, data loss or page information tampering caused by various forms of hacker attacks.
Generally, data is manually copied to another server, or a special hardware backup system is purchased. Now we need a new backup system that can implement regular backup, enable the backup system in time when an accident occurs, and notify the administrator.
Our backup server is placed in another data center with at least a certain distance. the backup server also has an independent public IP address, which is used to form a separate LAN with other servers, they can access each other through lan ip addresses. In addition, we 'd better set up another server, which is referred to as the monitoring/allocation server in the following article) so that it can determine the working status of other servers and promptly switch the user's access to the target address to start the backup service task.
The second is the operating system and corresponding settings. To ensure security and prevent hackers from exploiting the same system vulnerabilities, it is best to install the third system for the server in addition to timely patching. Generally, the server uses Windows 2000 or Linux, so we can install Windows 2003 for the backup server. At the same time, do not forget to set a complex and long system password. Then we map the hard disk of the Web server to this machine through the lan ip address, so that we can easily back up data through the program.
To save resources, we can centralize multiple services on one backup server for backup, but this requires that the performance of this server be reliable and highly secure, installing anti-virus software and hardware firewalls is also necessary.
Next, we will configure the backup and monitoring/distribution servers in detail.
Backup
Previously, we have mapped the hard disk of the Web server to the backup server, so that the backup work can proceed smoothly. You only need to use any programming language to compile a small program for regular execution, copy the Web page files, script files, image resources, and database files in the source folder to the corresponding local folder. Scheduled copy can be executed in the early morning when the traffic volume is small to reduce the impact on the service. In addition, you can also use the method of monitoring file changes for backup, that is, to allow the program to scan the file modification time in the source folder at any time and copy the files if any change is found, this method enables real-time backup.
Note: At the same time of copying, check the validity of the file to avoid copying the page that has been tampered.

 
Figure 1 server assignment Diagram


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.